/* =========================================================
   CAFE KENTARO
   Daypart counter / menu ribbon identity
   HTML5 + CSS3 only
   ========================================================= */

:root {
  --moss: #303b32;
  --moss-deep: #222c25;
  --rice: #f4eee3;
  --charcoal: #1a1e1b;
  --persimmon: #c96746;
  --persimmon-dark: #a65439;
  --sesame: #d4ae69;
  --tea: #b8c6b2;
  --warm-white: #fffdf8;
  --plum: #8f4d48;
  --muted: #697068;
  --line: rgba(26,30,27,.14);
  --light-line: rgba(255,255,255,.18);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
  --shell: min(1220px, calc(100% - 64px));
  --section-space: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 102px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--rice);
  color: var(--charcoal);
  font-family: var(--sans);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a { color: inherit; }

button,
input,
select,
textarea { font: inherit; }

::selection {
  background: var(--persimmon);
  color: #fff;
}

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

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.section { padding: var(--section-space) 0; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  transform: translateY(-170%);
  padding: 10px 14px;
  background: var(--charcoal);
  color: #fff;
  text-decoration: none;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244,238,227,.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-row {
  min-height: 78px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 34px;
  align-items: center;
}

.brand {
  display: inline-grid;
  line-height: .92;
  text-decoration: none;
}

.brand-main {
  color: var(--moss);
  font: 700 1.13rem/1 var(--serif);
  letter-spacing: -.035em;
}

.brand-sub {
  margin-top: 6px;
  color: var(--persimmon);
  font-size: .48rem;
  font-weight: 900;
  letter-spacing: .16em;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: clamp(16px,2vw,28px);
}

.desktop-nav a {
  position: relative;
  color: #60655e;
  font-size: .74rem;
  font-weight: 800;
  text-decoration: none;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 2px;
  background: var(--persimmon);
  transition: right .16s ease;
}

.desktop-nav a:hover::after { right: 0; }

.mobile-nav { display: none; }

/* Typography + controls */
.eyebrow {
  margin: 0 0 15px;
  color: var(--persimmon);
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.eyebrow-light { color: #f0b29c; }

h1,
h2,
h3,
p { margin-top: 0; }

h1,
h2 {
  margin-bottom: 20px;
  font-family: var(--serif);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.045em;
}

h1 {
  max-width: 900px;
  font-size: clamp(4rem,7.5vw,7.7rem);
}

h2 {
  font-size: clamp(2.4rem,4.3vw,4.45rem);
}

h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
  line-height: 1.15;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: .69rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .16s ease, background-color .16s ease, color .16s ease;
}

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

.button-primary {
  background: var(--persimmon);
  color: #fff;
}

.button-secondary {
  background: var(--moss);
  color: #fff;
}

.button-light {
  background: #fff;
  color: var(--charcoal);
}

.button-outline {
  border-color: var(--charcoal);
  background: transparent;
}

.placeholder-control {
  cursor: default;
  user-select: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .77rem;
  font-weight: 900;
  text-underline-offset: 5px;
}

.text-link span { transition: transform .16s ease; }
.text-link:hover span { transform: translateX(4px); }
.text-link-light { color: #fff; }

/* Hero */
.hero {
  padding: 52px 0 64px;
  background:
    linear-gradient(rgba(48,59,50,.03) 1px,transparent 1px),
    linear-gradient(90deg,rgba(48,59,50,.03) 1px,transparent 1px),
    var(--rice);
  background-size: 46px 46px;
}

.hero-top {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 68px;
  align-items: end;
}

.hero-side {
  padding-bottom: 9px;
}

.hero-side > p {
  color: var(--muted);
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-top: 24px;
}

.hero-band {
  position: relative;
  display: grid;
  grid-template-columns: 1.45fr .55fr;
  gap: 12px;
  min-height: 500px;
  margin-top: 40px;
}

.hero-photo {
  margin: 0;
  overflow: hidden;
}

.hero-photo-main {
  min-height: 500px;
}

.hero-photo-drink {
  min-height: 500px;
}

.hero-note {
  position: absolute;
  left: 38px;
  bottom: 0;
  width: min(360px,72%);
  display: grid;
  gap: 5px;
  padding: 18px 20px;
  background: var(--moss);
  color: #fff;
}

.hero-note span {
  color: #f0b29c;
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .13em;
}

.hero-note small {
  color: rgba(255,255,255,.64);
}

/* Menu + intro */
.menu-intro {
  background: var(--warm-white);
}

.menu-intro-grid {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: 70px;
  align-items: start;
}

.intro-copy {
  position: sticky;
  top: 118px;
}

.intro-copy .lead {
  color: var(--charcoal);
  font: 400 1.16rem/1.6 var(--serif);
}

.intro-copy > p:not(.eyebrow):not(.lead) {
  color: var(--muted);
}

.menu-ledger {
  border-top: 1px solid var(--line);
}

.menu-ledger article {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.menu-ledger article > span {
  color: var(--persimmon);
  font-size: .63rem;
  font-weight: 900;
}

.menu-kicker {
  margin-bottom: 4px;
  color: var(--moss);
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .1em;
}

.menu-ledger h3 {
  margin-bottom: 5px;
  font-family: var(--serif);
  font-size: 1.45rem;
}

.menu-ledger p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: .83rem;
}

.menu-ledger > .button {
  margin-top: 22px;
}

/* Drinks */
.drinks {
  background: var(--tea);
}

.drinks-grid {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 18px;
}

.matcha-panel,
.coffee-copy {
  padding: 34px;
}

.matcha-panel {
  min-height: 580px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--plum);
  color: #fff;
}

.panel-code {
  margin-bottom: auto;
  color: #f0b29c;
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .13em;
}

.matcha-panel .eyebrow {
  color: #f0b29c;
}

.matcha-panel > p:not(.eyebrow) {
  color: rgba(255,255,255,.66);
}

.drink-principles {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  margin-top: 26px;
  border-top: 1px solid var(--light-line);
  border-left: 1px solid var(--light-line);
}

.drink-principles article {
  min-height: 180px;
  padding: 17px;
  border-right: 1px solid var(--light-line);
  border-bottom: 1px solid var(--light-line);
}

.drink-principles span {
  color: #f0b29c;
  font-size: .61rem;
  font-weight: 900;
}

.drink-principles h3 {
  margin: 28px 0 6px;
}

.drink-principles p {
  margin: 0;
  color: rgba(255,255,255,.62);
  font-size: .78rem;
}

.coffee-panel {
  display: grid;
  grid-template-rows: 1.08fr .92fr;
  background: #fff;
}

.coffee-panel figure {
  min-height: 0;
  margin: 0;
  overflow: hidden;
}

.coffee-copy > p:not(.eyebrow) {
  color: var(--muted);
}

.coffee-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.coffee-list span {
  padding: 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: .78rem;
  font-weight: 900;
}

/* Food + takeaway */
.food-takeaway {
  background: var(--rice);
}

.food-takeaway-grid {
  display: grid;
  grid-template-columns: 1.22fr .78fr;
  gap: 18px;
}

.food-feature {
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  background: #fff;
  border: 1px solid var(--line);
}

.food-feature figure {
  min-height: 520px;
  margin: 0;
  overflow: hidden;
}

.food-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px;
}

.food-copy > p:not(.eyebrow) {
  color: var(--muted);
}

.takeaway-panel {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 34px;
  background:
    linear-gradient(rgba(48,59,50,.05) 1px,transparent 1px),
    linear-gradient(90deg,rgba(48,59,50,.05) 1px,transparent 1px),
    var(--sesame);
  background-size: 40px 40px;
}

.takeaway-panel .panel-code {
  margin-bottom: auto;
  color: var(--moss);
}

.takeaway-panel .eyebrow {
  color: var(--moss);
}

.takeaway-panel > p:not(.eyebrow) {
  color: #574a34;
}

.takeaway-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: 18px 0;
}

.takeaway-panel small {
  color: #675943;
  font-size: .72rem;
}

/* Story */
.story {
  background: var(--warm-white);
}

.story-grid {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 64px;
  align-items: start;
}

.story-copy > p:not(.eyebrow) {
  color: var(--muted);
}

.experience-board {
  border-top: 1px solid var(--line);
}

.experience-board article {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.experience-board article > span {
  color: var(--persimmon);
  font-size: .63rem;
  font-weight: 900;
}

.experience-board h3 {
  margin-bottom: 4px;
  font-family: var(--serif);
  font-size: 1.4rem;
}

.experience-board p {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
}

.experience-note {
  padding-top: 18px;
  color: var(--moss) !important;
  font: italic 1.08rem/1.4 var(--serif);
}

/* Gallery */
.gallery {
  background: var(--rice);
}

.gallery-heading {
  display: grid;
  grid-template-columns: 1fr .6fr;
  gap: 50px;
  align-items: end;
  margin-bottom: 36px;
}

.gallery-heading > p {
  color: var(--muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  grid-template-rows: 250px 250px;
  gap: 12px;
}

.gallery-grid figure {
  margin: 0;
  overflow: hidden;
}

.gallery-large {
  grid-row: span 2;
}

/* Visit + contact */
.visit-contact {
  background: var(--tea);
}

.visit-contact-grid {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: 18px;
}

.visit-panel {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 34px;
  background: var(--sesame);
}

.visit-panel > p:not(.eyebrow) {
  color: #584b35;
}

.visit-panel address {
  display: grid;
  gap: 5px;
  margin: 24px 0;
  padding-left: 16px;
  border-left: 3px solid var(--persimmon);
  font-style: normal;
}

.visit-panel address span {
  color: #584b35;
}

.contact-panel {
  padding: 34px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(26,30,27,.07);
}

.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
}

.field label,
.newsletter-panel label {
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .04em;
}

.field input,
.field select,
.field textarea,
.newsletter-row input {
  width: 100%;
  border: 1px solid rgba(26,30,27,.22);
  border-radius: 0;
  background: #fff;
  color: var(--charcoal);
}

.field input,
.field select {
  min-height: 46px;
  padding: 0 11px;
}

.field textarea {
  min-height: 132px;
  padding: 10px 11px;
  resize: vertical;
}

/* Newsletter + final */
.newsletter-final {
  background: var(--warm-white);
}

.newsletter-final-grid {
  width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
}

.newsletter-panel,
.final-panel {
  padding: 50px 34px;
}

.newsletter-panel {
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.newsletter-panel > p:not(.eyebrow) {
  color: var(--muted);
}

.newsletter-row {
  display: flex;
  margin-top: 8px;
}

.newsletter-row input {
  min-width: 0;
  flex: 1;
  min-height: 48px;
  padding: 0 12px;
  border-right: 0;
}

.final-panel {
  background: var(--moss);
  color: #fff;
}

.final-panel .eyebrow {
  color: #f0b29c;
}

.final-panel > p:not(.eyebrow) {
  color: rgba(255,255,255,.65);
}

.final-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
}

/* Footer */
.site-footer {
  padding: 38px 0 20px;
  background: #101512;
  color: #fff;
}

.footer-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: start;
}

.footer-brand {
  display: grid;
}

.footer-brand .brand-main {
  color: #fff;
}

.footer-brand .brand-sub {
  color: #f0b29c;
}

.footer-brand p {
  margin: 16px 0 0;
  color: rgba(255,255,255,.52);
  font-size: .78rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
}

.footer-nav a {
  color: rgba(255,255,255,.68);
  font-size: .76rem;
  text-decoration: none;
}

.footer-row address {
  display: grid;
  gap: 4px;
  justify-self: end;
  font-style: normal;
  text-align: right;
}

.footer-row address span {
  color: rgba(255,255,255,.56);
  font-size: .8rem;
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--light-line);
}

.footer-bottom p {
  margin: 0;
  color: rgba(255,255,255,.42);
  font-size: .7rem;
}

/* Responsive */
@media (max-width: 1100px) {
  :root { --shell: min(100% - 42px,1020px); }

  .hero-top {
    grid-template-columns: 1fr .85fr;
  }

  .food-feature {
    grid-template-columns: 1fr;
  }

  .food-feature figure {
    min-height: 340px;
  }
}

@media (max-width: 920px) {
  :root {
    --shell: calc(100% - 34px);
    --section-space: 66px;
  }

  .desktop-nav { display: none; }
  .header-row { grid-template-columns: 1fr auto; }

  .mobile-nav {
    display: block;
    border-top: 1px solid var(--line);
  }

  .mobile-nav-track {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 22px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .mobile-nav-track::-webkit-scrollbar { display: none; }

  .mobile-nav a {
    flex: 0 0 auto;
    font-size: .67rem;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
  }

  .hero-top,
  .menu-intro-grid,
  .drinks-grid,
  .food-takeaway-grid,
  .story-grid,
  .visit-contact-grid,
  .newsletter-final-grid {
    grid-template-columns: 1fr;
  }

  .intro-copy { position: static; }

  .gallery-heading {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
  }

  .gallery-large {
    grid-row: auto;
    grid-column: 1 / -1;
    height: 380px;
  }

  .gallery-grid figure:not(.gallery-large) {
    height: 250px;
  }

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

  .footer-row address {
    grid-column: 1 / -1;
    justify-self: start;
    padding-top: 18px;
    border-top: 1px solid var(--light-line);
    text-align: left;
  }
}

@media (max-width: 700px) {
  :root {
    --shell: calc(100% - 26px);
    --section-space: 54px;
  }

  .site-header {
    position: relative;
    backdrop-filter: none;
  }

  .header-row { min-height: 72px; }

  .header-row .button {
    min-height: 40px;
    padding-inline: 10px;
    font-size: .61rem;
  }

  h1 { font-size: clamp(3rem,15vw,4.8rem); }
  h2 { font-size: clamp(2.2rem,11vw,3.35rem); }

  .hero { padding-top: 28px; }

  .hero-band {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-bottom: 74px;
  }

  .hero-photo-main,
  .hero-photo-drink {
    min-height: 300px;
  }

  .hero-note {
    left: 0;
    width: min(340px,94%);
  }

  .drink-principles,
  .coffee-list,
  .field-pair {
    grid-template-columns: 1fr;
  }

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

  .gallery-large {
    grid-column: auto;
    height: 320px;
  }

  .gallery-grid figure:not(.gallery-large) {
    height: 260px;
  }

  .newsletter-row {
    flex-direction: column;
    gap: 8px;
  }

  .newsletter-row input {
    border-right: 1px solid rgba(26,30,27,.22);
  }

  .newsletter-row .button {
    width: 100%;
  }

  .final-actions {
    align-items: stretch;
  }

  .final-actions .button {
    width: 100%;
  }

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

  .footer-row address {
    grid-column: auto;
  }
}

@media (max-width: 390px) {
  :root { --shell: calc(100% - 20px); }

  .brand-main { font-size: .96rem; }
  .brand-sub { font-size: .41rem; }

  .matcha-panel,
  .coffee-copy,
  .food-copy,
  .takeaway-panel,
  .visit-panel,
  .contact-panel,
  .newsletter-panel,
  .final-panel {
    padding: 26px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
  }
}
