/* G & A Shoe Repair — "Knolling": the overhead workbench, set like a museum catalogue. */
:root {
  --surface: #E8DCC8;
  --ink: #1F1A17;
  --brand: #6B1E1E;
  --green: #2F5D50;
  --tan: #B08D57;
  --cta: #A44A1F;
  --paper: #F1E8D8;
  --rule: rgb(31 26 23 / .28);
  --rule-soft: rgb(31 26 23 / .12);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Geologica", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gut: clamp(16px, 4.5vw, 48px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 76px; }
body {
  margin: 0; color: var(--ink); font: 400 16.5px/1.6 var(--sans);
  background-color: var(--surface);
  background-image:
    linear-gradient(var(--rule-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule-soft) 1px, transparent 1px);
  background-size: 32px 32px; background-position: -1px -1px;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--surface); padding: 10px 14px; }
.skip:focus { top: 8px; }

/* ---------- header ---------- */
.hd {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 12px;
  padding: 10px var(--gut); background: rgb(232 220 200 / .94); border-bottom: 1px solid var(--rule);
  backdrop-filter: saturate(1.2) blur(6px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; min-height: 44px; }
.brand-name { font: 400 1.75rem/1 var(--serif); }
.brand-name em { color: var(--brand); }
.brand-sub { font-size: 12px; line-height: 1.2; letter-spacing: .08em; text-transform: uppercase; border-left: 1px solid var(--rule); padding-left: 10px; }
.menu-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border: 1px solid var(--ink);
  background: transparent; color: var(--ink); font: 500 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; cursor: pointer;
}
.menu-btn i { width: 14px; height: 8px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transition: transform .4s var(--ease); }
.menu-btn[aria-expanded="true"] i { transform: rotate(90deg); }
.nav ol { list-style: none; margin: 0; padding: 0; }
.nav a { display: flex; align-items: baseline; gap: 12px; text-decoration: none; min-height: 44px; padding: 10px 0; font: 400 1.6rem/1.1 var(--serif); border-bottom: 1px solid var(--rule); }
.nav a span { font: 500 12px/1 var(--sans); letter-spacing: .12em; color: var(--brand); }
html.js .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); padding: 6px var(--gut) 18px; border-bottom: 1px solid var(--ink); clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .5s var(--ease), visibility 0s .5s; }
html.js.menu-open .nav { clip-path: inset(0); visibility: visible; transition: clip-path .5s var(--ease); }
html:not(.js) .menu-btn { display: none; }
html:not(.js) .hd { flex-wrap: wrap; }
html:not(.js) .nav { width: 100%; }
.hd-call { display: none; }

/* ---------- shared bits ---------- */
.cat-label { display: flex; gap: 12px; align-items: baseline; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; }
.cat-label span { color: var(--brand); font-weight: 600; white-space: nowrap; padding-right: 12px; border-right: 1px solid var(--rule); }
.tag { display: inline-block; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--green); border: 1px solid currentColor; padding: 4px 8px; }
.fine { font-size: 14px; color: #4a403a; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; text-decoration: none;
  font: 500 15px/1.2 var(--sans); letter-spacing: .02em; border: 1px solid var(--ink); cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.btn-cta { background: var(--cta); color: #fff; border-color: var(--cta); }
.btn-cta:hover { background: #8d3d18; }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--surface); }
.tick { position: absolute; width: 18px; height: 18px; border: 0 solid var(--ink); pointer-events: none; }
.tick.tl { top: -9px; left: -9px; border-top-width: 1.5px; border-left-width: 1.5px; }
.tick.tr { top: -9px; right: -9px; border-top-width: 1.5px; border-right-width: 1.5px; }
.tick.bl { bottom: -9px; left: -9px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.tick.br { bottom: -9px; right: -9px; border-bottom-width: 1.5px; border-right-width: 1.5px; }

/* ---------- hero ---------- */
.hero { display: grid; gap: 28px; padding: 26px var(--gut) 40px; border-bottom: 1px solid var(--ink); }
.hero-title { font-size: clamp(3rem, 13.2vw, 7.6rem); line-height: .9; letter-spacing: -.025em; margin: 18px 0 18px; }
.hero-title .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .ln > span { display: block; }
.hero-title em { color: var(--brand); }
html.js .hero-title .ln > span { transform: translateY(105%); animation: rise 1s var(--ease) forwards; }
html.js .hero-title .ln:nth-child(2) > span { animation-delay: .09s; }
html.js .hero-title .ln:nth-child(3) > span { animation-delay: .18s; }
@keyframes rise { to { transform: none; } }
.lede { max-width: 36ch; font-size: 17px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-cta .btn { flex: 1 1 200px; }
.plate { margin: 0; }
.plate-frame { position: relative; margin: 9px; }
.plate-frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: saturate(.9) contrast(1.04); }
.plate figcaption { display: flex; flex-wrap: wrap; gap: 6px 12px; justify-content: space-between; font-size: 13px; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--rule); }
.plate figcaption b { color: var(--brand); letter-spacing: .1em; font-weight: 600; margin-right: 6px; }
.scale { display: inline-flex; align-items: center; gap: 0; font-size: 12px; letter-spacing: .06em; }
.scale i { width: 14px; height: 7px; border: 1px solid var(--ink); border-right: 0; }
.scale i:nth-child(odd) { background: var(--ink); }
.scale i:nth-child(5) { border-right: 1px solid var(--ink); margin-right: 8px; }
html.js .plate-hero .plate-frame { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease) .15s; }
html.js .plate-hero.is-in .plate-frame { clip-path: inset(-12px); }
html.js .plate-hero img { transform: scale(1.08); transition: transform 1.6s var(--ease) .15s; }
html.js .plate-hero.is-in img { transform: none; }
.contents { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.contents a { display: flex; align-items: baseline; gap: 10px; min-height: 48px; padding: 12px 0; text-decoration: none; border-bottom: 1px solid var(--rule); font: 400 1.35rem/1.1 var(--serif); }
.contents i { flex: 1; border-bottom: 1px dotted var(--ink); transform: translateY(-4px); transform-origin: left; transition: transform .5s var(--ease); }
.contents b { font: 600 12.5px/1 var(--sans); letter-spacing: .1em; color: var(--brand); }
.contents a:hover i { transform: translateY(-4px) scaleX(.85); }

/* ---------- sections ---------- */
.sec { padding: 56px var(--gut); border-bottom: 1px solid var(--ink); }
.sec-head { display: grid; gap: 12px; margin-bottom: 32px; justify-items: start; }
.sec-head h2 { font-size: clamp(2.5rem, 9vw, 5rem); line-height: .95; }
.sec-intro { max-width: 46ch; }

/* catalogue */
.cat-grid { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.cat-group { background: var(--paper); padding: 22px 18px 18px; }
.cat-group h3 { display: flex; align-items: baseline; gap: 12px; font-size: 1.9rem; margin-bottom: 12px; }
.cat-group h3 span { font: 600 12.5px/1 var(--sans); letter-spacing: .1em; color: #fff; background: var(--brand); padding: 6px 8px; transform: translateY(-5px); }
.cat-group ul { list-style: none; margin: 0; padding: 0; }
.cat-group li { display: flex; align-items: baseline; gap: 10px; padding: 11px 0; border-top: 1px solid var(--rule-soft); }
.cat-group .no { font-size: 12.5px; letter-spacing: .08em; color: var(--green); font-weight: 600; min-width: 3.2em; }
.cat-group .it { flex: 1; display: flex; gap: 8px; align-items: baseline; }
.cat-group .it::after { content: ""; flex: 1; min-width: 12px; border-bottom: 1px dotted rgb(31 26 23 / .45); }
.cat-group .pr { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* anatomy */
.ana-wrap { display: grid; gap: 28px; }
.ana-fig { margin: 0; }
.ana-img { position: relative; aspect-ratio: 3 / 2; background: var(--ink); }
.ana-img img { width: 100%; height: 100%; object-fit: cover; }
.ana-fig figcaption { font-size: 13px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--rule); }
.ana-fig figcaption b { color: var(--brand); letter-spacing: .1em; margin-right: 8px; }
.hs {
  position: absolute; left: var(--x); top: var(--y); width: 44px; height: 44px; margin: -22px 0 0 -22px; padding: 0; border-radius: 50%;
  border: 1.5px solid var(--ink); background: var(--surface); color: var(--ink); cursor: pointer; display: grid; place-items: center;
  font: 600 12.5px/1 var(--sans); transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.hs::before { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1px solid var(--surface); opacity: 0; }
.hs span { display: none; }
.hs:hover { transform: scale(1.08); }
.hs[aria-pressed="true"] { background: var(--brand); color: #fff; border-color: var(--surface); }
.hs[aria-pressed="true"]::before { animation: ring 2.4s var(--ease) infinite; }
@keyframes ring { 0% { opacity: .9; transform: scale(.8); } 100% { opacity: 0; transform: scale(1.5); } }
.ana-panels { position: relative; }
.part { background: var(--paper); border: 1px solid var(--ink); padding: 22px 20px; }
.part-no { font-size: 12.5px; letter-spacing: .14em; color: var(--brand); font-weight: 600; }
.part h3 { font-size: clamp(2.4rem, 8vw, 3.6rem); line-height: 1; margin: 6px 0 10px; }
.opts { list-style: none; margin: 18px 0 14px; padding: 0; border-top: 1px solid var(--ink); }
.opts li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.opts b { white-space: nowrap; font-weight: 600; }
.ask { margin-top: 16px; display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; border-bottom: 1px solid var(--green); background: none; color: var(--green); font: 500 15px/1 var(--sans); cursor: pointer; }
html.js .part:not([hidden]) { animation: panel .6s var(--ease); }
@keyframes panel { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* plates */
.plate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.pg { margin: 0; background: var(--paper); padding: 10px 10px 8px; }
.pg img { width: 100%; aspect-ratio: 1; object-fit: cover; cursor: zoom-in; }
.pg figcaption { font-size: 12.5px; margin-top: 8px; letter-spacing: .02em; }
.pg figcaption b { color: var(--brand); margin-right: 6px; letter-spacing: .08em; }
.pg-big { grid-column: span 2; }
.pg-note { background: var(--green); color: #f3ead9; padding: 16px; display: flex; align-items: flex-end; font-size: 14px; }
html.js .pg[data-reveal] img, html.js .pg-note[data-reveal] { clip-path: inset(0 0 100% 0); transition: clip-path 1s var(--ease) calc(var(--i, 0) * .07s); }
html.js .pg.is-in img, html.js .pg-note.is-in { clip-path: inset(0); }

/* specimen form */
.sp-form { display: grid; gap: 28px; }
.sp-frame { display: grid; gap: 16px; align-content: start; }
.sp-box { position: relative; aspect-ratio: 1; margin: 9px; background: var(--paper); border: 1px dashed var(--ink); display: grid; place-items: center; overflow: visible; }
.sp-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sp-empty { text-align: center; display: grid; gap: 6px; padding: 20px; }
.sp-empty b { font: 400 2.2rem/1 var(--serif); color: var(--brand); }
.sp-empty span { font-size: 14px; }
.file { position: relative; display: flex; align-items: center; justify-content: center; min-height: 50px; border: 1px solid var(--ink); font-weight: 500; cursor: pointer; }
.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 16px; }
.file:focus-within { outline: 2px solid var(--green); outline-offset: 3px; }
.sp-fields { display: grid; gap: 16px; align-content: start; }
.row2 { display: grid; gap: 16px; }
.fld { display: grid; gap: 6px; }
.fld span { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.fld input, .fld select, .fld textarea {
  width: 100%; font: 400 16px/1.4 var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--ink); border-radius: 0; padding: 12px 12px; min-height: 48px;
}
.fld textarea { resize: vertical; }
.sp-fields .btn { width: 100%; }
.confirm { background: var(--green); color: #f3ead9; padding: 16px; }

/* visit */
.visit-grid { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.v-cell { background: var(--paper); padding: 22px 18px; display: grid; gap: 12px; align-content: start; }
.v-k { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--brand); }
.v-big { font: 400 2rem/1.1 var(--serif); }
.v-big a { text-decoration: none; }
.v-hours dl { margin: 0; }
.v-hours dl div { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--rule-soft); }
.v-hours dt { font-weight: 500; }
.v-hours dd { margin: 0; font-variant-numeric: tabular-nums; }
.v-reviews { background: transparent; border: 0; }
html.js .v-cell[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease) calc(var(--i, 0) * .08s), transform .8s var(--ease) calc(var(--i, 0) * .08s); }
html.js .v-cell.is-in { opacity: 1; transform: none; }
html.js .cat-group[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease) calc(var(--i, 0) * .08s), transform .8s var(--ease) calc(var(--i, 0) * .08s); }
html.js .cat-group.is-in { opacity: 1; transform: none; }
html.js .ana-fig[data-reveal] .ana-img { clip-path: inset(0 100% 0 0); transition: clip-path 1.1s var(--ease); }
html.js .ana-fig.is-in .ana-img { clip-path: inset(0); }

/* footer */
.ft { background: var(--ink); color: #EDE3D1; padding: 44px var(--gut) 28px; display: grid; gap: 22px; }
.ft-top { display: grid; gap: 8px; }
.ft-brand { font: 400 2.4rem/1 var(--serif); }
.ft-brand em { color: var(--tan); }
.colophon { font-size: 14px; color: #cfc3ae; }
.photo-credits { border-top: 1px solid rgb(237 227 209 / .25); padding-top: 14px; font-size: 14px; }
.photo-credits summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 500; }
.photo-credits ul { padding-left: 18px; margin: 6px 0 10px; }
.photo-credits li { padding: 3px 0; }
.ft a { color: #fff; }
.pv-note { color: #e3d8c4; max-width: 80ch; }

/* sticky bar */
.bar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .bar {
    display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 8px 10px; padding-bottom: calc(8px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--ink);
  }
  .bar a { display: flex; align-items: center; justify-content: center; min-height: 48px; text-decoration: none; font-weight: 600; font-size: 15px; }
  .bar-call { border: 1px solid var(--ink); color: var(--ink); }
  .bar-cta { background: var(--cta); color: #fff; }
}

/* ---------- ≥ 768 ---------- */
@media (min-width: 768px) {
  .row2 { grid-template-columns: 1fr 1fr; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .plate-grid { grid-template-columns: repeat(4, 1fr); }
  .pg-big { grid-column: 1 / span 2; grid-row: span 2; }
  .pg-note { grid-column: span 3; align-items: center; font-size: 15px; padding: 22px; }
  .visit-grid { grid-template-columns: 1fr 1fr; }
  .hs span {
    display: block; position: absolute; left: calc(100% + 34px); top: 50%; transform: translateY(-50%); white-space: nowrap;
    font: 500 12.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #fff; background: rgb(31 26 23 / .82); padding: 6px 8px;
  }
  .hs span::before { content: ""; position: absolute; right: 100%; top: 50%; width: 34px; border-top: 1px solid #fff; }
  .hs[data-part="Heel"] span { left: auto; right: calc(100% + 34px); }
  .hs[data-part="Heel"] span::before { right: auto; left: 100%; }
  .sp-form { grid-template-columns: 5fr 7fr; align-items: start; }
  .hd-call { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; text-decoration: none; font-weight: 500; font-size: 14px; background: var(--cta); color: #fff; }
}

/* ---------- ≥ 1100 ---------- */
@media (min-width: 1100px) {
  .menu-btn { display: none; }
  html.js .nav, .nav { position: static; clip-path: none; visibility: visible; background: none; padding: 0; border: 0; transition: none; }
  .nav ol { display: flex; gap: 22px; }
  .nav a { font: 500 14px/1 var(--sans); border: 0; padding: 0; align-items: center; }
  .nav a:hover { color: var(--brand); }
  .hero { grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 30px; padding-top: 44px; padding-bottom: 56px; }
  .hero-copy { grid-column: 1 / span 6; align-self: end; }
  .plate-hero { grid-column: 7 / span 6; grid-row: 1 / span 2; }
  .plate-frame img { aspect-ratio: 1; }
  .contents { grid-column: 1 / span 5; align-self: end; }
  .sec { padding: 88px var(--gut); }
  .sec-head { grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: end; }
  .sec-head .cat-label { grid-column: 1 / -1; }
  .sec-head h2 { grid-column: 1 / span 7; }
  .sec-head .sec-intro, .sec-head .tag { grid-column: 9 / span 4; justify-self: start; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .ana-wrap { grid-template-columns: 7fr 4fr; align-items: start; gap: 36px; }
  .ana-panels { position: sticky; top: 96px; }
  .visit-grid { grid-template-columns: 1.3fr 1fr 1fr 0.8fr; }
  .ft { grid-template-columns: 1fr 1fr; align-items: start; }
  .ft .pv-note { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  html.js .hero-title .ln > span, html.js .plate-hero img { transform: none; }
  html.js .plate-hero .plate-frame, html.js .pg[data-reveal] img, html.js .pg-note[data-reveal], html.js .ana-fig[data-reveal] .ana-img { clip-path: none; }
  html.js .v-cell[data-reveal], html.js .cat-group[data-reveal] { opacity: 1; transform: none; }
}
