/* Igor Tuler — Atelier motion and visual system */
:root {
  color-scheme: dark;
  --paper: #100e0c;
  --paper-light: #191512;
  --ink: #f3e8d9;
  --muted: #b3a596;
  --line: #46362b;
  --copper: #d98554;
  --copper-dark: #efb17b;
  --olive: #a79a76;
  --display: "Bodoni 72", "Iowan Old Style", Baskerville, Georgia, "Times New Roman", serif;
  --body: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --max: 1320px;
  --gutter: clamp(20px, 5vw, 76px);
  --atelier-black: #100e0c;
  --atelier-surface: #17120f;
  --atelier-highlight: #f2bf83;
}

.responsive-picture { display: block; width: 100%; }

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
  overflow-x: clip;
  background: var(--paper);
}

body {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  background: transparent;
  color: var(--ink);
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(ellipse at 78% 9%, rgba(155, 72, 37, .22), transparent 31rem),
    radial-gradient(ellipse at 7% 46%, rgba(116, 72, 41, .11), transparent 35rem),
    radial-gradient(ellipse at 72% 88%, rgba(154, 103, 54, .08), transparent 32rem),
    var(--atelier-black);
  background-size: 115% 115%;
  content: "";
  pointer-events: none;
  animation: ambient-drift 26s ease-in-out infinite alternate;
}

::selection { background: rgba(217, 133, 84, .35); color: #fff8ef; }

:root :where(a, button, summary, [role="button"]) {
  -webkit-tap-highlight-color: transparent;
}
:root :where(a, button, summary, [role="button"]):active {
  filter: brightness(1.08);
}

.site-header {
  --site-header-height: 82px;
  position: sticky;
  z-index: 80;
  top: 0;
  min-height: 82px;
  isolation: isolate;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}
.site-header::before {
  position: fixed;
  z-index: -1;
  top: 0;
  right: 0;
  left: 0;
  height: var(--site-header-height);
  border-bottom: 1px solid rgba(224, 174, 126, .3);
  background: linear-gradient(180deg, rgba(25, 21, 18, .98), rgba(16, 14, 12, .97));
  box-shadow: 0 10px 30px rgba(0, 0, 0, .2), inset 0 1px rgba(255, 240, 220, .04);
  content: "";
  pointer-events: none;
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  backdrop-filter: blur(18px) saturate(1.15);
}

.brand { color: var(--ink); transition: opacity .25s ease, transform .35s ease; }
.brand:hover { opacity: .88; transform: translateY(-1px); }
.brand-name { color: #fff4e6; }
.brand-role { color: #b9a48e; }
.nav { gap: clamp(16px, 2.6vw, 38px); }
.nav a {
  position: relative;
  color: #d0c1b0;
  font-size: 11px;
  transition: color .28s ease, transform .28s ease;
}
.nav a::after {
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--copper), var(--atelier-highlight));
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .32s cubic-bezier(.2,.7,.2,1);
}
.nav a:hover,
.nav a[aria-current="page"],
.nav a.nav-contact { color: var(--copper-dark); }
.nav a:hover { transform: translateY(-1px); }
.nav a:hover::after,
.nav a[aria-current="page"]::after,
.nav a.nav-contact::after { transform: scaleX(1); }

.home-intro,
.hero,
.about-hero { position: relative; isolation: isolate; }
.home-intro > .eyebrow,
.about-text > .eyebrow { display: flex; align-items: center; gap: 12px; }
.home-intro > .eyebrow::before,
.about-text > .eyebrow::before {
  flex: 0 0 30px;
  height: 1px;
  background: linear-gradient(90deg, var(--copper), rgba(239, 177, 123, .35));
  content: "";
}
.home-intro::before,
.hero::before {
  position: absolute;
  z-index: -1;
  top: 5%;
  right: 0;
  width: min(70vw, 760px);
  height: 90%;
  background: radial-gradient(ellipse, rgba(168, 76, 40, .13), rgba(116, 66, 39, .045) 42%, transparent 72%);
  content: "";
  filter: blur(22px);
  pointer-events: none;
}

h1, h2, h3 { color: var(--ink); }
h1 { text-shadow: 0 10px 45px rgba(0, 0, 0, .16); }
h1 em { color: var(--copper); text-shadow: 0 0 34px rgba(198, 100, 60, .16); }
.eyebrow { color: var(--copper-dark); }
.intro-copy,
.hero-copy,
.section-note,
.about-copy,
.principle p { color: var(--muted); }

.choice-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(211, 160, 113, .23);
  background: linear-gradient(140deg, rgba(31, 24, 19, .98), rgba(20, 17, 14, .98));
  box-shadow: inset 0 1px rgba(255, 244, 230, .025), 0 18px 58px rgba(0, 0, 0, .13);
  transition: border-color .45s ease, transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s ease, background .45s ease;
}
.choice-card::before {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 100% 0%, rgba(191, 106, 62, .12), transparent 55%);
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s ease;
}
.choice-card:hover {
  border-color: rgba(234, 173, 119, .62);
  background: linear-gradient(140deg, #211813, #15110e);
  box-shadow: 0 25px 72px rgba(0, 0, 0, .36), 0 0 0 1px rgba(227, 157, 101, .08), inset 0 1px rgba(255, 244, 230, .045);
  transform: translateY(-5px);
}
.choice-card:hover::before { opacity: 1; }
.choice-copy, .choice-image { position: relative; z-index: 1; }
.choice-copy h2 { color: #f4e9d9; }
.choice-copy p:not(.eyebrow) { color: #b9aa99; }
.choice-link { color: var(--copper-dark); transition: color .3s ease, gap .3s ease; }
.choice-card:hover .choice-link { color: #ffd3a4; }
.choice-card:hover .choice-link span { transform: translate(4px, -3px); }
.choice-image {
  grid-template-rows: minmax(0, 1fr);
  border: 1px solid rgba(228, 177, 128, .23);
  background: #0d0b09;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .25);
  transition: border-color .4s ease, box-shadow .4s ease;
}
.choice-image img {
  display: block;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.choice-card:hover .choice-image { border-color: rgba(239, 177, 123, .72); box-shadow: 0 0 24px rgba(195, 112, 66, .13); }
.choice-contact-image {
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  background: radial-gradient(ellipse at 50% 42%, rgba(196, 105, 62, .18), transparent 58%), linear-gradient(145deg, #251b14, #14100d);
  color: var(--copper-dark);
}
.choice-contact-mark {
  border-color: rgba(239, 177, 123, .62);
  box-shadow: 0 0 30px rgba(195, 112, 66, .11), inset 0 0 24px rgba(195, 112, 66, .08);
  transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .4s ease;
}
.choice-card:hover .choice-contact-mark { transform: rotate(-5deg) scale(1.04); box-shadow: 0 0 42px rgba(195, 112, 66, .24), inset 0 0 28px rgba(195, 112, 66, .13); }
.choice-contact-caption { color: #d3a77e; }

.hero-visual,
.about-photo { filter: drop-shadow(0 28px 42px rgba(0, 0, 0, .28)); }
.hero-visual::before,
.about-photo::before { border-color: rgba(229, 171, 118, .62); }
.hero-visual img,
.about-photo img {
  border: 1px solid rgba(231, 180, 132, .35);
  box-shadow: 0 0 0 8px rgba(192, 122, 74, .035), 0 24px 80px rgba(0, 0, 0, .32);
  transition: filter .6s ease, box-shadow .6s ease, transform .8s cubic-bezier(.2,.7,.2,1);
}
.hero-visual img { height: auto; }
.hero-visual:hover img,
.about-photo:hover img { filter: saturate(1.08) contrast(1.03); box-shadow: 0 0 0 10px rgba(192, 122, 74, .06), 0 30px 90px rgba(0, 0, 0, .42); transform: translateY(-3px); }
.hero-caption,
.about-photo figcaption { border-color: rgba(224, 174, 126, .26); color: #c0ad98; }
.hero-caption strong,
.approach-heading h2 { color: var(--ink); }

.button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(255, 208, 162, .28);
  background: linear-gradient(125deg, #b85d3a, #81391f 58%, #612d20);
  color: #fff3e2;
  box-shadow: 0 8px 26px rgba(151, 67, 37, .22), inset 0 1px rgba(255, 240, 220, .18);
  transition: color .35s ease, border-color .35s ease, background .35s ease, box-shadow .4s ease, transform .35s cubic-bezier(.2,.7,.2,1);
}
.about-actions { display: flex; }
.button::after {
  position: absolute;
  z-index: -1;
  top: -40%;
  bottom: -40%;
  left: -35%;
  width: 25%;
  background: rgba(255, 245, 228, .2);
  content: "";
  transform: translateX(-180%) skewX(-22deg);
  transition: transform .65s cubic-bezier(.2,.7,.2,1);
}
.button:hover { background: linear-gradient(125deg, #d17b4d, #a84f30 58%, #7b3825); box-shadow: 0 13px 36px rgba(170, 78, 43, .34), inset 0 1px rgba(255, 240, 220, .24); transform: translateY(-3px); }
.button:hover::after { transform: translateX(620%) skewX(-22deg); }
.text-link { color: #d7c5b1; transition: color .3s ease, text-underline-offset .3s ease; }
.text-link:hover { color: var(--copper-dark); text-underline-offset: 8px; }

.gallery-section {
  border-color: rgba(221, 171, 122, .2);
  background: linear-gradient(180deg, rgba(25, 20, 16, .98), rgba(15, 13, 11, .98));
  box-shadow: inset 0 1px rgba(255, 240, 222, .025), inset 0 -1px rgba(0, 0, 0, .45);
}
.gallery-section .section-head h2 { color: #f4e8d8; }
.photo-link {
  border: 1px solid rgba(228, 177, 128, .16);
  background: #0b0908;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .23);
  transition: border-color .4s ease, box-shadow .45s ease, transform .45s ease;
}
.photo-link::after {
  border-color: rgba(246, 204, 159, .16);
  background: linear-gradient(180deg, transparent 60%, rgba(10, 7, 6, .28));
  transition: border-color .4s ease, background .4s ease;
}
.photo-link:hover,
.photo-link:focus-visible { border-color: rgba(236, 173, 118, .55); box-shadow: 0 20px 48px rgba(0, 0, 0, .42), 0 0 0 1px rgba(236, 173, 118, .12); }
.photo-link:hover::after,
.photo-link:focus-visible::after { border-color: rgba(246, 204, 159, .44); }
.photo-link img { transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .5s ease; }
.photo-link:hover img,
.photo-link:focus-visible img { filter: saturate(1.1) brightness(1.04); transform: scale(1.045); }
.photo-link .expand { border-color: rgba(255, 221, 185, .72); background: rgba(19, 13, 10, .78); color: #fff3e4; }
.card-caption { color: #cfbba7; }
.card-number { color: var(--copper-dark); }
.card-caption h3 { color: #f0e1ce; transition: color .3s ease; }
.drink-card { transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.drink-card:hover { transform: translateY(-4px); }
.recipe-title-link { transition: color .28s ease, letter-spacing .28s ease; }
.recipe-title-link:hover { color: #f4b782; letter-spacing: .005em; }

.contact-panel {
  border: 1px solid rgba(228, 170, 118, .3);
  background: radial-gradient(ellipse at 86% 18%, rgba(166, 79, 44, .24), transparent 38%), linear-gradient(125deg, #201711, #17120f 58%, #231711);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .3), inset 0 1px rgba(255, 232, 203, .055);
}
.contact-panel::after { border-color: rgba(230, 164, 109, .38); box-shadow: 0 0 0 28px rgba(211,159,111,.035), 0 0 0 58px rgba(211,159,111,.025); }
.contact-panel .eyebrow { color: #efb17b; }
.contact-panel h2 { color: #fbefdf; }
.contact-copy { color: #cbb9a4; }
.contact-copy strong { color: #fff2df; }
.contact-copy a { color: #f3b27b; text-decoration-color: rgba(243, 178, 123, .5); text-underline-offset: 5px; transition: color .3s ease, text-decoration-color .3s ease; }
.contact-copy a:hover { color: #ffd2a5; text-decoration-color: currentColor; }

.about-approach { position: relative; }
.approach-heading { border-color: rgba(224, 174, 126, .27); }
.principle {
  position: relative;
  padding: 22px 20px 20px 0;
  border-color: rgba(224, 174, 126, .27);
  transition: border-color .35s ease, transform .4s cubic-bezier(.2,.7,.2,1), background .35s ease;
}
.principle:hover { border-color: var(--copper); transform: translateY(-4px); }
.principle-index { color: #e9aa72; }
.principle h3 { color: #f2e4d3; transition: color .3s ease; }
.principle:hover h3 { color: #f4b783; }

.recipe-title-link:focus-visible,
.photo-link:focus-visible,
.button:focus-visible,
.nav a:focus-visible { outline-color: #f3b27b; outline-offset: 5px; }
dialog {
  border-color: rgba(225, 171, 123, .34);
  background: #17120f;
  color: var(--ink);
  box-shadow: 0 32px 110px rgba(0, 0, 0, .72), 0 0 0 1px rgba(239, 177, 123, .06);
}
dialog::backdrop { background: rgba(7, 6, 5, .82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
dialog[open] { animation: modal-arrive .36s cubic-bezier(.2,.7,.2,1) both; }
.recipe-close { border-color: rgba(242, 192, 140, .62); background: rgba(18, 13, 10, .9); color: #fff3e3; transition: transform .25s ease, background .25s ease; }
.recipe-close:hover { background: #91482d; transform: rotate(90deg); }
.recipe-photo { background: #0b0908; }
.recipe-photo img { background: #0b0908; }
.recipe-photo figcaption,
.recipe-block p { color: #c3b19c; }
.recipe-status,
.recipe-block h3,
.recipe-sources h3 { color: #efb17b; }
.recipe-summary { color: #d0bdab; }
.recipe-block,
.recipe-sources { border-color: rgba(224, 174, 126, .24); }
.recipe-sources a { color: #efb17b; transition: color .25s ease; }
.recipe-sources a:hover { color: #ffd1a3; }

.site-footer { border-color: rgba(224, 174, 126, .2); color: #aa9885; }
.footer-name { color: #e7d6c2; }
.site-footer a { color: #cda47e; text-underline-offset: 4px; transition: color .25s ease; }
.site-footer a:hover { color: #ffd1a3; }

.atelier-progress {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #77351f, #d9824e 58%, #f4c288);
  box-shadow: 0 0 14px rgba(221, 129, 74, .62);
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: left center;
}

.motion-enabled [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition: opacity .82s cubic-bezier(.2,.7,.2,1), transform .82s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.motion-enabled [data-reveal="side"] { transform: translate3d(34px, 10px, 0) scale(.985); }
.motion-enabled [data-reveal].is-visible { opacity: 1; transform: translate3d(0, 0, 0) scale(1); will-change: auto; }
body.has-motion { animation: page-arrive .52s ease-out both; }

@keyframes ambient-drift {
  from { background-position: 0% 0%, 100% 0%, 70% 100%, 0 0; }
  to { background-position: 8% 12%, 92% 8%, 82% 90%, 0 0; }
}
@keyframes page-arrive {
  from { opacity: .72; }
  to { opacity: 1; }
}
@keyframes modal-arrive {
  from { opacity: 0; transform: translateY(18px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 900px) {
  .home-intro::before, .hero::before { right: 0; width: min(100%, 760px); opacity: .75; }
}
@media (max-width: 620px) {
  :root { --gutter: 20px; }
  .motion-enabled [data-reveal="side"] { transform: translate3d(0, 26px, 0) scale(.985); }
  .site-header { --site-header-height: 96px; height: 96px; min-height: 96px; flex-direction: column; align-items: stretch; justify-content: center; gap: 4px; padding-block: 8px; }
  .brand { gap: 8px; }
  .brand-logo { width: 38px; height: 38px; }
  .brand-name { font-size: 10px; letter-spacing: .1em; }
  .brand-role { font-size: 8px; letter-spacing: .09em; }
  .nav { width: 100%; justify-content: space-between; gap: 0; }
  .nav a { min-height: 30px; font-size: clamp(9px, 2.5vw, 10px); letter-spacing: .04em; }
  .nav a::after { bottom: 2px; }
  .hero-visual:hover img, .about-photo:hover img { transform: none; }
  .choice-card:hover { transform: translateY(-2px); }
  .drink-card:hover { transform: none; }
  .contact-panel { box-shadow: 0 18px 50px rgba(0, 0, 0, .24); }
}
@media (max-width: 390px) {
  .site-header { --site-header-height: 92px; height: 92px; min-height: 92px; padding-block: 7px; }
  .brand-role { display: none; }
  .brand-logo { width: 34px; height: 34px; }
  .brand-name { font-size: 10px; letter-spacing: .08em; }
  .nav { gap: 0; }
  .nav a { font-size: 9px; letter-spacing: 0; }
}
@media (max-width: 340px) {
  .brand-logo { width: 32px; height: 32px; }
  .brand { gap: 6px; }
  .brand-name { font-size: 9px; }
  .nav { gap: 0; }
  .nav a { font-size: 8.5px; letter-spacing: 0; }
}
@media (max-width: 360px) {
  .home-intro > .eyebrow { gap: 8px; font-size: 9px; letter-spacing: .14em; }
  .home-intro > .eyebrow::before { flex-basis: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
  .motion-enabled [data-reveal] { opacity: 1 !important; transform: none !important; }
}
