:root {
  --surround: #3d3d39;
  --surround-soft: #cdd2bd;
  --paper: #f4efdf;
  --ink: #1d1c18;
  --ink-soft: #686252;
  --sage: #b7baa0;
  --matcha: #566e1d;
  --footer: #242522;
  --footer-muted: #cac8b0;
  --shadow: 0 22px 46px rgba(43, 38, 24, 0.14);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
  --jp: "Noto Serif JP", serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(to bottom, var(--surround) 0 47%, var(--surround-soft) 47% 100%);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-loading {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid var(--matcha);
  outline-offset: 5px;
}

.cafe-loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--paper);
  background: var(--footer);
  transition:
    opacity 520ms var(--ease),
    transform 720ms cubic-bezier(0.25, 1, 0.5, 1);
}

.cafe-loader::before,
.cafe-loader::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(244, 239, 223, 0.11);
  pointer-events: none;
}

.cafe-loader::after {
  inset: auto 0 0;
  height: 42%;
  border: 0;
  background: var(--paper);
  transform: translateY(102%);
  transition: transform 720ms cubic-bezier(0.25, 1, 0.5, 1);
}

.cafe-loader__panel {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 14px;
  width: min(76vw, 360px);
  transform: translateY(0);
  transition:
    opacity 380ms var(--ease),
    transform 520ms var(--ease);
}

.cafe-loader__jp {
  margin: 0;
  color: rgba(244, 239, 223, 0.72);
  font-family: var(--jp);
  font-size: 13px;
  letter-spacing: 0.38em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.cafe-loader__seal {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(244, 239, 223, 0.52);
  border-radius: 50%;
  color: rgba(244, 239, 223, 0.84);
  font-family: var(--jp);
  font-size: 23px;
  line-height: 1;
  animation: loader-seal 1200ms var(--ease) both;
}

.cafe-loader__word {
  font-family: var(--serif);
  font-size: clamp(48px, 10vw, 72px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.9;
}

.cafe-loader__line {
  margin: 0;
  color: rgba(244, 239, 223, 0.62);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cafe-loader__bar {
  width: min(220px, 54vw);
  height: 1px;
  margin-top: 6px;
  overflow: hidden;
  background: rgba(244, 239, 223, 0.24);
}

.cafe-loader__bar span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--sage);
  transform: scaleX(0);
  transform-origin: left;
  animation: loader-line 1200ms var(--ease) forwards;
}

body.loader-complete .cafe-loader {
  pointer-events: none;
  opacity: 0;
  transform: translateY(-100%);
}

body.loader-complete .cafe-loader::after {
  transform: translateY(0);
}

body.loader-complete .cafe-loader__panel {
  opacity: 0;
  transform: translateY(-26px);
}

@keyframes loader-line {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes loader-seal {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.page-shell {
  width: min(100% - 28px, 1080px);
  margin: 14px auto 0;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(250, 246, 232, 0.84);
  border-radius: 7px 7px 0 0;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

.site-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 28px 40px 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.nav-links {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(14px, 2.4vw, 32px);
  color: #716b5d;
  font-size: 11px;
  font-weight: 500;
}

.nav-links a {
  position: relative;
  padding-block: 8px;
  transition: color 180ms ease;
}

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

.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 24px;
  height: 2px;
  background: currentColor;
  transform: translateX(-50%);
}

.reservation-link,
.gallery-cta,
.visit-cta,
.product-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(29, 28, 24, 0.18);
  border-radius: 999px;
  background: var(--sage);
  font-size: 11px;
  font-weight: 600;
  transition:
    transform 220ms var(--ease),
    background 220ms ease,
    color 220ms ease,
    box-shadow 220ms ease;
}

.reservation-link {
  min-width: 118px;
  min-height: 34px;
  color: #fffdf4;
}

.reservation-link:hover,
.gallery-cta:hover,
.visit-cta:hover,
.product-card a:hover {
  transform: translateY(-2px);
  background: var(--matcha);
  color: #fffdf4;
  box-shadow: 0 10px 22px rgba(86, 110, 29, 0.22);
}

.hero-section,
.seasonal-section,
.collection-section,
.menu-section,
.atmosphere-section,
.visit-section {
  position: relative;
  padding-inline: clamp(76px, 11vw, 130px);
}

.hero-section {
  padding-top: 18px;
  padding-bottom: 74px;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.94;
}

h1 {
  margin-bottom: 30px;
  text-align: center;
  font-size: clamp(42px, 7.3vw, 72px);
}

.hero-photo {
  height: clamp(330px, 43vw, 493px);
  margin: 0;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.hero-photo img {
  object-position: 50% 52%;
}

.side-note {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  color: var(--ink-soft);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 11px;
  line-height: 1;
}

.side-note .jp {
  color: var(--ink);
  font-family: var(--jp);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.side-note--left {
  left: 40px;
  top: 76px;
}

.side-note--right {
  right: 40px;
  top: 62px;
}

.seasonal-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.9fr);
  gap: clamp(44px, 7vw, 86px);
  align-items: start;
  padding-top: 8px;
  padding-bottom: 78px;
}

.seasonal-copy h2,
.collection-section h2,
.menu-section h2,
.atmosphere-section h2,
.visit-section h2,
.gallery-section h2 {
  font-size: clamp(35px, 5vw, 54px);
}

.seasonal-copy p {
  max-width: 420px;
  margin: 22px 0 0;
  color: #5f5a4e;
  font-size: 13px;
  line-height: 1.72;
}

.seasonal-photo {
  height: clamp(240px, 26vw, 332px);
  margin: 0;
  overflow: hidden;
  border-radius: 3px;
  box-shadow: var(--shadow);
}

.seasonal-photo img {
  transform: scale(1.08);
  object-position: 48% 54%;
}

.seasonal-side {
  top: 8px;
}

.collection-section {
  padding-top: 0;
  padding-bottom: 82px;
  text-align: center;
}

.collection-section h2 {
  margin-bottom: 54px;
}

.collection-side {
  top: 58px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  text-align: left;
}

.product-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #f7f1e3;
  box-shadow: 0 18px 30px rgba(42, 37, 24, 0.09);
  transition:
    transform 260ms var(--ease),
    box-shadow 260ms var(--ease);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 36px rgba(42, 37, 24, 0.14);
}

.product-media {
  height: 164px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #eee6d2;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-media--latte img {
  width: 155%;
  height: 155%;
  object-position: 51% 50%;
  transform: scale(1.18);
}

.product-media--powder img {
  object-position: 50% 54%;
}

.product-media--espresso img {
  object-position: 52% 58%;
}

.product-card h3 {
  padding: 24px 24px 0;
  text-align: center;
  font-size: 25px;
  letter-spacing: -0.035em;
}

.product-card p {
  min-height: 46px;
  margin: 10px 24px 18px;
  text-align: center;
  color: #625d51;
  font-size: 12px;
  line-height: 1.55;
}

.product-card a {
  display: flex;
  width: max-content;
  min-width: 116px;
  min-height: 38px;
  padding: 0 24px;
  margin: auto auto 0;
  background: transparent;
  color: #5b5549;
  font-size: 12px;
}

.product-card span {
  display: block;
  margin: 12px 0 25px;
  text-align: center;
  color: #7e7769;
  font-size: 11px;
}

.section-kicker {
  margin: 0 0 14px;
  color: var(--matcha);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.menu-section {
  padding-top: 0;
  padding-bottom: 82px;
}

.menu-section__head,
.atmosphere-section__head {
  display: grid;
  grid-template-columns: minmax(140px, 0.32fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
  margin-bottom: 34px;
}

.menu-section__head h2,
.atmosphere-section__head h2 {
  max-width: 760px;
}

.menu-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(29, 28, 24, 0.16);
  border-bottom: 1px solid rgba(29, 28, 24, 0.16);
}

.menu-board__group {
  padding: 28px clamp(18px, 2.4vw, 30px) 30px;
  border-right: 1px solid rgba(29, 28, 24, 0.12);
}

.menu-board__group:last-child {
  border-right: 0;
}

.menu-board__group h3 {
  margin-bottom: 22px;
  font-size: 28px;
}

.menu-board__group ul {
  display: grid;
  gap: 15px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-board__group li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: baseline;
  color: #5f5a4e;
  font-size: 13px;
}

.menu-board__group li::after {
  content: "";
  grid-column: 1 / 3;
  height: 1px;
  margin-top: -7px;
  background: rgba(29, 28, 24, 0.08);
}

.menu-board__group b {
  color: var(--ink);
  font-weight: 600;
}

.season-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 28px;
  padding: 18px 22px;
  background: rgba(183, 186, 160, 0.16);
  border: 1px solid rgba(86, 110, 29, 0.18);
}

.season-note span {
  color: var(--matcha);
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.season-note p {
  margin: 0;
  color: #5f5a4e;
  font-size: 13px;
  line-height: 1.6;
}

.atmosphere-section {
  padding-top: 0;
  padding-bottom: 86px;
}

.atmosphere-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.atmosphere-card {
  position: relative;
  min-height: 280px;
  margin: 0;
  overflow: hidden;
  background: #eee6d2;
}

.atmosphere-card--wide {
  grid-row: span 2;
  min-height: 584px;
}

.atmosphere-card img {
  transition: transform 520ms var(--ease), filter 520ms var(--ease);
}

.atmosphere-card:hover img {
  transform: scale(1.025);
  filter: saturate(0.96) contrast(1);
}

.atmosphere-card figcaption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  padding: 7px 11px;
  color: var(--paper);
  background: rgba(29, 28, 24, 0.54);
  font-size: 11px;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.visit-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(300px, 0.9fr);
  gap: clamp(36px, 7vw, 82px);
  align-items: start;
  padding-top: 0;
  padding-bottom: 92px;
}

.visit-copy p:last-child {
  max-width: 430px;
  margin: 22px 0 0;
  color: #5f5a4e;
  font-size: 14px;
  line-height: 1.7;
}

.visit-details {
  padding: 28px;
  border-top: 1px solid rgba(29, 28, 24, 0.18);
  border-bottom: 1px solid rgba(29, 28, 24, 0.18);
}

.visit-details dl {
  display: grid;
  gap: 20px;
  margin: 0 0 28px;
}

.visit-details dl div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 20px;
}

.visit-details dt {
  color: var(--matcha);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.visit-details dd {
  margin: 0;
  color: #5f5a4e;
  font-size: 14px;
  line-height: 1.55;
}

.visit-details a:not(.visit-cta) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.visit-cta {
  min-width: 176px;
  min-height: 42px;
  color: #fffdf4;
}

.gallery-section {
  position: relative;
  min-height: 432px;
  padding: 62px clamp(40px, 9vw, 160px) 52px;
  color: var(--paper);
  background:
    radial-gradient(circle at 50% 0%, rgba(244, 239, 223, 0.05), transparent 38%),
    var(--footer);
  text-align: center;
}

.gallery-section h2 {
  color: var(--paper);
}

.gallery-note {
  max-width: 360px;
  margin: 18px auto 0;
  color: var(--footer-muted);
  font-size: 13px;
  line-height: 1.7;
}

.section-anchor {
  position: absolute;
  top: 0;
  left: 0;
}

.gallery-cta {
  min-width: 250px;
  min-height: 42px;
  margin-top: 36px;
  color: #1e1f1d;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 60px;
  padding-top: 42px;
  border-top: 1px solid rgba(244, 239, 223, 0.12);
  color: var(--footer-muted);
  font-size: 11px;
}

.footer-links a,
.social-icons a {
  transition: color 180ms ease, transform 220ms var(--ease);
}

.footer-links a:hover,
.social-icons a:hover {
  color: #fffdf4;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
}

.social-icons a {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  color: var(--footer);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.social-icons a:hover {
  transform: translateY(-3px);
  color: var(--matcha);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 720ms var(--ease),
    transform 720ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  body.is-loading {
    overflow: auto;
  }

  .cafe-loader {
    display: none;
  }
}

@media (max-width: 900px) {
  .page-shell {
    width: min(100% - 16px, 720px);
    margin-top: 8px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    padding: 22px 24px 12px;
  }

  .nav-links {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero-section,
  .seasonal-section,
  .collection-section,
  .menu-section,
  .atmosphere-section,
  .visit-section {
    padding-inline: clamp(28px, 7vw, 56px);
  }

  .hero-section {
    padding-bottom: 56px;
  }

  h1 {
    margin-top: 20px;
  }

  .hero-photo {
    height: clamp(270px, 55vw, 420px);
  }

  .side-note {
    display: none;
  }

  .seasonal-section {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-bottom: 60px;
  }

  .seasonal-copy p {
    max-width: none;
  }

  .product-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin-inline: auto;
  }

  .menu-section__head,
  .atmosphere-section__head,
  .visit-section {
    grid-template-columns: 1fr;
  }

  .menu-board {
    grid-template-columns: 1fr;
  }

  .menu-board__group,
  .menu-board__group:last-child {
    border-right: 0;
    border-bottom: 1px solid rgba(29, 28, 24, 0.12);
  }

  .menu-board__group:last-child {
    border-bottom: 0;
  }

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

  .atmosphere-card,
  .atmosphere-card--wide {
    min-height: 320px;
  }
}

@media (max-width: 560px) {
  body {
    background: var(--paper);
  }

  .page-shell {
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .site-header {
    gap: 18px;
  }

  .brand span:last-child {
    font-size: 13px;
  }

  .reservation-link {
    min-width: 104px;
  }

  .hero-section,
  .seasonal-section,
  .collection-section,
  .menu-section,
  .atmosphere-section,
  .visit-section {
    padding-inline: 20px;
  }

  h1 {
    font-size: clamp(39px, 14vw, 62px);
  }

  .hero-photo,
  .seasonal-photo {
    height: 285px;
  }

  .collection-section h2,
  .seasonal-copy h2,
  .menu-section h2,
  .atmosphere-section h2,
  .visit-section h2,
  .gallery-section h2 {
    font-size: 40px;
  }

  .season-note,
  .visit-details dl div {
    grid-template-columns: 1fr;
  }

  .visit-details {
    padding-inline: 0;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
}
