:root {
  --ivory: #f7f2e7;
  --peel: #ebe1cc;
  --forest: #253e35;
  --claret: #651f2c;
  --near: #536153;
  --rule: #c7c1ab;
  --soft: #e8eee6;
  --serif: "Palatino Linotype","Book Antiqua",Palatino,Georgia,serif;
  --sans: "Gill Sans","Gill Sans MT",Avenir,Arial,sans-serif;
  --measure: "SFMono-Regular",Consolas,monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--forest);
  font: 17px/1.57 var(--sans);
}

button,input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-underline-offset: .22em;
}

img {
  display: block;
  width: 100%;
  object-fit: cover;
}

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

h1,h2,h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.039em;
}

a:focus-visible,button:focus-visible,input:focus-visible {
  outline: 2px solid var(--claret);
  outline-offset: 5px;
}

::selection {
  background: #ffe59f;
  color: #302922;
}

.counter-width {
  width: min(89%,1340px);
  margin-inline: auto;
}

.counter-skip {
  position: absolute;
  z-index: 5;
  top: -7rem;
  left: 1rem;
  background: var(--forest);
  color: var(--ivory);
  padding: .6rem;
}

.counter-skip:focus {
  top: 1rem;
}

.counter-top {
  border-bottom: 1px solid var(--rule);
}

.counter-topline {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.arc-word {
  font: 700 1.72rem/1 var(--serif);
  letter-spacing: -.084em;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}

.arc-word span {
  font-size: .92em;
  font-style: italic;
  padding: 0 .13em;
  color: var(--claret);
}

.arc-word small {
  font: 700 .53rem/1 var(--sans);
  letter-spacing: .35em;
  display: block;
  margin-top: .42rem;
}

.counter-nav {
  display: flex;
  gap: clamp(1.2rem,4vw,4rem);
}

.counter-nav a,.find-door {
  font-weight: 700;
  text-decoration: none;
}

.counter-nav a:hover,.measure-actions a:hover,.store-end a:hover {
  color: var(--claret);
  text-decoration: underline;
}

.find-door {
  padding: .64rem 1rem;
  border: 1px solid var(--forest);
  display: inline-flex;
  gap: .85rem;
  align-items: center;
  white-space: nowrap;
}

.find-door:hover {
  color: var(--ivory);
  background: var(--forest);
}

.counter-opening {
  display: grid;
  grid-template-columns: minmax(290px,.9fr) 1fr;
  gap: clamp(2.3rem,6.4vw,7.55rem);
  align-items: center;
  padding: clamp(2.4rem,6.9vw,6.9rem) 0 clamp(3.2rem,7.5vw,7.9rem);
}

.adelaide-note {
  font: 700 .74rem/1.5 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--claret);
}

.counter-opening h1 {
  font-size: clamp(4.1rem,9.2vw,9rem);
  margin: .16em 0 .11em;
  line-height: .83;
}

.counter-opening h1 em {
  color: var(--claret);
  font-weight: 400;
}

.intro-text {
  max-width: 34ch;
  font-size: clamp(1.02rem,2vw,1.2rem);
  line-height: 1.43;
  margin: 1.22rem 0 1.75rem;
}

.frame-fitting-intro fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.frame-fitting-intro legend {
  font-weight: 700;
  font-size: .98rem;
  padding: 0;
  margin: 0 0 .5rem;
}

.measure-inputs {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: .57rem;
  max-width: 480px;
}

.measure-inputs label {
  border: 1px solid var(--rule);
  font-size: .87rem;
  padding: .48rem .62rem .5rem;
  display: block;
  min-width: 0;
  background: #fffdf6;
}

.measure-inputs label span {
  color: var(--near);
  font-size: .7rem;
}

.measure-inputs input {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  padding: 0;
  display: block;
  width: 100%;
  min-width: 0;
  font: 600 1.46rem/1.15 var(--measure);
  color: var(--forest);
  margin-top: .28rem;
  border-radius: 0;
}

.measure-inputs input::placeholder {
  color: #777b6a;
}

.measure-actions {
  display: flex;
  gap: .95rem;
  margin-top: 1rem;
  align-items: center;
}

.measure-actions button {
  background: var(--forest);
  color: var(--ivory);
  border: none;
  padding: .65rem .91rem;
  font-weight: 700;
  line-height: 1.2;
}

.measure-actions button:hover {
  background: var(--claret);
}

.measure-actions button:disabled,.pin-frame:disabled {
  opacity: .55;
  cursor: default;
}

.measure-actions a {
  font-size: .91rem;
}

.match-status {
  font-size: .87rem;
  color: var(--claret);
  margin-top: .32rem;
  min-height: 1.2em;
}

.limestone-stage {
  background: var(--peel);
  padding: .8rem;
  transform: rotate(-1.25deg);
  border: 1px solid var(--rule);
}

.limestone-stage > img {
  width: 100%;
  height: clamp(320px,34vw,525px);
  object-position: 43% center;
}

.limestone-stage figcaption {
  padding: .6rem .2rem .05rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font: .7rem/1.3 var(--measure);
  text-transform: uppercase;
  letter-spacing: .12em;
}

.limestone-stage figcaption span:last-child {
  color: var(--claret);
}

.shelf-strip {
  background: var(--soft);
  padding: clamp(2.9rem,6vw,6.2rem) 0;
  border-block: 1px solid #c4d0c0;
  scroll-margin-top: 1.1rem;
}

.section-register {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 1.7rem;
}

.section-register h2,.note-run h2,.workshop-board h2,.address-band h2 {
  font-size: clamp(2.7rem,6vw,6.2rem);
  margin-top: .14em;
}

.section-register>p {
  max-width: 27ch;
  color: var(--near);
  line-height: 1.36;
}

.shelf-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: clamp(.6rem,1.8vw,1.6rem);
}

.frame-cue {
  border-top: 1px solid #a0ada0;
  padding-top: .7rem;
  min-width: 0;
}

.frame-cue[data-closest=true] {
  border-color: var(--claret);
  border-top-width: 3px;
  padding-top: calc(.7rem - 2px);
}

.frame-cue img {
  aspect-ratio: 1.35;
  height: auto;
  background: #c3d0c7;
}

.frame-label {
  padding-top: .66rem;
}

.frame-label h3 {
  font-size: clamp(1.4rem,2.4vw,2.12rem);
}

.frame-label p {
  font-size: .86rem;
  color: var(--near);
}

.frame-dims {
  font: 700 .82rem/1.35 var(--measure);
  padding: .55rem 0 .78rem;
}

.pin-frame {
  padding: .43rem .73rem;
  border: 1px solid var(--forest);
  color: var(--forest);
  background: transparent;
  font-size: .84rem;
  font-weight: 700;
}

.pin-frame:hover,.pin-frame[aria-pressed=true] {
  background: var(--forest);
  color: var(--ivory);
}

.compare-counter {
  margin-top: 2.15rem;
  border: 1px solid #a0ada0;
  background: #f2f2e9;
  padding: 1.25rem;
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 1rem;
  align-items: start;
}

.compare-counter h3 {
  font-size: 1.8rem;
}

.compare-counter p {
  margin-top: .45rem;
  font-size: .9rem;
}

.compare-counter table {
  width: 100%;
  text-align: left;
  border-collapse: collapse;
  font-size: .9rem;
}

.compare-counter th,.compare-counter td {
  padding: .3rem;
  border-bottom: 1px solid #d0d8cd;
}

.note-run {
  margin-block: clamp(4rem,11vw,10rem);
  display: grid;
  grid-template-columns: minmax(280px,1fr) .85fr;
  gap: clamp(2rem,8vw,9rem);
  align-items: center;
}

.note-poster {
  display: flex;
  justify-content: space-evenly;
  gap: .15rem;
  border: 1px solid #b79990;
  background: #efd6c9;
  color: #69242c;
  padding: clamp(2rem,6.5vw,6.5rem) .35rem;
  font: 500 clamp(1.65rem,5.3vw,5.2rem)/1 var(--measure);
  letter-spacing: -.09em;
  position: relative;
  overflow: hidden;
}

.note-poster::after {
  content: "";
  position: absolute;
  bottom: 18%;
  left: 8%;
  right: 8%;
  height: 13px;
  opacity: .5;
  background: repeating-linear-gradient(90deg,var(--claret) 0 1px,transparent 1px 7px);
  transform: scaleX(var(--timing-width,1));
  transform-origin: left;
}

.note-poster span {
  transform: translateY(calc((1 - var(--timing-width,1)) * 24px));
  transition: transform .12s linear;
}

.note-poster span:nth-child(2) {
  opacity: .54;
}

.note-run p:not(.adelaide-note) {
  margin: .7rem 0 .86rem;
  max-width: 38ch;
}

.note-run a,.back-counter a {
  font-weight: 700;
  color: var(--claret);
}

.workshop-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(1.25rem,7.7vw,8rem);
  align-items: start;
  margin-bottom: clamp(3rem,7vw,7.4rem);
}

.workshop-heading {
  grid-row: span 3;
}

.workshop-board>a {
  border-bottom: 1px solid var(--rule);
  padding: 1.22rem 0;
  display: grid;
  grid-template-columns: 1.6rem 1fr 1rem;
  gap: .95rem;
  align-items: center;
  text-decoration: none;
}

.workshop-board>a:first-of-type {
  border-top: 1px solid var(--rule);
}

.workshop-board>a>span,.workshop-board>a>b {
  color: var(--claret);
}

.workshop-board>a h3 {
  font-size: clamp(1.4rem,3vw,2rem);
  margin-bottom: .23rem;
}

.workshop-board>a p {
  color: var(--near);
  line-height: 1.42;
}

.workshop-board>a:hover h3 {
  text-decoration: underline;
}

.address-band {
  padding: clamp(1.45rem,4.9vw,4.5rem);
  background: var(--peel);
  border: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: clamp(2.8rem,6vw,6rem);
}

.address-band h2 {
  font-size: clamp(2.1rem,5vw,4.6rem);
}

.address-band p:not(.adelaide-note) {
  margin-top: .55rem;
}

.store-end {
  background: #e8e0cd;
  border-top: 1px solid #c9c0aa;
  padding: 2.75rem 0;
}

.counter-foot {
  display: grid;
  grid-template-columns: 1.55fr 1fr 1fr;
  gap: 1.35rem;
}

.counter-foot p {
  margin: .8rem 0 .35rem;
}

.counter-foot nav a {
  display: block;
  margin-bottom: .33rem;
  text-decoration: none;
}

.shelf-detail {
  padding-block: clamp(2.6rem,7vw,6.75rem);
}

.detail-kicker {
  font: 700 .78rem var(--measure);
  color: var(--claret);
  margin-bottom: 1.1rem;
}

.shelf-detail header {
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--rule);
}

.shelf-detail h1 {
  font-size: clamp(3.4rem,8vw,7.4rem);
  max-width: 16ch;
  margin-bottom: .46em;
}

.shelf-detail header p {
  max-width: 52ch;
  font-size: 1.18rem;
}

.reading-side {
  display: grid;
  grid-template-columns: 1fr minmax(0,.9fr);
  gap: clamp(1rem,5vw,5.5rem);
  padding-top: 1.9rem;
}

.fitting-journal {
  max-width: 68ch;
}

.fitting-journal section {
  margin-bottom: 1.55rem;
}

.fitting-journal h2 {
  font-size: clamp(1.5rem,3.5vw,2.6rem);
  margin-bottom: .37rem;
}

.reading-side img {
  aspect-ratio: 1.35;
  height: auto;
}

.reading-side figcaption {
  margin-top: .48rem;
  color: var(--near);
  text-align: right;
}

.back-counter,.contact-action {
  margin-top: 1.35rem;
}

@media(max-width:860px) {
  .counter-opening {
    gap: 1.25rem;
  }
  .counter-nav {
    gap: 1rem;
  }
  .shelf-grid {
    grid-template-columns: 1fr 1fr;
  }
  .workshop-board {
    gap: 0 1.5rem;
  }
  .counter-topline {
    height: 74px;
  }
  .limestone-stage {
    transform: none;
  }
}

@media(max-width:660px) {
  .counter-opening,.note-run,.workshop-board,.reading-side {
    grid-template-columns: 1fr;
  }
  .limestone-stage > img {
    height: 290px;
  }
  .counter-opening h1 {
    font-size: clamp(4.6rem,16vw,6.5rem);
  }
  .counter-opening {
    gap: 1.2rem;
  }
  .adelaide-note {
    font-size: .72rem;
  }
  .workshop-heading {
    grid-row: auto;
    margin-bottom: 1rem;
  }
  .measure-actions {
    gap: .7rem;
    flex-wrap: wrap;
  }
  .compare-counter {
    grid-template-columns: 1fr;
  }
  .section-register,.address-band {
    align-items: flex-start;
    flex-direction: column;
  }
  .counter-foot {
    grid-template-columns: 1fr 1fr;
  }
  .counter-foot>div:first-child {
    grid-column: 1/-1;
  }
  .counter-topline {
    gap: .5rem;
  }
  .find-door {
    padding: .52rem .64rem;
    font-size: .9rem;
  }
  .counter-nav a {
    font-size: .89rem;
  }
  .counter-nav a:nth-child(2) {
    display: none;
  }
}

@media(max-width:385px) {
  .counter-nav {
    gap: .52rem;
  }
  .arc-word {
    font-size: 1.4rem;
  }
  .shelf-grid {
    gap: .55rem;
  }
  .counter-topline>.find-door span {
    display: none;
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
  .note-poster::after,.note-poster span {
    transform: none;
    transition: none;
  }
}

.sideslip {
  align-items: center;
}

.sideslip img {
  width: 44%;
  height: clamp(56px, 6.3vw, 89px);
  object-fit: cover;
}

.sideslip p {
  flex: 1;
  color: var(--claret);
}

.sideslip small {
  display: block;
  margin-top: .33rem;
  color: var(--near);
  font: inherit;
  letter-spacing: .06em;
}
