/* Fine Tchop website. Brand tokens match @finechop/ui. */

/* Bricolage Grotesque is loaded from Google Fonts in each page's <head>. */

:root {
  --green: #047857;
  --green-deep: #065F46;
  --green-tint: #ECFDF5;
  --amber: #F59E0B;
  --amber-tint: #FEF3C7;
  --ink: #1C1917;
  --stone: #57534E;
  --line: #E7E5E4;
  --paper: #FAFAF7;
  --white: #FFFFFF;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --measure: 68ch;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

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

a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-deep); }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1080px, 100% - 2.5rem); margin-inline: auto; }

/* ---------- header ---------- */
.site-header { background: var(--green-deep); color: var(--white); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--white); text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.35rem; letter-spacing: -.01em; }
.brand:hover { color: var(--white); }
.brand-mark { width: 34px; height: 34px; flex: none; }
.nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.nav a { color: #D1FAE5; text-decoration: none; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); text-decoration: underline; }

/* ---------- hero (the one bold moment) ---------- */
.hero { background: var(--green-deep); color: var(--white); padding-block: 3rem 4.5rem; position: relative; overflow: hidden; }
.hero::after {
  /* a plate seen from above, cropped by the edge */
  content: ""; position: absolute; right: -140px; bottom: -180px; width: 460px; height: 460px; border-radius: 50%;
  border: 38px solid var(--amber); opacity: .9;
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 {
  font-family: var(--display); font-weight: 800; line-height: .95; letter-spacing: -.035em;
  font-size: clamp(3rem, 10vw, 6.5rem); margin: 0 0 1.25rem; max-width: 11ch;
}
.hero p { font-size: clamp(1.1rem, 2.4vw, 1.35rem); max-width: 36ch; margin: 0 0 2rem; color: #ECFDF5; }
.badge { display: inline-block; background: var(--amber); color: var(--ink); font-weight: 700; padding: .55rem 1rem; border-radius: 999px; }

/* ---------- sections ---------- */
main section { padding-block: 3.5rem; }
main section + section { border-top: 1px solid var(--line); }
h2 { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; font-size: clamp(1.8rem, 4vw, 2.5rem); margin: 0 0 1rem; }
h3 { font-family: var(--display); font-weight: 700; font-size: 1.25rem; margin: 0 0 .4rem; }
.lead { font-size: 1.15rem; color: var(--stone); max-width: var(--measure); margin-top: 0; }

.steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--green); color: var(--white); font-family: var(--display); font-weight: 800; font-size: 1.2rem; margin-bottom: .9rem;
}
.steps p { margin: 0; color: var(--stone); }

.split { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.split p { color: var(--stone); margin: 0 0 .75rem; }

.areas { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; padding: 0; list-style: none; }
.areas li { background: var(--green-tint); color: var(--green-deep); font-weight: 600; padding: .45rem .9rem; border-radius: 999px; }

/* ---------- document pages ---------- */
.page-head { background: var(--green-tint); padding-block: 2.5rem 2rem; border-bottom: 1px solid var(--line); }
.page-head h1 { font-family: var(--display); font-weight: 800; letter-spacing: -.025em; line-height: 1.05; font-size: clamp(2.2rem, 6vw, 3.4rem); margin: 0 0 .5rem; color: var(--green-deep); }
.page-head p { margin: 0; color: var(--stone); max-width: var(--measure); }
.doc > * { max-width: var(--measure); }
.doc h2 { font-size: 1.6rem; margin-top: 2.5rem; }
.doc ol, .doc ul { padding-left: 1.3rem; }
.doc li { margin-bottom: .45rem; }
.note { background: var(--amber-tint); border-left: 5px solid var(--amber); padding: 1rem 1.25rem; border-radius: 0 8px 8px 0; color: #78350F; }
.path { font-weight: 600; color: var(--ink); }

table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: .98rem; }
th, td { text-align: left; vertical-align: top; padding: .7rem .8rem; border-bottom: 1px solid var(--line); }
th { color: var(--green-deep); font-family: var(--display); font-weight: 700; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #D6D3D1; padding-block: 2.5rem; font-size: .95rem; }
.site-footer .wrap { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.site-footer a { color: #FDE68A; }
.site-footer strong { color: var(--white); font-family: var(--display); }
.site-footer ul { list-style: none; padding: 0; margin: .5rem 0 0; }
.site-footer li { margin-bottom: .35rem; }

@media (max-width: 600px) {
  .site-header .wrap { flex-direction: column; align-items: flex-start; }
  .hero { padding-bottom: 6.5rem; }
  .hero::after { width: 220px; height: 220px; right: -90px; bottom: -120px; border-width: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
