:root {
  --bg: #a8ba81;
  --surface: rgba(248, 239, 194, 0.9);
  --surface-strong: #efe1a2;
  --card: rgba(255, 248, 222, 0.92);
  --text: #284f46;
  --text-soft: rgba(40, 79, 70, 0.76);
  --accent: #d8aa5b;
  --accent-dark: #c28d37;
  --leaf: #30594b;
  --border: rgba(48, 89, 75, 0.16);
  --danger: #8d3f36;
  --success: #2f6b4d;
  --radius: 24px;
  --radius-sm: 16px;
  --shadow: 0 18px 48px rgba(40, 79, 70, 0.16);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(168,186,129,0.96), rgba(168,186,129,0.9)),
    url('assets/theme.jpg') center/cover fixed;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top left, rgba(239,225,162,0.4), transparent 28%),
    radial-gradient(circle at bottom right, rgba(48,89,75,0.12), transparent 26%);
}
img { max-width: 100%; height: auto; }
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  background: #fff;
  padding: 12px 14px;
  border-radius: 12px;
  z-index: 100;
}
.page-shell, .admin-page, .admin-login-wrap {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 20px 16px 32px;
  position: relative;
  z-index: 1;
}
.hero-card, .login-card, .day-card, .empty-state {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
.hero-card {
  overflow: hidden;
}
.hero-art {
  min-height: 220px;
  background: url('assets/theme.jpg') center/cover no-repeat;
}
.hero-content {
  padding: 20px;
}
.eyebrow, .day-date {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-soft);
}
h1, h2 {
  margin: 0;
  font-family: 'Barlow Condensed', sans-serif;
  line-height: 0.95;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(2.4rem, 9vw, 4.8rem); }
h2 { font-size: clamp(1.8rem, 7vw, 2.8rem); }
.lead {
  font-size: 1rem;
  line-height: 1.6;
  margin: 14px 0 22px;
  color: var(--text-soft);
}
.upload-form, .stack-form {
  display: grid;
  gap: 12px;
}
label {
  font-size: 0.95rem;
  font-weight: 600;
}
input[type="text"], input[type="password"], input[type="file"] {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(48, 89, 75, 0.22);
  background: rgba(255, 250, 233, 0.95);
  color: var(--text);
}
input[type="file"] { padding: 12px; }
button, .download-link, .ghost-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: 14px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
}
button, .download-link {
  border: 0;
  color: #fff9e6;
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  box-shadow: 0 10px 24px rgba(194, 141, 55, 0.24);
}
.ghost-link {
  color: var(--leaf);
  background: rgba(255,255,255,0.45);
  border: 1px solid var(--border);
}
.notice {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  margin: 0 0 16px;
  font-weight: 600;
}
.notice.success { background: rgba(47,107,77,0.14); color: var(--success); }
.notice.error { background: rgba(141,63,54,0.14); color: var(--danger); }
.micro-list {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--text-soft);
  line-height: 1.6;
}
.admin-shell { background-position: center; }
.admin-header {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}
.day-grid {
  display: grid;
  gap: 14px;
}
.day-card {
  padding: 18px;
}
.day-meta {
  color: var(--text-soft);
  margin: 8px 0 14px;
}
.login-card, .empty-state {
  padding: 22px;
}
@media (min-width: 700px) {
  .page-shell, .admin-page, .admin-login-wrap { padding: 36px 20px 48px; }
  .hero-card {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    min-height: 680px;
  }
  .hero-art { min-height: 100%; }
  .hero-content { padding: 34px; align-self: center; }
  .admin-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: end;
  }
  .day-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
