/* Field Notes — Paris food journal */
:root {
  --kraft: #C9B08A;
  --kraft-mid: #B89974;
  --kraft-deep: #8F7352;
  --clay: #8C4A32;
  --clay-soft: #B4684A;
  --chalk: #F4EEE3;
  --paper: #FBF7F0;
  --ink: #1C1610;
  --ink-soft: #4A3F32;
  --mute: #7A6B58;
  --rule: rgba(28, 22, 16, 0.14);
  --olive: #5A6A48;
  --display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Figtree", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1120px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background-color: var(--kraft);
  background-image:
    radial-gradient(ellipse 90% 60% at 100% 0%, rgba(140, 74, 50, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 0% 100%, rgba(90, 106, 72, 0.12), transparent 50%),
    linear-gradient(180deg, #D2BC98 0%, var(--kraft) 38%, #BEA47A 100%);
  background-attachment: fixed;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--clay); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
ul { list-style: none; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 1000;
  background: var(--ink);
  color: var(--chalk);
  padding: 0.6rem 1rem;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* —— Shell —— */
.site-shell {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.85rem var(--gutter) 0;
}

.site-shell::before {
  content: "";
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 10px;
  background:
    linear-gradient(90deg, #6B4E35 0%, #8F7352 40%, #A88B68 100%);
  box-shadow: 2px 0 0 rgba(28, 22, 16, 0.08);
  z-index: 40;
  pointer-events: none;
}

@media (max-width: 720px) {
  .site-shell::before { width: 5px; }
}

/* —— Header —— */
.mast {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 1rem 2rem;
  padding: 0.4rem 0 1.1rem;
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 30;
  background: linear-gradient(180deg, rgba(201, 176, 138, 0.96) 60%, rgba(201, 176, 138, 0.88));
  backdrop-filter: blur(8px);
}

.mast-brand {
  font-family: var(--display);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}
.mast-brand span {
  display: block;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay);
  margin-top: 0.35rem;
  font-weight: 500;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 1px solid var(--rule);
  background: rgba(251, 247, 240, 0.45);
}
.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  background: var(--ink);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
}
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }

.mast-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.35rem;
  align-items: center;
  justify-content: flex-end;
  font-size: 0.84rem;
  font-weight: 500;
}
.mast-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  position: relative;
}
.mast-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--clay);
  transition: width 0.35s var(--ease);
}
.mast-nav a:hover,
.mast-nav a[aria-current="page"] { color: var(--ink); }
.mast-nav a:hover::after,
.mast-nav a[aria-current="page"]::after { width: 100%; }

@media (max-width: 820px) {
  .nav-toggle { display: grid; }
  .mast-nav {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.5rem 0 0.75rem;
  }
  .mast-nav.is-open { display: flex; }
}

/* —— Hero —— */
.hero {
  position: relative;
  margin: 1.25rem 0 0;
  min-height: min(78vh, 720px);
  display: grid;
  align-content: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroDrift 18s var(--ease) infinite alternate;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(28, 22, 16, 0.15) 0%, rgba(28, 22, 16, 0.28) 40%, rgba(28, 22, 16, 0.78) 100%),
    linear-gradient(90deg, rgba(140, 74, 50, 0.25), transparent 45%);
}

@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}

.hero-copy {
  padding: clamp(1.5rem, 5vw, 3.5rem);
  color: var(--chalk);
  max-width: 38rem;
}

.hero-brand {
  font-family: var(--display);
  font-size: clamp(3.4rem, 11vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  font-weight: 400;
  margin-bottom: 1rem;
  animation: brandIn 1s var(--ease) both;
}
.hero-brand em {
  font-style: italic;
  color: #F0D2B8;
}

@keyframes brandIn {
  from { opacity: 0; letter-spacing: 0.08em; transform: translateY(12px); }
  to { opacity: 1; letter-spacing: -0.03em; transform: translateY(0); }
}

.hero-line {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 500;
  line-height: 1.35;
  max-width: 26ch;
  margin-bottom: 0.75rem;
  animation: fadeUp 0.9s var(--ease) 0.15s both;
}

.hero-sub {
  font-size: 0.98rem;
  color: rgba(244, 238, 227, 0.82);
  max-width: 38ch;
  margin-bottom: 1.4rem;
  animation: fadeUp 0.9s var(--ease) 0.28s both;
}

.hero-cta {
  display: inline-flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  animation: fadeUp 0.9s var(--ease) 0.4s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.72rem 1.15rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
}
.btn-primary {
  background: var(--clay);
  color: var(--chalk);
}
.btn-primary:hover {
  background: var(--ink);
  color: var(--chalk);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--chalk);
  border-color: rgba(244, 238, 227, 0.45);
}
.btn-ghost:hover {
  background: rgba(244, 238, 227, 0.12);
  color: var(--chalk);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* —— Issue bar —— */
.issue-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.9rem 0;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid var(--rule);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}
.issue-bar strong { color: var(--ink); font-weight: 600; }

/* —— Sections —— */
.section {
  padding: clamp(2rem, 5vw, 3.5rem) 0;
}
.section-head {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1.75rem;
  max-width: 36rem;
}
.section-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 600;
}
.section-title {
  font-family: var(--display);
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.section-lead {
  color: var(--ink-soft);
  font-size: 1.02rem;
}

/* —— Featured spread —— */
.featured {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  min-height: 420px;
  background: var(--paper);
  border: 1px solid var(--rule);
  overflow: hidden;
}
.featured-media {
  position: relative;
  min-height: 280px;
  overflow: hidden;
}
.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.featured:hover .featured-media img { transform: scale(1.04); }
.featured-body {
  padding: clamp(1.4rem, 3.5vw, 2.4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.85rem;
  border-left: 1px solid var(--rule);
}
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 600;
}
.entry-meta .num { color: var(--clay); }
.featured-body h2 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.featured-body h2 a {
  color: inherit;
  text-decoration: none;
}
.featured-body h2 a:hover { color: var(--clay); }
.featured-body p {
  color: var(--ink-soft);
  max-width: 38ch;
}
.read-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--clay);
}
.read-link::after {
  content: "→";
  transition: transform 0.3s var(--ease);
}
.read-link:hover::after { transform: translateX(4px); }

@media (max-width: 860px) {
  .featured { grid-template-columns: 1fr; }
  .featured-body { border-left: 0; border-top: 1px solid var(--rule); }
  .featured-media { min-height: 240px; }
}

/* —— Entry grid —— */
.entry-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}

.entry {
  grid-column: span 4;
  background: rgba(251, 247, 240, 0.72);
  border: 1px solid var(--rule);
  display: grid;
  grid-template-rows: auto 1fr;
  transition: transform 0.45s var(--ease), background 0.45s var(--ease);
  opacity: 0;
  transform: translateY(18px);
}
.entry.is-in {
  opacity: 1;
  transform: translateY(0);
}
.entry:hover {
  transform: translateY(-4px);
  background: var(--paper);
}
.entry-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}
.entry-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.entry:hover .entry-media img { transform: scale(1.05); }
.entry-body {
  padding: 1.15rem 1.2rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.entry-body h3 {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.entry-body h3 a {
  color: inherit;
  text-decoration: none;
}
.entry-body h3 a:hover { color: var(--clay); }
.entry-body p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  flex: 1;
}

.entry.wide { grid-column: span 8; }
.entry.wide .entry-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 100%;
}
.entry.wide .entry-media {
  aspect-ratio: auto;
  min-height: 220px;
  height: 100%;
  border-bottom: 0;
  border-right: 1px solid var(--rule);
}

@media (max-width: 980px) {
  .entry, .entry.wide { grid-column: span 6; }
  .entry.wide .entry-inner { grid-template-columns: 1fr; }
  .entry.wide .entry-media {
    aspect-ratio: 16 / 10;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }
}
@media (max-width: 640px) {
  .entry, .entry.wide { grid-column: span 12; }
}

/* —— Note strip —— */
.note-strip {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding: 1.5rem 1.6rem;
  background: var(--ink);
  color: var(--chalk);
  margin: 0.5rem 0 1rem;
}
.note-strip .mark {
  font-family: var(--display);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--kraft);
  font-style: italic;
}
.note-strip p {
  font-size: 1.02rem;
  max-width: 52ch;
  color: rgba(244, 238, 227, 0.88);
}
.note-strip a { color: #F0D2B8; }

@media (max-width: 560px) {
  .note-strip { grid-template-columns: 1fr; gap: 0.6rem; }
}

/* —— Article page —— */
.article-hero {
  position: relative;
  margin: 1.1rem 0 0;
  min-height: min(52vh, 480px);
  display: grid;
  align-content: end;
  overflow: hidden;
}
.article-hero .hero-media::after {
  background: linear-gradient(180deg, rgba(28, 22, 16, 0.1), rgba(28, 22, 16, 0.82));
}
.article-hero .hero-copy {
  max-width: 44rem;
  padding-bottom: clamp(1.4rem, 4vw, 2.4rem);
}
.article-hero h1 {
  font-family: var(--display);
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 400;
  margin: 0.5rem 0 0.75rem;
  color: var(--chalk);
}

.paper {
  background: var(--paper);
  border: 1px solid var(--rule);
  margin: 1.5rem 0 2rem;
  padding: clamp(1.4rem, 4vw, 2.75rem);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.prose {
  font-size: 1.05rem;
  max-width: 68ch;
}
.prose > * + * { margin-top: 1.15rem; }
.prose h2 {
  font-family: var(--display);
  font-size: 1.65rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-top: 2.1rem;
  line-height: 1.2;
}
.prose h3 {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 400;
  margin-top: 1.6rem;
}
.prose p { color: var(--ink-soft); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose em { font-family: var(--display); }
.prose ul {
  padding-left: 1.15rem;
  color: var(--ink-soft);
}
.prose ul li {
  list-style: disc;
  margin: 0.35rem 0;
}
.prose blockquote {
  border-left: 3px solid var(--clay);
  padding: 0.2rem 0 0.2rem 1.15rem;
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1.35;
  color: var(--ink);
  margin: 1.6rem 0;
}
.prose figure {
  margin: 1.75rem 0;
}
.prose figure img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border: 1px solid var(--rule);
}
.prose figcaption {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: var(--mute);
  letter-spacing: 0.02em;
}

.sidebar {
  font-size: 0.88rem;
  color: var(--ink-soft);
  border-left: 1px solid var(--rule);
  padding-left: 1.25rem;
  align-self: start;
  position: sticky;
  top: 5.5rem;
}
.sidebar h4 {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 0.65rem;
  font-weight: 700;
}
.sidebar p + p { margin-top: 0.75rem; }
.sidebar .toc a {
  display: block;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--rule);
}
.sidebar .toc a:hover { color: var(--clay); }

@media (max-width: 860px) {
  .article-layout { grid-template-columns: 1fr; }
  .sidebar {
    position: static;
    border-left: 0;
    border-top: 1px solid var(--rule);
    padding: 1.25rem 0 0;
    margin-top: 0.5rem;
  }
}

.legal .prose h2 { margin-top: 1.75rem; }
.legal .prose p { font-size: 0.98rem; }

/* —— About —— */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
}
.about-panel {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: clamp(1.4rem, 3vw, 2.2rem);
}
.about-panel h1,
.about-panel h2 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.about-panel h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin: 0.4rem 0 1rem;
}
.about-panel h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.about-panel p + p { margin-top: 0.9rem; }
.about-panel p { color: var(--ink-soft); }
.about-aside {
  background: var(--ink);
  color: var(--chalk);
  border: 1px solid var(--ink);
  padding: clamp(1.4rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.about-aside h2 {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--kraft);
}
.about-aside p { color: rgba(244, 238, 227, 0.85); font-size: 0.95rem; }
.about-aside dl {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.about-aside dt {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--kraft-mid);
  font-weight: 600;
}
.about-aside dd { color: var(--chalk); }

@media (max-width: 800px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* —— Footer —— */
.site-footer {
  margin-top: 2rem;
  padding: 2rem 0 5.5rem;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem 2rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.site-footer .foot-brand {
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.55rem;
}
.site-footer h3 {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 0.65rem;
  font-weight: 700;
}
.site-footer a {
  display: block;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.2rem 0;
}
.site-footer a:hover { color: var(--ink); }
.foot-note {
  grid-column: 1 / -1;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-size: 0.8rem;
  color: var(--mute);
}

@media (max-width: 720px) {
  .site-footer { grid-template-columns: 1fr 1fr; }
  .site-footer .foot-brand-block { grid-column: 1 / -1; }
}

/* —— Cookie —— */
.cookie {
  position: fixed;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 1rem;
  z-index: 50;
  max-width: 640px;
  margin: 0 auto;
  background: var(--ink);
  color: var(--chalk);
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(201, 176, 138, 0.35);
  display: none;
  gap: 0.85rem;
  box-shadow: 0 16px 40px rgba(28, 22, 16, 0.35);
  animation: cookieIn 0.55s var(--ease) both;
}
.cookie.is-visible {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
}
.cookie p {
  font-size: 0.88rem;
  color: rgba(244, 238, 227, 0.88);
  line-height: 1.45;
}
.cookie a { color: #F0D2B8; }
.cookie-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.cookie .btn {
  padding: 0.55rem 0.9rem;
  font-size: 0.72rem;
}
.cookie .btn-primary { background: var(--kraft); color: var(--ink); }
.cookie .btn-ghost { border-color: rgba(244, 238, 227, 0.35); }

@keyframes cookieIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .cookie.is-visible { grid-template-columns: 1fr; }
  .cookie-actions { justify-content: flex-start; }
}

/* —— Utilities —— */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
