/* ───────────────────────────────────────────────
   Fonts
─────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;1,400&family=Inter:wght@300;400;500&display=swap');

/* ───────────────────────────────────────────────
   Tokens
─────────────────────────────────────────────── */
:root {
  --bg:        #faf9f7;
  --surface:   #f2f0ec;
  --border:    #e2ddd7;
  --text:      #1a1916;
  --muted:     #7a746c;
  --accent:    #44624a;
  --accent-bg: rgba(68, 98, 74, 0.06);

  --serif:     'Lora', Georgia, serif;
  --sans:      'Inter', system-ui, sans-serif;

  --max-w:     720px;
  --gap:       2rem;
}

/* ───────────────────────────────────────────────
   Reset
─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  border-top: 4px solid var(--accent);
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }

/* ───────────────────────────────────────────────
   Layout
─────────────────────────────────────────────── */
header, main, footer {
  width: 100%;
  max-width: calc(var(--max-w) + 4rem);
  margin-inline: auto;
  padding-inline: 2rem;
}

main   { flex: 1; padding-block: 4rem; }
footer {
  padding-block: 2.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

/* ───────────────────────────────────────────────
   Nav
─────────────────────────────────────────────── */
header {
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--border);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-title {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 1.75rem;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.03em;
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

/* ───────────────────────────────────────────────
   Typography helpers
─────────────────────────────────────────────── */
.eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 1px;
  flex-shrink: 0;
}

h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--accent);
}

h2 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--text);
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 52ch;
  margin-top: 1rem;
  line-height: 1.75;
}

/* ───────────────────────────────────────────────
   Hero (home)
─────────────────────────────────────────────── */
.hero {
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4rem;
}

/* ───────────────────────────────────────────────
   Index cards (home)
─────────────────────────────────────────────── */
.index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.index-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: border-color 0.15s, box-shadow 0.15s;
  cursor: pointer;
}

.index-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.card-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.index-card h2 {
  font-size: 1.1rem;
  margin-top: 0.25rem;
}

.index-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}

.card-arrow {
  font-size: 1rem;
  color: var(--accent);
  margin-top: 0.5rem;
  transition: transform 0.15s;
}

.index-card:hover .card-arrow { transform: translateX(4px); }

/* ───────────────────────────────────────────────
   Page header (inner pages)
─────────────────────────────────────────────── */
.page-header {
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

/* ───────────────────────────────────────────────
   Entries
─────────────────────────────────────────────── */
.entries {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.entry {
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.entry:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.entry-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.entry-date {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 400;
}

.entry-tag {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2em 0.65em;
  border-radius: 2px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
}

/* idea status colours */
.status-draft   { background: #f0f4f1; border-color: #a8c2ab; color: #44624a; }
.status-testing { background: #eef3fd; border-color: #9ab4e8; color: #1a44a0; }
.status-ready   { background: #edfaf2; border-color: #85d6a6; color: #0d6630; }

.entry-title {
  margin-bottom: 0.6rem;
}

.entry-desc {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 60ch;
  margin-bottom: 1rem;
}

.entry-notes {
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 0.5rem;
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
}

/* ───────────────────────────────────────────────
   Menu list (gatherings)
─────────────────────────────────────────────── */
.menu-list {
  list-style: none;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.menu-list li {
  font-size: 0.92rem;
  color: var(--text);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0.75rem;
  align-items: baseline;
}

.course {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
}

.dish-sub {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 300;
  margin-top: 0.1rem;
}

.entry-title-zh {
  font-size: 0.85em;
  color: var(--muted);
  font-weight: 400;
}

/* ───────────────────────────────────────────────
   Photos
─────────────────────────────────────────────── */
.entry-photo {
  margin-bottom: 1.5rem;
}

.entry-photo img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 3px;
}

.entry-photo figcaption {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.5rem;
  font-style: italic;
}

/* ───────────────────────────────────────────────
   Japanese translation text
─────────────────────────────────────────────── */
.jp {
  display: block;
  font-size: 0.82em;
  color: var(--muted);
  font-weight: 400;
  margin-top: 0.15rem;
  letter-spacing: 0.02em;
}

h1 .jp {
  font-size: 0.55em;
  margin-top: 0.3rem;
  display: block;
}

.lead .jp {
  font-size: 0.88em;
  margin-top: 0.4rem;
  display: block;
}

.menu-section-title .jp {
  font-size: 0.7em;
  display: block;
  margin-top: 0.1rem;
}

/* ───────────────────────────────────────────────
   Ideas index (home page list)
─────────────────────────────────────────────── */
.ideas-index {
  margin-top: 0.5rem;
}

.ideas-index > .eyebrow {
  margin-bottom: 1.25rem;
}

.idea-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: baseline;
  gap: 1rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background 0.12s, padding-inline 0.12s;
}

.idea-row:last-of-type {
  border-bottom: 1px solid var(--border);
}

.idea-row:hover {
  background: var(--accent-bg);
  padding-inline: 0.6rem;
  margin-inline: -0.6rem;
}

.idea-row:hover .idea-row-arrow { transform: translateX(4px); }
.idea-row:hover .idea-row-title { color: var(--accent); }

.idea-row-tag {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.idea-row-title {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  transition: color 0.15s;
}

.idea-row-arrow {
  font-size: 0.9rem;
  color: var(--accent);
  transition: transform 0.15s;
}

/* ───────────────────────────────────────────────
   Gatherings index (home page list)
─────────────────────────────────────────────── */
.gatherings-index {
  margin-top: 0.5rem;
  margin-bottom: 4rem;
}

.gatherings-index > .eyebrow {
  margin-bottom: 1.25rem;
}

.gathering-row {
  display: grid;
  grid-template-columns: 120px 1fr auto auto;
  align-items: baseline;
  gap: 1rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background 0.12s, padding-inline 0.12s;
}

.gathering-row:last-of-type {
  border-bottom: 1px solid var(--border);
}

.gathering-row:hover {
  background: var(--accent-bg);
  padding-inline: 0.6rem;
  margin-inline: -0.6rem;
}

.gathering-row:hover .gathering-row-arrow { transform: translateX(4px); }
.gathering-row:hover .gathering-row-title { color: var(--accent); }

.gathering-row-date {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}

.gathering-row-title {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  transition: color 0.15s;
}

.gathering-row-zh {
  font-size: 0.85em;
  color: var(--muted);
}

.gathering-row-meta {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
}

.gathering-row-arrow {
  font-size: 0.9rem;
  color: var(--accent);
  transition: transform 0.15s;
}

/* ───────────────────────────────────────────────
   Individual gathering page
─────────────────────────────────────────────── */
.back-link {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.15s;
}

.back-link:hover { color: var(--text); }

.gathering-menu {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.menu-section {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1rem 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.menu-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.menu-section-title {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 0.15rem;
}

.menu-dishes {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.menu-dish { }

.dish-name {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.dish-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

.dish-desc-zh {
  font-size: 0.8rem;
  color: var(--muted);
  opacity: 0.7;
  margin-top: 0.1rem;
}

/* ───────────────────────────────────────────────
   Recipe notes (detailed gathering pages)
─────────────────────────────────────────────── */
.recipe-notes,
.cooking-sequence {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.recipe-notes-heading {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2.5rem;
}

.recipe {
  padding-bottom: 2.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.recipe:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.recipe-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 0.35rem;
}

.recipe-prepnote {
  font-size: 0.8rem;
  color: var(--accent);
  font-style: italic;
  margin-bottom: 1.25rem;
}

.recipe-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.recipe-subhead {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
  margin-top: 1.1rem;
}

.recipe-subhead:first-child { margin-top: 0; }

.recipe-qty {
  font-weight: 300;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
}

.ingredient-list,
.method-list {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.65;
  padding-left: 1.1rem;
}

.ingredient-list { list-style: disc; }
.method-list     { list-style: decimal; }

.ingredient-list li,
.method-list li { margin-bottom: 0.3rem; }

.recipe-tip {
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 0.85rem;
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
}

/* ───────────────────────────────────────────────
   Cooking sequence
─────────────────────────────────────────────── */
.sequence-serve-time {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.sequence-list {
  display: flex;
  flex-direction: column;
}

.sequence-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  align-items: baseline;
}

.sequence-row:last-child { border-bottom: 1px solid var(--border); }

.sequence-row--serve {
  font-weight: 500;
  color: var(--accent);
}

.sequence-time {
  color: var(--muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

.sequence-row--serve .sequence-time { color: var(--accent); }

/* ───────────────────────────────────────────────
   Responsive
─────────────────────────────────────────────── */
@media (max-width: 600px) {
  header, main, footer { padding-inline: 1.25rem; }

  .menu-list li,
  .menu-section {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }

  .menu-section-title { margin-bottom: 0.5rem; }

  .recipe-cols { grid-template-columns: 1fr; gap: 0; }

  .idea-row {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    row-gap: 0.2rem;
  }

  .idea-row-tag   { grid-column: 1; grid-row: 2; font-size: 0.7rem; }
  .idea-row-title { grid-column: 1; grid-row: 1; }
  .idea-row-arrow { grid-column: 2; grid-row: 1; }

  .gathering-row {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    row-gap: 0.2rem;
  }

  .gathering-row-date  { grid-column: 1; grid-row: 2; font-size: 0.75rem; }
  .gathering-row-title { grid-column: 1; grid-row: 1; }
  .gathering-row-meta  { display: none; }
  .gathering-row-arrow { grid-column: 2; grid-row: 1; }

  .nav-links { gap: 1.1rem; }
}
