/* ============================================================
   English Daily — Design tokens
   แนวคิด: "5-10 นาทีต่อวัน เหมือนจิบชายามเช้า" — สงบ ไม่กดดัน
   สี: กระดาษเขียวอ่อน (sage) + ขมิ้น/ทองอุ่น (turmeric) + ครามน้ำทะเล (teal)
   หลีกเลี่ยงโทนครีม-เทอร์ราคอตต้าที่ใช้กันจนชินตา
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Noto+Serif+Thai:wght@500;600;700&family=IBM+Plex+Sans+Thai:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
  /* --- color --- */
  --bg:            #F1F4EE;
  --bg-card:       #FFFFFF;
  --bg-sunken:     #E7ECE2;
  --ink:           #20261F;
  --ink-soft:      #4B5347;
  --line:          #D8DFD1;
  --turmeric:      #E39A2E;
  --turmeric-deep: #B87515;
  --teal:          #1E5F5C;
  --teal-deep:     #123F3D;
  --coral:         #E97B5C;
  --coral-soft:    #FBE6DD;
  --success:       #2F7A4F;
  --success-soft:  #E1F0E4;

  /* --- type --- */
  --font-display:      'Fraunces', serif;
  --font-thai-display:  'Noto Serif Thai', serif;
  --font-body:          'IBM Plex Sans Thai', -apple-system, sans-serif;
  --font-mono:          'IBM Plex Mono', monospace;

  /* --- layout --- */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --shadow-card: 0 1px 2px rgba(32,38,31,.04), 0 8px 24px rgba(32,38,31,.06);
  --shadow-card-hover: 0 4px 8px rgba(32,38,31,.06), 0 16px 32px rgba(32,38,31,.10);
  --max-width: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- focus visibility ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ============================================================
   Site header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(241,244,238,.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-thai-display);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle:hover { background: var(--bg-sunken); }
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-burger { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 6px 16px rgba(30,95,92,.25);
}
.btn-primary:hover { background: var(--teal-deep); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--bg-sunken); }

.btn-block { width: 100%; }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: 64px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: .06em;
  color: var(--teal-deep);
  background: var(--success-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.eyebrow::before { content: '●'; color: var(--success); font-size: .6rem; }

.hero h1 {
  font-family: var(--font-thai-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 4.2vw, 3.1rem);
  line-height: 1.25;
  margin: 0 0 20px;
  color: var(--ink);
}

.hero h1 em {
  font-style: normal;
  color: var(--teal);
  position: relative;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 32px;
}

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }

.hero-proof {
  display: flex;
  gap: 24px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.hero-proof strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--ink);
}

/* ---- signature element: flip phrase card ---- */
.flip-stage {
  perspective: 1200px;
}

.flip-card {
  position: relative;
  width: 100%;
  max-width: 360px;
  height: 240px;
  margin: 0 auto;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform .7s cubic-bezier(.2,.8,.2,1);
  transform-style: preserve-3d;
}

.flip-card.is-flipped .flip-card-inner { transform: rotateY(180deg); }

.flip-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
}

.flip-front {
  background: var(--bg-card);
  border: 1px solid var(--line);
}

.flip-back {
  background: var(--teal);
  color: #fff;
  transform: rotateY(180deg);
}

.flip-tag {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .65;
}

.flip-phrase {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.7rem;
  line-height: 1.3;
}

.flip-back .flip-phrase { font-family: var(--font-thai-display); font-size: 1.5rem; }

.flip-hint {
  font-size: .82rem;
  opacity: .65;
}

.hero-badge {
  position: absolute;
  top: -14px;
  right: -14px;
  background: var(--turmeric);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: .78rem;
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(227,154,46,.35);
  transform: rotate(6deg);
}

.hero-visual { position: relative; }

/* ============================================================
   How it works — 3 step flow (real sequence: order matters)
   ============================================================ */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 620px; margin: 0 0 44px; }
.section-head .eyebrow { margin-bottom: 14px; }

.section-head h2 {
  font-family: var(--font-thai-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 12px;
}

.section-head p { color: var(--ink-soft); font-size: 1.02rem; margin: 0; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  position: relative;
}

.step-num {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--teal);
  background: var(--success-soft);
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}

.step-card h3 {
  font-family: var(--font-thai-display);
  font-size: 1.15rem;
  margin: 0 0 8px;
}

.step-card p { color: var(--ink-soft); font-size: .94rem; margin: 0; }

.step-time {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: .76rem;
  color: var(--turmeric-deep);
}

/* ============================================================
   Lesson preview cards (landing)
   ============================================================ */
.lesson-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.lesson-chip {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.lesson-chip:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }

.lesson-chip .num { font-family: var(--font-mono); font-size: .75rem; color: var(--teal); }
.lesson-chip h4 { font-family: var(--font-thai-display); font-size: 1.02rem; margin: 6px 0 4px; }
.lesson-chip .en { font-family: var(--font-display); font-style: italic; color: var(--ink-soft); font-size: .88rem; margin: 0; }

/* ============================================================
   Auth pages (login/register)
   ============================================================ */
.auth-shell {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-card);
}

.auth-card h1 {
  font-family: var(--font-thai-display);
  font-size: 1.5rem;
  margin: 0 0 6px;
}

.auth-card .sub { color: var(--ink-soft); font-size: .92rem; margin: 0 0 28px; }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: .86rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}

.field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .96rem;
  background: var(--bg);
  transition: border-color .15s ease;
}
.field input:focus { border-color: var(--teal); outline: none; }

.alert {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  margin-bottom: 18px;
}
.alert-error { background: #FBEAE6; color: #9A3412; border: 1px solid #F3C6B8; }
.alert-success { background: var(--success-soft); color: var(--success); border: 1px solid #BFE2CB; }

.auth-switch { margin-top: 22px; font-size: .9rem; color: var(--ink-soft); text-align: center; }
.auth-switch a { color: var(--teal); font-weight: 600; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }

/* ============================================================
   Dashboard
   ============================================================ */
.dash-header {
  padding: 40px 0 8px;
}

.dash-greeting {
  font-family: var(--font-thai-display);
  font-size: 1.6rem;
  margin: 0 0 6px;
}

.dash-sub { color: var(--ink-soft); margin: 0; }

.dash-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 22px;
  padding: 28px 0 72px;
  align-items: start;
}

.today-card {
  background: linear-gradient(145deg, var(--teal), var(--teal-deep));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
}

.today-card::after {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
}

.today-tag {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .06em;
  opacity: .75;
  margin-bottom: 14px;
}

.today-card h2 {
  font-family: var(--font-thai-display);
  font-size: 1.7rem;
  margin: 0 0 8px;
  position: relative;
}

.today-card .en-title {
  font-family: var(--font-display);
  font-style: italic;
  opacity: .85;
  margin: 0 0 18px;
}

.today-card .situation {
  font-size: .92rem;
  opacity: .9;
  margin: 0 0 26px;
  max-width: 46ch;
}

.today-meta { display: flex; gap: 18px; margin-bottom: 26px; flex-wrap: wrap; }
.today-meta span {
  font-family: var(--font-mono);
  font-size: .8rem;
  background: rgba(255,255,255,.12);
  padding: 6px 12px;
  border-radius: 999px;
}

.today-card .btn-primary {
  background: var(--turmeric);
  box-shadow: 0 6px 16px rgba(227,154,46,.35);
}
.today-card .btn-primary:hover { background: var(--turmeric-deep); }

.side-stack { display: flex; flex-direction: column; gap: 18px; }

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 24px;
}

.stat-row { display: flex; align-items: center; justify-content: space-between; }
.stat-label { font-size: .85rem; color: var(--ink-soft); }
.stat-value {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.8rem;
  color: var(--ink);
}
.stat-value.flame { color: var(--turmeric-deep); }

.streak-week { display: flex; gap: 6px; margin-top: 16px; }
.streak-day {
  flex: 1;
  height: 34px;
  border-radius: 8px;
  background: var(--bg-sunken);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--ink-soft);
}
.streak-day.done { background: var(--success); color: #fff; }
.streak-day.today { outline: 2px solid var(--turmeric); outline-offset: 1px; }

.progress-track {
  height: 8px;
  background: var(--bg-sunken);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 12px;
}
.progress-fill { height: 100%; background: var(--turmeric); border-radius: 999px; }

.history-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.history-list li {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .88rem; padding: 10px 0; border-bottom: 1px solid var(--line);
}
.history-list li:last-child { border-bottom: none; }
.history-score { font-family: var(--font-mono); color: var(--success); font-weight: 600; }

/* ============================================================
   Speak button (text-to-speech)
   ============================================================ */
.speak-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--teal);
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s ease, transform .12s ease, border-color .15s ease;
  vertical-align: middle;
}
.speak-btn:hover { background: var(--success-soft); border-color: var(--teal); }
.speak-btn:active { transform: scale(.92); }
.speak-btn svg { width: 15px; height: 15px; }
.speak-btn.is-speaking { background: var(--teal); color: #fff; border-color: var(--teal); animation: speak-pulse 1s ease-in-out infinite; }

@keyframes speak-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(30,95,92,.35); }
  50% { box-shadow: 0 0 0 6px rgba(30,95,92,0); }
}

.phrase-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.phrase-row .phrase { margin: 0; }

.flip-phrase-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.flip-phrase-row .speak-btn { border-color: rgba(255,255,255,.4); }
.flip-front .flip-phrase-row .speak-btn { border-color: var(--line); }

/* ============================================================
   Lesson page
   ============================================================ */
.lesson-hero { padding: 36px 0 16px; }

.lesson-crumb {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--ink-soft);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 18px;
}
.lesson-crumb:hover { color: var(--teal); }

.lesson-title-block h1 {
  font-family: var(--font-thai-display);
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  margin: 0 0 6px;
}
.lesson-title-block .en-title {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-soft);
  margin: 0 0 18px;
}

.lesson-progress-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 44px;
}
.lesson-progress-bar .seg {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: var(--bg-sunken);
}
.lesson-progress-bar .seg.active { background: var(--teal); }

.lesson-panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 60px;
}

.lesson-panel h2 {
  font-family: var(--font-thai-display);
  font-size: 1.3rem;
  margin: 0 0 6px;
}
.lesson-panel .panel-sub { color: var(--ink-soft); margin: 0 0 30px; font-size: .94rem; }

.vocab-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.vocab-item:first-of-type { border-top: none; }

.vocab-en .phrase {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  margin: 0 0 4px;
}
.vocab-en .pron {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--teal);
  margin: 0 0 10px;
}
.vocab-en .example {
  font-size: .88rem;
  color: var(--ink-soft);
  font-style: italic;
  margin: 0;
}

.vocab-th .phrase-th {
  font-family: var(--font-thai-display);
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0 0 10px;
}
.vocab-th .example-th {
  font-size: .88rem;
  color: var(--ink-soft);
  margin: 0;
}

.quiz-block { margin-bottom: 30px; }
.quiz-question {
  font-family: var(--font-thai-display);
  font-size: 1.05rem;
  margin: 0 0 16px;
}
.quiz-choices { display: flex; flex-direction: column; gap: 10px; }
.quiz-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: var(--bg);
  transition: border-color .15s ease, background .15s ease;
}
.quiz-choice:hover { border-color: var(--teal); }
.quiz-choice input { accent-color: var(--teal); }
.quiz-choice .letter {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--ink-soft);
  width: 20px;
}

.quiz-choice.correct { background: var(--success-soft); border-color: var(--success); }
.quiz-choice.incorrect { background: #FBEAE6; border-color: #E0785E; }

.quiz-explain {
  margin-top: 12px;
  font-size: .86rem;
  color: var(--ink-soft);
  background: var(--bg-sunken);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  display: none;
}
.quiz-explain.show { display: block; }

.lesson-nav { display: flex; justify-content: space-between; align-items: center; }

.result-panel {
  text-align: center;
  padding: 56px 40px;
}
.result-panel .score-big {
  font-family: var(--font-mono);
  font-size: 3.2rem;
  color: var(--teal);
  margin: 0 0 6px;
}
.result-panel h2 { font-family: var(--font-thai-display); margin: 0 0 12px; }
.result-panel p { color: var(--ink-soft); max-width: 46ch; margin: 0 auto 30px; }

/* ============================================================
   Profile page
   ============================================================ */
.profile-header {
  padding: 40px 0 8px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--turmeric), var(--coral));
  color: #fff;
  font-family: var(--font-thai-display);
  font-weight: 700;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-header h1 {
  font-family: var(--font-thai-display);
  font-size: 1.5rem;
  margin: 0 0 4px;
}
.profile-header p { margin: 0; color: var(--ink-soft); font-size: .9rem; }

.profile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 28px 0;
}

.profile-stat {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}
.profile-stat .num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.7rem;
  color: var(--teal);
  display: block;
  margin-bottom: 4px;
}
.profile-stat .lbl { font-size: .8rem; color: var(--ink-soft); }

.profile-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding-bottom: 72px;
}

.profile-panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.profile-panel h2 {
  font-family: var(--font-thai-display);
  font-size: 1.15rem;
  margin: 0 0 22px;
}

@media (max-width: 860px) {
  .profile-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-panels { grid-template-columns: 1fr; }
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  color: var(--ink-soft);
  font-size: .86rem;
}
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .dash-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .vocab-item { grid-template-columns: 1fr; gap: 8px; }
  .lesson-panel { padding: 26px; }
  .auth-card { padding: 30px 24px; }
}

@media (max-width: 680px) {
  .nav-toggle { display: flex; }

  .nav-actions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-card);
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .25s ease, opacity .2s ease, padding .25s ease;
  }

  .nav-actions.open {
    max-height: 320px;
    opacity: 1;
    padding: 16px 20px 22px;
  }

  .nav-actions .btn { width: 100%; }
}

@media (max-width: 520px) {
  .site-header .wrap { height: 64px; }
  .hero { padding: 40px 0 24px; }
}
