:root {
  --paper: #fbfcf8;
  --surface: #ffffff;
  --mist: #edf2ee;
  --ink: #151714;
  --muted: #61675f;
  --line: #dbe2dc;
  --sage: #9fb4a6;
  --brand-sage: #90a798;
  --sage-strong: #456b54;
  --pine: #183d2b;
  --berry: #8f4255;
  --shadow: 0 24px 70px rgba(21, 23, 20, 0.12);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-150%);
  background: var(--ink);
  color: var(--surface);
  padding: 0.7rem 1rem;
  border-radius: 8px;
}

.skip-link:focus {
  transform: translateY(0);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.4rem;
  min-height: 86px;
  padding: 0.9rem 5vw;
  background: var(--brand-sage);
  border-bottom: 1px solid rgba(21, 23, 20, 0.12);
  box-shadow: 0 14px 34px rgba(21, 23, 20, 0.15);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  text-decoration: none;
}

.brand-logo {
  width: 176px;
  height: 58px;
  object-fit: contain;
  object-position: center;
  display: block;
}

.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-width: 92px;
  min-height: 44px;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  cursor: pointer;
  color: var(--surface);
  background: rgba(255, 255, 255, 0.14);
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
}

.site-nav {
  display: none;
  grid-column: 1 / -1;
  padding: 1rem 0 0.25rem;
}

.site-header.nav-open .site-nav {
  display: grid;
}

.site-nav a {
  position: relative;
  display: block;
  padding: 0.8rem 0;
  color: var(--surface);
  text-decoration: none;
  font-weight: 700;
  border-top: 1px solid rgba(21, 23, 20, 0.14);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--surface);
}

.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.45rem;
  height: 2px;
  background: var(--surface);
  border-radius: 999px;
}

.site-nav .nav-cta {
  margin-top: 0.65rem;
  padding: 0.75rem 1rem;
  color: var(--surface);
  background: var(--pine);
  border: 0;
  border-radius: 8px;
  text-align: center;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.78rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--surface);
  background: var(--pine);
  text-decoration: none;
  font-weight: 800;
}

.button.secondary {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
}

.button.ghost {
  color: var(--surface);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.72);
}

.button:hover {
  transform: translateY(-1px);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  min-height: 78svh;
  padding: 6rem 5vw 5rem;
  color: var(--surface);
  background: var(--pine);
  overflow: hidden;
}

.hero.compact {
  min-height: 52svh;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: linear-gradient(90deg, rgba(12, 23, 17, 0.86), rgba(12, 23, 17, 0.58), rgba(12, 23, 17, 0.24));
  background-size: cover;
  background-position: center;
  content: "";
}

.hero-home::before {
  background-image: linear-gradient(90deg, rgba(12, 23, 17, 0.82), rgba(12, 23, 17, 0.52), rgba(12, 23, 17, 0.18)), url("../images/yew-coffee-front.webp");
}

.hero-menu::before {
  background-image: linear-gradient(90deg, rgba(12, 23, 17, 0.78), rgba(12, 23, 17, 0.48), rgba(12, 23, 17, 0.2)), url("../images/yew-coffee-lunch-bowls.webp");
}

.hero-about::before {
  background-image: linear-gradient(90deg, rgba(12, 23, 17, 0.76), rgba(12, 23, 17, 0.46), rgba(12, 23, 17, 0.18)), url("../images/yew-coffee-wall-logo.webp");
}

.hero-contact::before {
  background-image: linear-gradient(90deg, rgba(12, 23, 17, 0.82), rgba(12, 23, 17, 0.52), rgba(12, 23, 17, 0.18)), url("../images/yew-coffee-front.webp");
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  z-index: 0;
  background: linear-gradient(0deg, rgba(12, 23, 17, 0.68), transparent);
  content: "";
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  min-width: 0;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: currentColor;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
.display {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  max-width: 790px;
  font-size: 3rem;
}

.hero p {
  max-width: 650px;
  margin: 1.1rem 0 1.5rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.06rem;
}

.section {
  padding: 4.5rem 5vw;
}

.section.tight {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.section.compact-gap {
  padding-top: 2.25rem;
  padding-bottom: 3.5rem;
}

.container {
  width: 100%;
  max-width: var(--max);
  min-width: 0;
  margin: 0 auto;
}

.section-heading {
  display: grid;
  gap: 1rem;
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-heading.center {
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
}

.section-heading h2,
.split-text h2,
.contact-panel h2 {
  font-size: 2.15rem;
}

.section-heading p,
.split-text p,
.contact-panel p {
  margin: 0;
  color: var(--muted);
}

.quick-grid {
  display: grid;
  gap: 1rem;
}

.quick-card {
  display: grid;
  align-content: start;
  gap: 0.7rem;
  min-height: 210px;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(21, 23, 20, 0.06);
}

.quick-card strong,
.menu-card strong,
.detail-card strong {
  color: var(--pine);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.quick-card h3,
.menu-card h3,
.detail-card h3 {
  font-size: 1.55rem;
}

.quick-card p,
.menu-card p,
.detail-card p {
  margin: 0;
  color: var(--muted);
}

.editorial-grid {
  display: grid;
  gap: 1.2rem;
}

.editorial-card {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--ink);
}

.editorial-card.tall {
  min-height: 540px;
}

.editorial-card img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  opacity: 0.78;
}

.editorial-card .caption {
  position: absolute;
  inset: auto 0 0;
  padding: 1.35rem;
  color: var(--surface);
  background: linear-gradient(0deg, rgba(10, 14, 11, 0.76), transparent);
}

.editorial-card h3 {
  font-size: 1.7rem;
}

.editorial-card p {
  max-width: 480px;
  margin: 0.65rem 0 0;
  color: rgba(255, 255, 255, 0.86);
}

.split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.split.reverse {
  direction: rtl;
}

.split.reverse > * {
  direction: ltr;
}

.split-media {
  overflow: hidden;
  border-radius: 8px;
  background: var(--mist);
}

.split-media img {
  width: 100%;
  min-height: 330px;
  max-height: 600px;
  object-fit: cover;
}

.split-text {
  display: grid;
  gap: 1rem;
}

.facts {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.fact {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.fact span {
  color: var(--muted);
}

.image-band {
  min-height: 360px;
  background-image: linear-gradient(90deg, rgba(14, 24, 18, 0.72), rgba(14, 24, 18, 0.18)), url("../images/yew-coffee-banner.jpg");
  background-size: cover;
  background-position: center;
  color: var(--surface);
}

.image-band .container {
  display: grid;
  align-items: center;
  min-height: 360px;
}

.image-band h2 {
  max-width: 680px;
  font-size: 2.35rem;
}

.hours-layout {
  display: grid;
  gap: 1.5rem;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hours-table th,
.hours-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.hours-table tr:last-child th,
.hours-table tr:last-child td {
  border-bottom: 0;
}

.hours-table th {
  width: 44%;
  color: var(--pine);
}

.notice-panel {
  display: grid;
  gap: 1rem;
  align-content: start;
  padding: 1.5rem;
  color: var(--surface);
  background: var(--pine);
  border-radius: 8px;
}

.notice-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
}

.notice-panel .button.secondary {
  color: var(--ink);
}

.menu-grid,
.detail-grid {
  display: grid;
  gap: 1rem;
}

.menu-card,
.detail-card {
  display: grid;
  gap: 0.85rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.menu-card.accent {
  color: var(--surface);
  background: var(--sage-strong);
  border-color: transparent;
}

.menu-card.accent strong,
.menu-card.accent p {
  color: rgba(255, 255, 255, 0.84);
}

.gallery-grid {
  display: grid;
  gap: 1rem;
}

.gallery-grid img {
  width: 100%;
  height: 310px;
  object-fit: cover;
  border-radius: 8px;
}

.gallery-grid .wide {
  height: 280px;
}

.gallery-grid .milkshake-focus {
  object-position: center 68%;
}

.instagram-section {
  scroll-margin-top: 86px;
  padding-top: 3.8rem;
  background: var(--mist);
}

.instagram-head {
  display: grid;
  gap: 1.2rem;
  align-items: end;
  margin-bottom: 1.5rem;
}

.instagram-head h2 {
  max-width: 700px;
  font-size: 2.15rem;
}

.instagram-head p {
  max-width: 620px;
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.instagram-grid {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.instagram-grid::-webkit-scrollbar {
  display: none;
}

.instagram-carousel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
}

.instagram-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 42px;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--surface);
  background: var(--pine);
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 800;
}

.instagram-tile {
  position: relative;
  flex: 0 0 clamp(150px, 18vw, 220px);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  background: var(--ink);
  text-decoration: none;
  scroll-snap-align: start;
}

.instagram-tile img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 220ms ease, opacity 220ms ease;
}

.instagram-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(21, 23, 20, 0) 42%, rgba(21, 23, 20, 0.72) 100%);
}

.instagram-tile span {
  position: absolute;
  left: 1rem;
  bottom: 0.85rem;
  z-index: 1;
  color: var(--surface);
  font-weight: 800;
}

.instagram-tile:hover img {
  transform: scale(1.04);
  opacity: 0.9;
}

.contact-layout {
  display: grid;
  gap: 1.5rem;
}

.contact-panel {
  display: grid;
  gap: 1rem;
  align-content: start;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact-line {
  display: grid;
  gap: 0.35rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.contact-line strong {
  color: var(--pine);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.contact-line a {
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.map-embed {
  min-height: 480px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--mist);
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 480px;
  border: 0;
}

.site-footer {
  padding: 2.4rem 5vw 1.15rem;
  color: rgba(255, 255, 255, 0.82);
  background: var(--pine);
}

.footer-grid {
  display: grid;
  gap: 1.4rem;
  width: 100%;
  max-width: var(--max);
  min-width: 0;
  margin: 0 auto;
}

.site-footer h2,
.site-footer h3 {
  color: var(--surface);
  font-size: 1.35rem;
}

.site-footer p {
  max-width: 520px;
  margin: 0.55rem 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
}

.footer-links a {
  color: var(--surface);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.copyright {
  width: 100%;
  max-width: var(--max);
  min-width: 0;
  margin: 1.25rem auto 0;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
}

@media (min-width: 760px) {
  .site-header {
    grid-template-columns: auto 1fr;
  }

  .nav-button {
    display: none;
  }

  .site-nav {
    display: flex;
    align-items: center;
    grid-column: auto;
    justify-content: flex-end;
    gap: 1.55rem;
    padding: 0;
  }

  .site-nav a {
    padding: 0;
    border-top: 0;
  }

  .site-nav a[aria-current="page"]::after {
    bottom: -0.35rem;
  }

  .site-nav .nav-cta {
    margin-top: 0;
    padding: 0.68rem 1rem;
  }

  h1 {
    font-size: 4.7rem;
  }

  .hero p {
    font-size: 1.18rem;
  }

  .section-heading h2,
  .split-text h2,
  .contact-panel h2 {
    font-size: 3rem;
  }

  .quick-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .editorial-grid {
    grid-template-columns: 1fr 1fr;
  }

  .editorial-card.tall {
    grid-row: span 2;
  }

  .split,
  .hours-layout,
  .contact-layout {
    grid-template-columns: 1fr 1fr;
  }

  .menu-grid,
  .detail-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .gallery-grid .wide {
    grid-column: span 2;
  }

  .instagram-head {
    grid-template-columns: 1fr auto;
  }

  .instagram-grid {
    display: flex;
  }

  .instagram-tile.large,
  .instagram-tile.wide {
    flex-basis: clamp(150px, 18vw, 220px);
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr;
  }
}

@media (min-width: 1100px) {
  h1 {
    font-size: 5.6rem;
  }

  .section {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 76px;
    padding: 0.7rem 1.25rem;
  }

  .brand-logo {
    width: 150px;
    height: 50px;
  }

  .nav-button {
    min-width: 86px;
  }

  .instagram-carousel {
    grid-template-columns: 1fr 1fr;
  }

  .instagram-grid {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .instagram-arrow {
    grid-row: 2;
    width: 100%;
  }

  .instagram-tile,
  .instagram-tile.large,
  .instagram-tile.wide {
    flex-basis: min(64vw, 190px);
  }

  h1 {
    font-size: 2.2rem;
  }

  .hero h1 {
    max-width: 12ch;
  }

  .hero p {
    max-width: 29ch;
  }

  .hero {
    min-height: 76svh;
    padding-bottom: 3.6rem;
  }

  .hero.compact {
    min-height: 48svh;
  }

  .button {
    width: 100%;
  }
}
