:root {
  --white: #fff;
  --cream: #F7F2E7;
  --ink: #302B25;
  --brass: #735221;
  --muted: #62584c;
  --rule: #ded5c6;
  --error: #8c332d;
  color: var(--ink);
  background: var(--white);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: var(--brass); text-underline-offset: .22em; }
a:hover { text-decoration-thickness: .15em; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; }
.skip { position: absolute; z-index: 2; left: 1rem; top: 1rem; padding: .6rem 1rem; background: var(--white); transform: translateY(-180%); }
.skip:focus { transform: none; }
.shell { width: min(100% - 5rem, 72rem); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; min-height: 5.25rem; }
.brand { display: inline-flex; gap: .65rem; align-items: center; color: var(--ink); text-decoration: none; font-size: 1.02rem; font-weight: 760; line-height: 1.18; }
.brand img { width: 2.3rem; height: 2.3rem; }
.brand small { display: block; margin-top: .2rem; color: var(--muted); font-weight: 650; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; }
.nav { display: flex; flex-wrap: wrap; gap: .35rem 1.4rem; align-items: center; }
.nav a { padding-block: .45rem; color: var(--ink); text-decoration: none; font-size: .9rem; }
.nav a:hover, .nav [aria-current] { color: var(--brass); text-decoration: underline; }
main { padding-block: 3rem 4.5rem; }
h1, h2, h3, p { margin: 0; }
h1 { max-width: 20ch; font-size: clamp(2.45rem, 5.8vw, 4.5rem); line-height: .99; font-weight: 740; letter-spacing: -.062em; text-wrap: balance; }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); letter-spacing: -.04em; line-height: 1.12; }
h3 { line-height: 1.25; }
.eyebrow, .reference { font-size: .74rem; font-weight: 720; letter-spacing: .105em; text-transform: uppercase; color: var(--brass); }
.reference { font-variant-numeric: tabular-nums; white-space: nowrap; }
.intro { display: grid; grid-template-columns: minmax(0, 3fr) minmax(10rem, 1fr); gap: 1.5rem; align-items: end; padding: .55rem 0 2.5rem; }
.intro h1, .page-heading h1 { margin-top: .7rem; }
.intro-note { max-width: 25ch; border-left: 1px solid var(--rule); padding-left: 1rem; color: var(--muted); }
.register { scroll-margin-top: 1rem; }
.register-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: var(--cream); border-top: 2px solid var(--brass); padding: 1rem 1.25rem; }
.register-heading h2 { font-size: 1.35rem; letter-spacing: -.025em; }
.register-heading .eyebrow { white-space: nowrap; }
table { border-collapse: collapse; width: 100%; text-align: left; }
th, td { border-bottom: 1px solid var(--rule); padding: .85rem 1.25rem; vertical-align: middle; }
thead th { font-size: .78rem; font-weight: 680; color: var(--muted); }
tbody th { font-size: 1.03rem; font-weight: 690; }
td:last-child, thead th:last-child { text-align: right; }
td:last-child a { font-weight: 680; white-space: nowrap; }
.feature { display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: clamp(1.4rem, 5vw, 4.75rem); align-items: center; margin-top: 2.6rem; padding: 1.1rem; background: var(--cream); }
.feature figure, .garment-photo { margin: 0; }
.feature img, .garment-photo img { aspect-ratio: 1; width: 100%; height: auto; background: var(--cream); }
.feature img { object-fit: cover; }
.feature h2, .feature p + a { margin-top: .55rem; }
.feature h2 + p { margin-top: .7rem; }
.feature-copy { max-width: 34ch; }
.feature-copy a { display: inline-block; font-weight: 680; }
.back { display: inline-block; margin-bottom: 1.25rem; font-size: .9rem; font-weight: 680; }
.garment { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr); gap: clamp(1.4rem, 5vw, 4rem); align-items: start; }
.garment-photo img { object-fit: contain; }
.garment-photo figcaption { color: var(--muted); font-size: .78rem; margin-top: .6rem; }
.garment h1 { margin: .5rem 0 .85rem; font-size: clamp(2.15rem, 4.25vw, 3.7rem); }
.garment .description { max-width: 52ch; }
.specs { margin: 1.15rem 0; font-size: .92rem; }
.specs div { display: grid; grid-template-columns: minmax(8.5rem, 36%) 1fr; gap: .55rem; border-top: 1px solid var(--rule); padding: .45rem 0; }
.specs dt { font-weight: 680; }
.specs dd { margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1rem; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: .65rem .95rem; background: var(--brass); color: white; border: 1px solid var(--brass); text-decoration: none; font: inherit; font-weight: 680; cursor: pointer; }
.button:hover { background: var(--ink); border-color: var(--ink); color: white; }
.button.secondary { background: white; color: var(--brass); }
.button.secondary:hover { background: var(--cream); }
.button:disabled { opacity: .75; cursor: wait; }
.page-heading { margin-bottom: 1.6rem; }
.page-heading p:last-child:not(.eyebrow) { margin-top: .85rem; max-width: 60ch; }
.reading { max-width: 49rem; }
.reading section { padding: 1rem 0 1.2rem; border-top: 1px solid var(--rule); }
.reading section h2 { font-size: 1.4rem; margin-bottom: .45rem; }
.reading section p + p { margin-top: .65rem; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 42rem) minmax(12rem, 1fr); align-items: start; gap: clamp(1.5rem, 5vw, 4rem); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field { display: grid; align-content: start; gap: .25rem; }
.field label { font-weight: 670; }
.field small, .fine { font-size: .84rem; color: var(--muted); }
.wide { grid-column: 1 / -1; }
input, select, textarea { width: 100%; border: 1px solid #938778; border-radius: 0; padding: .6rem .65rem; background: white; color: var(--ink); font: inherit; min-height: 2.8rem; }
textarea { min-height: 8rem; resize: vertical; }
[aria-invalid="true"] { border: 2px solid var(--error); }
.error-text { color: var(--error); font-size: .85rem; }
.status:not(:empty) { padding: .8rem 1rem; margin-bottom: 1rem; background: var(--cream); border-left: 3px solid var(--brass); }
.status[data-error="true"] { border-left-color: var(--error); color: var(--error); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-note { background: var(--cream); border-top: 2px solid var(--brass); padding: 1rem; }
.contact-note h2 { font-size: 1.18rem; margin-bottom: .5rem; }
.site-footer { background: var(--cream); border-top: 1px solid var(--rule); padding: 1.55rem 0; font-size: .83rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; }
.site-footer address { font-style: normal; }
.footer-links { display: flex; gap: 1rem; margin-bottom: .35rem; }
@media (max-width: 52rem) {
  .shell { width: calc(100% - 3rem); }
  .nav { gap: .25rem .85rem; }
  .header-inner { gap: .4rem 1rem; }
  th, td { padding-inline: .85rem; }
}
@media (max-width: 39rem) {
  .shell { width: calc(100% - 2rem); }
  .header-inner { padding-block: .85rem .65rem; align-items: flex-start; flex-direction: column; }
  .nav a { font-size: .83rem; }
  main { padding-block: 1.8rem 2.6rem; }
  .intro, .feature, .garment, .contact-grid { grid-template-columns: 1fr; }
  .intro { padding-bottom: 1.55rem; gap: .75rem; }
  .intro-note { max-width: 37ch; }
  .register-heading { padding-inline: .75rem; }
  .register-heading h2 { font-size: 1.15rem; }
  table, tbody { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  tbody tr { display: grid; grid-template-columns: 1fr auto; column-gap: .5rem; padding: .7rem .75rem; border-bottom: 1px solid var(--rule); }
  tbody th, tbody td { display: block; padding: 0; border: 0; }
  tbody th { grid-column: 1 / -1; grid-row: 1; }
  tbody .reference { grid-column: 1; grid-row: 2; margin-block: .2rem; }
  tbody .measurement { grid-column: 1; grid-row: 3; font-size: .88rem; }
  tbody td:last-child { grid-column: 2; grid-row: 2 / span 2; align-self: end; font-size: .88rem; }
  .feature { margin-top: 1.5rem; gap: 1rem; padding: .75rem; }
  .form-grid { grid-template-columns: 1fr; }
}
