/* ==========================================================================
   Lin Garden — Wilmington, MA
   Implemented from the "Lin Garden.dc.html" design canvas artboard.
   Tokens below are taken verbatim from the artboard.
   ========================================================================== */

:root {
  /* Surfaces */
  --bg:         #fdf8f1;  /* page cream            */
  --surface:    #ffffff;  /* cards, about panel    */
  --blush:      #fbe9d8;  /* dish tile / hero halo */
  --tile:       #f4ece1;  /* photo well            */

  /* Ink */
  --ink:        #241c18;  /* headings, footer bg   */
  --muted:      #5b4b43;  /* body copy             */
  --soft:       #7a675d;  /* captions, meta        */
  --cream:      #f6ece1;  /* text on dark footer   */

  /* Brand */
  --red:        #c8342b;
  --red-deep:   #8f231d;

  /* Lines */
  --line:       #eee0d0;
  --line-warm:  #e4d7c8;

  /* Type */
  --display: "Baloo 2", ui-rounded, "Trebuchet MS", system-ui, sans-serif;
  --body:    "Karla", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Metrics */
  --shell:  1180px;
  --gutter: 20px;
  --anchor-offset: 110px;

  --shadow-header: 0 2px 14px rgba(36, 28, 24, .16);
  --shadow-card:   0 1px 2px rgba(36, 28, 24, .04);
  --shadow-lift:   0 10px 24px rgba(36, 28, 24, .10);
}

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

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

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

img { max-width: 100%; }

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-deep); }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-red :focus-visible { outline-color: #fff; }

/* Skip link ---------------------------------------------------------------- */
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: #fff;
  color: var(--red);
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-header);
  transition: top .15s ease;
}
.skip:focus { top: 12px; }

/* Shell -------------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Shared type -------------------------------------------------------------- */
.eyebrow {
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
}

.section-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
}

.link-more {
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}

/* Buttons ------------------------------------------------------------------ */
.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  border-radius: 999px;
  text-align: center;
  white-space: nowrap;
  transition: transform .12s ease, background-color .12s ease, color .12s ease, box-shadow .12s ease;
}

.btn-primary {
  background: var(--red);
  color: #fff;
  font-size: 20px;
  padding: 16px 38px;
  box-shadow: 0 4px 0 var(--red-deep);
}
.btn-primary:hover { background: var(--red-deep); color: #fff; box-shadow: 0 4px 0 #6d1a15; }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--red-deep); }

.btn-ghost {
  border: 2px solid var(--ink);
  color: var(--ink);
  font-weight: 600;
  font-size: 18px;
  padding: 14px 28px;
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

.btn-onred {
  background: #fff;
  color: var(--red);
  font-size: 16px;
  padding: 10px 22px;
  box-shadow: 0 2px 0 rgba(36, 28, 24, .18);
}
.btn-onred:hover { background: var(--cream); color: var(--red-deep); }
.btn-onred:active { transform: translateY(2px); box-shadow: none; }

.btn-invite {
  align-self: flex-start;
  background: #fff;
  color: var(--red);
  font-size: 18px;
  padding: 14px 30px;
}
.btn-invite:hover { background: var(--cream); color: var(--red-deep); }

/* Header ------------------------------------------------------------------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--red);
  box-shadow: var(--shadow-header);
}

.masthead .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 12px;
}

.brand { display: flex; align-items: center; gap: 12px; }
/* The logo is a transparent PNG that sits directly on the masthead red, so
   there is no matte rectangle left to round off. */
.brand img {
  height: 44px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
  font-weight: 500;
}
/* Scoped to .nav-link, not `.nav a` — a bare `.nav a` (0-1-1) outranks
   .btn-onred (0-1-0) and paints the Order Now button white on white. */
.nav .nav-link { color: #fff; position: relative; }
.nav .nav-link:hover { color: var(--cream); }
.nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform .16s ease;
}
.nav .nav-link:hover::after { transform: scaleX(1); }

/* Mobile menu (progressive: works without JS via <details>) */
.menu { display: none; position: relative; }
.menu > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  padding: 9px 16px;
  border: 1.5px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary .bars,
.menu > summary .bars::before,
.menu > summary .bars::after {
  display: block;
  width: 16px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}
.menu > summary .bars { position: relative; }
.menu > summary .bars::before,
.menu > summary .bars::after { content: ""; position: absolute; left: 0; }
.menu > summary .bars::before { top: -5px; }
.menu > summary .bars::after  { top: 5px; }
.menu[open] > summary .bars { background: transparent; }
.menu[open] > summary .bars::before { top: 0; transform: rotate(45deg); }
.menu[open] > summary .bars::after  { top: 0; transform: rotate(-45deg); }

.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  min-width: 210px;
  display: flex;
  flex-direction: column;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-lift);
}
.menu-panel a {
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  padding: 11px 14px;
  border-radius: 12px;
}
.menu-panel a:hover { background: var(--blush); color: var(--red-deep); }

/* Hero --------------------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 36px;
  align-items: center;
  padding: 56px 0 48px;
}

.hero-copy { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.02;
  text-wrap: pretty;
}

.hero p {
  margin: 0;
  max-width: 46ch;
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
  text-wrap: pretty;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
.tags li {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--soft);
  border: 1px solid var(--line-warm);
  border-radius: 999px;
  padding: 7px 14px;
}

.hero-art {
  min-width: 0;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-art::before {
  content: "";
  position: absolute;
  width: min(88%, 440px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--blush);
}
.hero-art img {
  position: relative;
  width: min(100%, 480px);
  height: auto;
  display: block;
}

/* Dishes ------------------------------------------------------------------- */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.dishes { padding: 20px 0 56px; }

.dish-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dish {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow-card);
  transition: transform .16s ease, box-shadow .16s ease;
}
.dish:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

.dish-photo {
  border-radius: 14px;
  overflow: hidden;
  background: var(--blush);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.dish-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.dish-name {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.2;
}
.dish-note {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: var(--soft);
  line-height: 1.5;
}

/* About -------------------------------------------------------------------- */
.about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 36px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 38px;
  margin-bottom: 56px;
}

.about-copy { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.about-copy p {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  text-wrap: pretty;
}

.facts {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  margin: 4px 0 0;
  padding: 0;
}
.facts div { display: flex; flex-direction: column; }
.facts dt {
  font-family: var(--display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.1;
  color: var(--red);
}
.facts dd { margin: 0; font-size: 14px; color: var(--soft); }

.about-photo {
  min-width: 0;
  border-radius: 20px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--tile);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Visit -------------------------------------------------------------------- */
.visit {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  padding-bottom: 56px;
}

.visit h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
}

.panel { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.panel p { margin: 0; font-size: 16px; line-height: 1.7; color: var(--muted); }

.hours {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  font-size: 16px;
  color: var(--muted);
}
.hours > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}
.hours > div:last-child { border-bottom: 0; padding-bottom: 0; }
.hours dt { font-weight: 400; }
.hours dd { margin: 0; font-weight: 700; color: var(--ink); }
.hours .closed { color: var(--red); }

.invite {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  background: var(--red);
  border-radius: 24px;
  padding: 28px;
  color: #fff;
}
.invite-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.15;
}
.invite p { margin: 0; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .92); }

/* Footer ------------------------------------------------------------------- */
.colophon { background: var(--ink); color: var(--cream); }
.colophon .shell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 26px;
  font-size: 14px;
}
.colophon a { color: var(--cream); font-weight: 700; }
.colophon a:hover { color: #fff; text-decoration: underline; }

/* Anchor offsets ----------------------------------------------------------- */
#top, #dishes, #about, #visit { scroll-margin-top: var(--anchor-offset); }

/* Responsive --------------------------------------------------------------- */
@media (max-width: 700px) {
  .nav .nav-link { display: none; }
  .menu { display: block; }
  .nav { gap: 12px; }
  .hero { padding: 40px 0 36px; }
  .about { padding: 26px; border-radius: 22px; }
  .facts { gap: 20px; }
}

@media (max-width: 420px) {
  .brand img { height: 38px; }
  .btn-onred { font-size: 15px; padding: 9px 16px; }
  .btn-primary { font-size: 18px; padding: 14px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  .masthead, .menu, .hero-actions, .invite, .skip { display: none !important; }
  body { background: #fff; }
  .dish, .about { box-shadow: none; }
}
