/* Vyre — original single-page template.
   Recolor the shop from these tokens. */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 460 560;
  font-display: swap;
  src: url("../fonts/fraunces.woff2") format("woff2");
}

@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 460 560;
  font-display: swap;
  src: url("../fonts/fraunces-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 360 520;
  font-display: swap;
  src: url("../fonts/outfit.woff2") format("woff2");
}

:root {
  --paper: #f3eee6;
  --paper-deep: #e7e0d4;
  --sheet: #f7f4ee;
  --ink: #1c1915;
  --fir: #1b332c;
  --fir-deep: #12211c;
  --persimmon: #8f3016;
  --muted: #4e4942;
  --line: rgba(28, 25, 21, 0.16);
  --wood: #c6a36e;
  --glass: #d5e3dc;
  --serif: "Fraunces", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --pad: clamp(1.15rem, 4vw, 3.25rem);
  --measure: 38rem;
  --header: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3,
p,
dl,
dd,
blockquote,
figure {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

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

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

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

::selection {
  background: var(--fir);
  color: var(--paper);
}

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 0.85rem;
  text-decoration: none;
}

.skip:focus {
  top: 1rem;
}

.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;
}

.wrap {
  width: min(1180px, calc(100% - var(--pad) * 2));
  margin-inline: auto;
}

.eyebrow {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--persimmon);
}

h2 {
  font-family: var(--serif);
  font-weight: 520;
  font-size: clamp(2.35rem, 4.6vw, 3.7rem);
  letter-spacing: -0.03em;
  line-height: 1.02;
  text-wrap: balance;
}

.eyebrow + h2 {
  margin-top: 0.45rem;
}

.prose {
  margin-top: 1rem;
  max-width: var(--measure);
  line-height: 1.6;
}

.prose p + p {
  margin-top: 1rem;
}

.section {
  padding: clamp(4.25rem, 8vw, 6.75rem) 0;
}

.block-intro {
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.block-intro-spaced {
  margin-top: clamp(4rem, 8vw, 6rem);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
}

.site-header.is-scrolled {
  box-shadow: inset 0 -1px 0 var(--line);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header);
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.92rem;
}

.logo svg {
  width: 22px;
  height: 22px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav a {
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 0.3rem 0;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size 0.25s ease;
}

.nav a span {
  color: var(--persimmon);
  margin-right: 0.35rem;
}

.nav a:hover,
.nav a[aria-current="true"] {
  background-size: 100% 1px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

.bars,
.bars::before,
.bars::after {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  position: relative;
}

.bars::before,
.bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.bars::before {
  top: -7px;
}

.bars::after {
  top: 7px;
}

.site-header.is-open .bars {
  background: transparent;
}

.site-header.is-open .bars::before {
  top: 0;
  transform: rotate(45deg);
}

.site-header.is-open .bars::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Hero */

.hero {
  padding: clamp(1.4rem, 3vw, 2.4rem) 0 clamp(2.4rem, 5vw, 3.6rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: clamp(1.75rem, 4vw, 4rem);
  align-items: center;
}

.status {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.status-mark {
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.4rem;
  background: var(--persimmon);
  flex: none;
}

.hero h1 {
  margin-top: 1rem;
  font-family: var(--serif);
  font-weight: 520;
  font-size: clamp(3.1rem, 6.5vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero h1 em {
  font-style: italic;
  font-weight: 480;
}

.lede {
  margin-top: 1.35rem;
  max-width: 34rem;
  font-size: 1.16rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.15rem;
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 500;
  border: 1px solid var(--fir);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-solid {
  background: var(--fir);
  color: var(--paper);
}

.btn-solid:hover {
  background: var(--persimmon);
  border-color: var(--persimmon);
}

.btn-line {
  background: transparent;
  color: var(--fir);
}

.btn-line:hover {
  background: var(--fir);
  color: var(--paper);
}

.hero-drawing,
.plan {
  width: 100%;
}

.hero-drawing svg,
.plan svg {
  width: 100%;
  height: auto;
}

.sheet figcaption,
.plan figcaption,
.sheet-cap {
  margin-top: 0.75rem;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(2.4rem, 5vw, 3.6rem);
  border-top: 1px solid var(--line);
}

.facts div {
  padding: 1.05rem 1rem 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.facts div:not(:first-child) {
  border-left: 1px solid var(--line);
  padding-left: 1.15rem;
}

.facts dt {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.facts dd {
  margin: 0.35rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* Materials band */

.ticker {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: stretch;
  background: var(--paper-deep);
  border-block: 1px solid var(--line);
}

.ticker-label {
  display: flex;
  align-items: center;
  padding: 0.85rem 1.1rem 0.85rem var(--pad);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-right: 1px solid var(--line);
  white-space: nowrap;
}

.ticker-window {
  overflow: hidden;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 46s linear infinite;
}

.ticker-group {
  display: flex;
}

.ticker-group span {
  padding: 0.9rem 0.35rem 0.9rem 0;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker-group span::before {
  content: "·";
  color: var(--persimmon);
  margin: 0 0.85rem;
}

.ticker:hover .ticker-track,
.ticker:focus-within .ticker-track {
  animation-play-state: paused;
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

/* Rooms */

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 1.6rem;
}

.section-aside {
  max-width: 24rem;
}

.section-aside p {
  line-height: 1.5;
}

.rooms-nav {
  display: flex;
  gap: 0.4rem;
  margin-top: 1rem;
}

.icon-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  color: var(--ink);
}

.icon-btn:hover:not(:disabled) {
  background: var(--fir);
  border-color: var(--fir);
  color: var(--paper);
}

.icon-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.rooms-scroller {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: max(var(--pad), calc((100% - 1180px) / 2));
  scrollbar-width: none;
}

.rooms-scroller::-webkit-scrollbar {
  display: none;
}

.rooms-row {
  display: flex;
  gap: 1.15rem;
  width: max-content;
  padding: 0.75rem max(var(--pad), calc((100% - 1180px) / 2)) 1rem;
}

.plate {
  width: 280px;
  flex: none;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  text-align: left;
}

.plate-art {
  position: relative;
  width: 100%;
  transition: transform 0.35s ease;
}

.plate:hover .plate-art,
.plate:focus-visible .plate-art {
  transform: translateY(-6px);
}

.plate-flag {
  position: absolute;
  top: 22px;
  left: 22px;
  background: var(--sheet);
  border: 1px solid var(--line);
  padding: 0.28rem 0.45rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.plate-name {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 520;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.plate:hover .plate-name,
.plate:focus-visible .plate-name {
  color: var(--persimmon);
}

.plate-kind,
.plate-where {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.plate-kind {
  margin-top: 0.25rem;
}

/* Practice and schedule */

.service,
.schedule li {
  display: grid;
  gap: 0.4rem 1.75rem;
  align-items: baseline;
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
}

.service {
  grid-template-columns: 4.5rem minmax(11rem, 0.7fr) minmax(0, 1.15fr);
}

.schedule li {
  grid-template-columns: 8.5rem minmax(12rem, 0.75fr) minmax(0, 1.1fr);
}

.service:last-child,
.schedule li:last-child {
  border-bottom: 1px solid var(--line);
}

.service-no,
.when {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.service h3,
.schedule h3 {
  font-family: var(--serif);
  font-weight: 520;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.service h3 {
  font-size: clamp(2rem, 3.4vw, 2.9rem);
}

.schedule h3 {
  font-size: clamp(1.45rem, 2.3vw, 1.9rem);
  letter-spacing: -0.02em;
}

.service p,
.schedule p {
  line-height: 1.55;
  max-width: 40rem;
}

.service:hover .service-no,
.schedule li:hover .when {
  color: var(--persimmon);
}

/* Voices */

.voices {
  background: var(--fir-deep);
  color: var(--paper);
}

.voices .eyebrow {
  color: #e7c3b4;
}

.voices .prose {
  color: #efe8de;
}

.voice {
  display: grid;
  grid-template-columns: minmax(0, 44rem) minmax(10rem, 16rem);
  gap: 1.5rem 3rem;
  align-items: end;
  padding: 2rem 0;
  border-top: 1px solid rgba(243, 238, 230, 0.2);
}

.voice:last-child {
  border-bottom: 1px solid rgba(243, 238, 230, 0.2);
}

.voice blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 480;
  font-size: clamp(1.55rem, 2.8vw, 2.35rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.voice-name {
  display: block;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 520;
  font-style: normal;
}

.voice-role {
  display: block;
  margin-top: 0.3rem;
  color: #ddd4c8;
  font-size: 0.95rem;
}

/* Shop */

.shop-grid,
.write-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.plan {
  margin: 0;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem 1rem;
  margin-top: 1.6rem;
}

.stats strong {
  display: block;
  font-family: var(--serif);
  font-weight: 520;
  font-size: clamp(2.1rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1;
}

.stats span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Write */

.address {
  margin-top: 1.6rem;
  font-style: normal;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.write-hours {
  margin-top: 1rem;
  line-height: 1.55;
}

.write-hours a {
  text-underline-offset: 0.18em;
}

.field + .field {
  margin-top: 1.2rem;
}

.field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0.7rem 0;
}

.field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position:
    calc(100% - 10px) 58%,
    calc(100% - 5px) 58%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 1.4rem;
}

.field textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--persimmon);
  outline-offset: 4px;
  border-bottom-color: var(--ink);
}

.field [aria-invalid="true"] {
  border-bottom-color: var(--persimmon);
}

.field-error {
  margin-top: 0.35rem;
  color: var(--persimmon);
  font-size: 0.9rem;
}

.submit {
  margin-top: 1.5rem;
}

.form-note {
  margin-top: 0.75rem;
  max-width: 36rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-success {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.form-success span {
  display: block;
  margin-top: 0.85rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
  line-height: 1.5;
}

.note-form.is-sent .form-fields,
.note-form.is-sent .submit,
.note-form.is-sent .form-note {
  display: none;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.6rem 0 2.2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1.5rem 2rem;
  align-items: center;
}

.footer-note {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 36rem;
}

.footer-sheet {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}

/* Dialog */

.dialog {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 33, 28, 0.58);
}

.dialog-panel {
  position: relative;
  z-index: 1;
  width: min(38rem, 100%);
  max-height: min(85vh, 40rem);
  overflow: auto;
  background: var(--paper);
  border-top: 3px solid var(--persimmon);
  padding: 1.25rem 1.4rem 1.7rem;
  box-shadow: 0 24px 70px rgba(18, 33, 28, 0.28);
}

.dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.dialog-close {
  min-height: 44px;
  padding: 0 0.8rem;
  border: 1px solid var(--line);
}

.dialog-close:hover {
  border-color: var(--ink);
}

.dialog-title {
  margin-top: 0.7rem;
  font-family: var(--serif);
  font-weight: 520;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.dialog-where {
  margin-top: 0.45rem;
  color: var(--muted);
}

.dialog-note {
  margin-top: 1.1rem;
  font-size: 1.08rem;
  line-height: 1.55;
  max-width: 36rem;
}

.dialog-materials {
  margin-top: 1.15rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

/* Layout shifts */

@media (max-width: 980px) {
  .hero-grid,
  .shop-grid,
  .write-grid,
  .voice {
    grid-template-columns: 1fr;
  }

  .hero-drawing {
    max-width: 460px;
  }

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

  .footer-sheet {
    text-align: left;
  }
}

@media (max-width: 800px) {
  .service,
  .schedule li {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: fixed;
    z-index: 19;
    inset: var(--header) 0 0 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 1.5rem var(--pad) 2.5rem;
    gap: 0.15rem;
    overflow: auto;
  }

  .site-header.is-open .nav {
    display: flex;
  }

  .nav a {
    font-family: var(--serif);
    font-size: clamp(2.1rem, 8vw, 2.8rem);
    font-weight: 520;
    letter-spacing: -0.03em;
    text-transform: none;
    padding: 0.35rem 0;
    background-image: none;
  }

  .nav a span {
    font-family: var(--sans);
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    margin-right: 0.7rem;
  }
}

@media (max-width: 720px) {
  .facts {
    grid-template-columns: 1fr 1fr;
  }

  .facts div:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }

  .facts div:nth-child(even) {
    border-left: 1px solid var(--line);
    padding-left: 1.15rem;
  }
}

@media (max-width: 460px) {
  .facts {
    grid-template-columns: 1fr;
  }

  .facts div,
  .facts div:nth-child(even) {
    border-left: 0;
    padding-left: 0;
  }

  .plate {
    width: min(280px, 78vw);
  }
}

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

  .ticker-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
  }

  .ticker-clone {
    display: none;
  }

  .ticker-window {
    overflow: visible;
  }

  .plate-art {
    transition: none;
  }
}

#rooms,
#practice,
#shop,
#write {
  scroll-margin-top: calc(var(--header) + 0.75rem);
}
