/* Ada's Table */

/* Fonts: Marcellus and Courier Prime self-hosted (SIL OFL 1.1, licenses in /assets/fonts); Copperplate from the Adobe Fonts kit */

@font-face {
  font-family: "Marcellus";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/marcellus-400.woff2") format("woff2");
}

@font-face {
  font-family: "Courier Prime";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/courier-prime-400.woff2") format("woff2");
}

@font-face {
  font-family: "Courier Prime";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/courier-prime-700.woff2") format("woff2");
}

:root {
  --at-paper: #f4eee3;
  --at-paper-2: #ebe3d4;
  --at-paper-3: #e6decf;
  --at-ink: #323216;
  --at-ink-soft: #4a4a2c;
  --at-olive: #565a26;
  --at-olive-line: #6b6633;
  --at-clay: #ac6347;
  --at-clay-text: #94503a;
  --at-dot: #d2b2a2;
  --at-night: #1f2010;
  --at-night-2: #23230f;
  --at-mist: #dcd6c5;

  --at-display: copperplate, "Marcellus", Georgia, serif;
  --at-serif: "Marcellus", Georgia, serif;
  --at-mono: "Courier Prime", "Courier New", Courier, monospace;

  --at-gutter: clamp(20px, 3vw, 40px);
  --at-ease: cubic-bezier(.2, .7, .2, 1);
}

/* Base */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 104px; }

body {
  margin: 0;
  overflow-x: clip;
  background: var(--at-paper);
  color: var(--at-ink);
  font-family: var(--at-serif);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: var(--at-clay-text); }
a:hover { color: var(--at-ink); }

:focus-visible { outline: 2px solid var(--at-ink); outline-offset: 3px; }
.at-on-dark :focus-visible { outline-color: var(--at-paper); }
main:focus { outline: none; }

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

.at-skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--at-ink);
  color: var(--at-paper);
  font: 700 13px/1 var(--at-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  transform: translateY(-200%);
}
.at-skip:focus { transform: none; color: var(--at-paper); }

/* Type and shared pieces */

.at-display {
  font-family: var(--at-display);
  font-weight: 300;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.at-mono {
  font-family: var(--at-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.at-label { font-size: 14px; letter-spacing: .14em; color: var(--at-olive); }
.at-accent { color: var(--at-clay); }

.at-stack { display: flex; flex-direction: column; gap: 6px; }
.at-stack--center { align-items: center; gap: 8px; }

.at-ulink {
  color: var(--at-ink);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .45s var(--at-ease);
}
.at-ulink:hover { color: inherit; background-size: 100% 1px; }

.at-frame { padding: 14px; border: 2px dotted var(--at-dot); }
.at-frame--tight { padding: 12px; }

.at-rule {
  display: block;
  width: 200px;
  height: 1px;
  background: var(--at-clay);
  transform-origin: left;
}

.at-zoom { overflow: hidden; }
.at-zoom img { transition: transform 1.4s var(--at-ease); }
.at-zoom:hover img { transform: scale(1.05); }

/* Buttons: a fill rises from below on hover */

.at-btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 22px;
  background: var(--at-olive);
  color: var(--at-paper);
  font: 700 12px/1.2 var(--at-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color .5s var(--at-ease);
}
.at-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--at-ink);
  transform: translateY(101%);
  transition: transform .5s var(--at-ease);
}
.at-btn:hover { color: var(--at-paper); }
.at-btn:hover::before { transform: none; }

.at-btn--lg { min-height: 54px; padding: 0 30px; font-size: 13px; }

.at-btn--light { background: transparent; border: 1px solid var(--at-paper); font-weight: 400; }
.at-btn--light::before { background: var(--at-paper); }
.at-btn--light:hover { color: var(--at-ink); }

/* Header */

.at-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(244 238 227 / .9);
  border-bottom: 1px solid rgb(50 50 22 / .1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.at-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  max-width: 1360px;
  margin: 0 auto;
  padding: 14px var(--at-gutter);
}

.at-header__brand { display: block; line-height: 0; }
.at-header__brand img { width: auto; height: 56px; }

.at-header__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 32px;
  font-size: 13px;
}
.at-header__nav .at-ulink { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 760px) {
  .at-header__nav .at-ulink { display: none; }
  .at-header__brand img { height: 44px; }
}

/* Hero */

.at-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 64px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 64px var(--at-gutter) 120px;
}

.at-hero__copy {
  flex: 1 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-left: clamp(0px, 2vw, 24px);
}

.at-hero__sprig { width: 120px; }

.at-hero__title { margin: 0; font-size: clamp(32px, 3.2vw - 8px, 52px); line-height: 1.18; }

.at-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; }
.at-hero__phone { font-size: 16px; }
.at-hero__hours .at-mono { font-size: 15px; }

.at-hero__media { flex: 1 1 440px; min-width: 0; max-width: 600px; margin: 0 auto; }
.at-hero__crop { aspect-ratio: 4 / 5; max-height: 80vh; overflow: hidden; background: var(--at-paper-3); }
.at-hero__crop img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 600px) {
  .at-hero { gap: 40px; padding-top: 40px; padding-bottom: 80px; }
  .at-hero__copy { gap: 28px; }
  .at-hero__sprig { width: 88px; }
  .at-hero__title { font-size: 5.4vw; }
  .at-hero__title .at-accent { color: var(--at-clay-text); }
}

/* Story */

.at-story {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 80px;
  max-width: 1360px;
  margin: 0 auto;
  padding: 140px var(--at-gutter) 120px;
  border-top: 1px solid var(--at-dot);
}

.at-story__arch {
  flex: 1 1 380px;
  min-width: 0;
  max-width: 520px;
  aspect-ratio: 4 / 5.4;
  overflow: hidden;
  border-radius: 240px 240px 0 0;
}
.at-story__arch img { width: 100%; height: 100%; object-fit: cover; }

.at-story__copy {
  flex: 1 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 40px;
}

.at-story__script { width: 240px; }
.at-story__lead { margin: 0; font-size: clamp(24px, 2.3vw, 34px); line-height: 1.4; }
.at-story__body { margin: 0; max-width: 560px; font-size: 18px; line-height: 1.75; color: var(--at-ink-soft); }
.at-story__wide { aspect-ratio: 16 / 9; }
.at-story__wide img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 600px) {
  .at-story { gap: 48px; padding-top: 80px; padding-bottom: 80px; }
  .at-story__copy { padding-top: 0; gap: 28px; }
}

/* Statement */

.at-statement {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  padding: 60px var(--at-gutter) 160px;
}

.at-statement__sprig { width: 88px; }

.at-statement__text {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: .32em;
  max-width: 1180px;
  margin: 0 auto;
  font-size: clamp(30px, 5.6vw, 92px);
  line-height: 1.12;
  letter-spacing: .04em;
  text-align: center;
}

/* Menus */

.at-menus { padding: 120px var(--at-gutter) 140px; background: var(--at-paper-2); }

.at-menus__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 28px;
  max-width: 1360px;
  margin: 0 auto;
}

.at-menus__grid li { display: flex; }

.at-card {
  display: flex;
  flex: 1;
  flex-direction: column;
  color: var(--at-ink);
  text-decoration: none;
  transition: border-color .45s, color .45s;
}
.at-card:hover { color: var(--at-clay-text); border-color: var(--at-clay); }

.at-card__art { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 5; background: var(--at-paper); }

.at-ring {
  width: 46%;
  aspect-ratio: 123 / 216;
  padding: 6px;
  border: 2px solid var(--at-olive-line);
  border-radius: 999px;
  transition: border-color .45s;
}
.at-ring__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  border: 2px solid var(--at-olive-line);
  border-radius: 999px;
  transition: border-color .45s;
}
.at-card:hover .at-ring,
.at-card:hover .at-ring__inner { border-color: var(--at-clay); }

.at-card__ill { width: 72%; transition: transform .9s var(--at-ease); }
.at-card__ill--narrow { width: 48%; }
.at-card:hover .at-card__ill { transform: rotate(-6deg) scale(1.06); }

.at-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 6px 6px; }
.at-card__label { font-size: clamp(24px, 2.2vw, 34px); }

.at-card__arrow {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border: 1px solid var(--at-ink);
  border-radius: 50%;
  color: var(--at-ink);
  transition: background-color .45s, color .45s, transform .45s var(--at-ease);
}
.at-card__arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.at-card:hover .at-card__arrow { background: var(--at-ink); color: var(--at-paper); transform: translateX(6px); }

/* Gallery: drifting loop, also draggable and scrollable */

.at-gallery { padding: 120px 0 140px; }

.at-strip {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  cursor: grab;
}
.at-strip::-webkit-scrollbar { display: none; }
.at-strip__list { display: flex; align-items: flex-start; width: max-content; }
.at-strip:active { cursor: grabbing; }
.at-strip:focus-visible { outline-offset: -3px; }

.at-shot { flex: none; height: clamp(260px, 30vw, 440px); margin-right: 20px; scroll-snap-align: start; }
.at-shot--wide { aspect-ratio: 3 / 2; }
.at-shot--tall { aspect-ratio: 4 / 5; }
.at-shot img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }

.at-gallery__controls { display: flex; justify-content: flex-end; max-width: 1360px; margin: 32px auto 0; padding: 0 var(--at-gutter); }

.at-motion-toggle {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--at-ink);
  border-radius: 50%;
  background: transparent;
  color: var(--at-ink);
  cursor: pointer;
  transition: color .5s var(--at-ease);
}
.at-motion-toggle::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--at-ink);
  transform: translateY(101%);
  transition: transform .5s var(--at-ease);
}
.at-motion-toggle:hover { color: var(--at-paper); }
.at-motion-toggle:hover::before { transform: none; }
.at-motion-toggle svg { width: 16px; height: 16px; fill: currentColor; }
.at-motion-toggle__play,
[data-motion="paused"] .at-motion-toggle__pause { display: none; }
[data-motion="paused"] .at-motion-toggle__play { display: block; }

/* Gather */

.at-gather { background: var(--at-night); color: var(--at-paper); }

.at-gather__inner { display: flex; flex-wrap: wrap; align-items: stretch; max-width: 1440px; margin: 0 auto; }

.at-gather__media { position: relative; flex: 1 1 520px; min-width: 0; min-height: clamp(360px, 50vw, 640px); overflow: hidden; }
.at-gather__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.at-gather__panel { flex: 1 1 520px; min-width: 0; padding: clamp(16px, 4vw, 48px); }

.at-gather__frame {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
  height: 100%;
  padding: clamp(40px, 6vw, 72px) clamp(20px, 4vw, 56px);
  border: 2px dotted rgb(210 178 162 / .5);
}

.at-gather__sprig { width: 88px; }
.at-gather__title { margin: 0; font-size: clamp(40px, 4.6vw, 72px); line-height: 1.05; }
.at-gather__body { margin: 0; max-width: 520px; font-size: 19px; line-height: 1.7; color: var(--at-mist); }
.at-gather .at-btn { align-self: flex-start; max-width: 100%; padding: 12px 24px; overflow-wrap: anywhere; }

@media (max-width: 600px) {
  .at-gather .at-btn { font-size: 11px; letter-spacing: .06em; padding-inline: 16px; }
}

/* Visit */

.at-visit { padding: 140px var(--at-gutter); }

.at-visit__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 72px) clamp(20px, 4vw, 40px);
  border: 2px dotted var(--at-dot);
  text-align: center;
}

.at-visit__badge { width: 64px; }
.at-visit__label { margin: 0; font-size: 22px; letter-spacing: .14em; }
.at-visit__value { margin: 0; font-size: 16px; }
.at-visit__rule { display: block; width: 120px; height: 1px; background: var(--at-dot); }
.at-visit__address { font-size: 14px; line-height: 1.8; }

@media (max-width: 600px) {
  .at-visit { padding: 80px var(--at-gutter); }
  .at-visit__value { font-size: 14px; letter-spacing: .06em; }
}

/* Footer */

.at-footer { background: var(--at-night-2); color: var(--at-mist); }

.at-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 72px;
  max-width: 1360px;
  margin: 0 auto;
  padding: 96px var(--at-gutter) 40px;
}

.at-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 48px 80px; }

.at-footer__about { flex: 1 1 420px; min-width: 0; max-width: 640px; display: flex; flex-direction: column; gap: 24px; }
.at-footer__about p { margin: 0; font-size: 15px; line-height: 1.8; }
.at-footer__ccg { display: block; align-self: flex-start; line-height: 0; }
.at-footer__ccg img { width: 280px; }

.at-footer__menus { display: flex; flex-direction: column; gap: 14px; font-size: 12px; }
.at-footer__menus .at-ulink { display: inline-flex; align-items: center; min-height: 32px; color: var(--at-paper); }

.at-social { display: flex; align-items: flex-start; gap: 12px; }
.at-social__link {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgb(244 238 227 / .4);
  border-radius: 50%;
  color: var(--at-paper);
  transition: color .5s var(--at-ease);
}
.at-social__link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--at-paper);
  transform: translateY(101%);
  transition: transform .5s var(--at-ease);
}
.at-social__link:hover { color: var(--at-ink); }
.at-social__link:hover::before { transform: none; }
.at-social__link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.at-footer__wordmark { width: 100%; opacity: .95; }

.at-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 24px;
  border-top: 1px dotted rgb(210 178 162 / .45);
  font-size: 11px;
  letter-spacing: .08em;
}
.at-footer__legal p { margin: 0; }
.at-footer__legal a { color: var(--at-paper); }
.at-footer__legal a:hover { color: var(--at-dot); }

/* 404 */

.at-notfound {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(96px, 14vw, 180px) var(--at-gutter);
  text-align: center;
}

.at-notfound__sprig { width: 88px; }
.at-notfound__title { margin: 0; font-size: clamp(36px, 5vw, 64px); line-height: 1.1; }
.at-notfound__body { margin: 0; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.6; }

/* Motion: load-in */

.at-line { display: block; overflow: hidden; padding-bottom: .08em; }
.at-line > span { display: block; animation: at-rise 1.3s cubic-bezier(.2, .7, .1, 1) both; }
.at-line:nth-child(1) > span { animation-delay: .15s; }
.at-line:nth-child(2) > span { animation-delay: .27s; }
.at-line:nth-child(3) > span { animation-delay: .39s; }
.at-line:nth-child(4) > span { animation-delay: .51s; }

.at-fade { animation: at-fade 1.1s var(--at-ease) both; }
.at-hero__sprig { animation-delay: .1s; }
.at-hero__media { animation-delay: .25s; }
.at-hero__actions { animation-delay: .85s; }
.at-hero__hours { animation-delay: 1s; }
.at-hero .at-rule { animation: at-draw 1.4s var(--at-ease) .7s both; }

.at-sway { transform-origin: 50% 92%; animation: at-sway 8s ease-in-out infinite; }
.at-hero__sprig.at-sway { animation: at-fade 1.1s var(--at-ease) .1s both, at-sway 8s ease-in-out 1.2s infinite; }
.at-kb { animation: at-kb 16s var(--at-ease) both; }

/* Motion: scroll-linked, where supported; content shows as-is elsewhere */

@supports (animation-timeline: view()) {
  .at-rv { animation: at-fade linear both; animation-timeline: view(); animation-range: entry 5% cover 28%; }
  .at-statement__sprig.at-sway { animation: at-fade linear both; animation-timeline: view(); animation-range: entry 5% cover 28%; }
  .at-clip { animation: at-clip linear both; animation-timeline: view(); animation-range: entry 0% cover 50%; }
  .at-par { animation: at-par linear both; animation-timeline: view(); }

  .at-word { animation: at-ink linear both; animation-timeline: view(); }
  .at-word:nth-child(1) { animation-range: entry 20% cover 30%; }
  .at-word:nth-child(2) { animation-range: entry 30% cover 34%; }
  .at-word:nth-child(3) { animation-range: entry 40% cover 38%; }
  .at-word:nth-child(4) { animation-range: entry 50% cover 42%; }
  .at-word:nth-child(5) { animation-range: entry 60% cover 46%; }
  .at-word:nth-child(6) { animation-range: entry 70% cover 50%; }
  .at-word:nth-child(7) { animation-range: entry 80% cover 54%; }
  .at-word:nth-child(8) { animation-range: entry 90% cover 58%; }

  .at-menus__grid li:nth-child(1) .at-card { animation-range: entry 5% cover 28%; }
  .at-menus__grid li:nth-child(2) .at-card { animation-range: entry 13% cover 34%; }
  .at-menus__grid li:nth-child(3) .at-card { animation-range: entry 21% cover 40%; }
}

@keyframes at-rise { from { transform: translateY(110%); } to { transform: none; } }
@keyframes at-fade { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes at-draw { from { transform: scaleX(0); } to { transform: none; } }
@keyframes at-sway { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
@keyframes at-kb { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes at-clip { from { clip-path: inset(16% 12% 16% 12% round 240px 240px 0 0); } to { clip-path: inset(0 round 240px 240px 0 0); } }
@keyframes at-par { from { transform: translateY(-7%) scale(1.16); } to { transform: translateY(7%) scale(1.16); } }
@keyframes at-ink { from { opacity: .14; } to { opacity: 1; } }

[data-motion="paused"] :is(.at-line > span, .at-fade, .at-sway, .at-kb, .at-hero .at-rule) { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (forced-colors: active) {
  .at-btn, .at-card, .at-frame, .at-social__link, .at-motion-toggle { border: 1px solid ButtonText; }
  .at-rule, .at-visit__rule { background: CanvasText; }
}
