:root {
  color-scheme: light;
  --paper: #f3f1ed;
  --ink: #2c2926;
  --muted: #645e57;
  --line: #c7c2b9;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 100%;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; }
.mast, .spread { width: min(70rem, 90%); margin-inline: auto; }

.mast {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .4rem 1rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--ink);
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -.065em;
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  line-height: 1;
}
.status, .sample-label {
  font-size: .8125rem;
  line-height: 1.45;
  color: var(--muted);
}

.spread {
  --reserved-height: 11rem;
  --card-height: max(10rem, calc(100vh - var(--reserved-height)));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  align-items: start;
  column-gap: clamp(2rem, 6vw, 6rem);
  row-gap: clamp(2.4rem, 5vw, 4.6rem);
  padding-block: clamp(1.25rem, 2.8vw, 2.4rem) 3.5rem;
}
@supports (height: 100svh) {
  .spread { --card-height: max(10rem, calc(100svh - var(--reserved-height))); }
}

.intro { grid-area: 1 / 1; padding-top: 2.75rem; }
h1 {
  margin: 0;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(2.1rem, 3.9vw, 3.8rem);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: 1.3;
}
.sample-label { margin: .6rem 0 0; }

.viewer {
  grid-area: 1 / 2 / 3 / 3;
  justify-self: center;
  width: min(100%, 25rem, max(18rem, calc(var(--card-height) * .5625)));
  min-inline-size: 0;
  border: 0;
  margin: 0;
  padding: 0;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.controls, .switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.controls {
  justify-content: space-between;
  column-gap: .75rem;
  margin-bottom: .375rem;
  color: var(--muted);
  font-size: .875rem;
}
.switch { gap: 0 1rem; }
.switch label, .original {
  align-items: center;
  min-height: max(44px, 2.75rem);
  line-height: 1.4;
}
.switch label {
  display: inline-flex;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}
.original {
  display: none;
  color: inherit;
  text-underline-offset: .23em;
}
#four:checked ~ .controls label[for="four"],
#one:checked ~ .controls label[for="one"] {
  color: var(--ink);
  font-weight: 600;
  border-color: currentColor;
}
#four:focus-visible ~ .controls label[for="four"],
#one:focus-visible ~ .controls label[for="one"],
.original:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
#four:checked ~ .controls .original.four,
#one:checked ~ .controls .original.one { display: inline-flex; }

.prints figure { display: none; margin: 0; }
#four:checked ~ .prints .four,
#one:checked ~ .prints .one { display: block; }
.prints img {
  display: block;
  width: min(100%, calc(var(--card-height) * .5625));
  height: auto;
  margin-inline: auto;
}

.notes { grid-area: 2 / 1; max-width: 29rem; }
h2 { margin: 0 0 .85rem; font-size: 1.0625rem; font-weight: 600; }
dl, dd { margin: 0; }
dl div {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: .85rem;
  border-top: 1px solid var(--line);
  line-height: 1.75;
  line-break: strict;
}
dt { font-weight: 500; }
dd { color: var(--muted); }

@media (max-width: 48rem) {
  .mast { padding-block: .8rem; }
  .spread {
    --reserved-height: 10.5rem;
    grid-template: auto auto auto / minmax(0, 1fr);
    justify-items: center;
    gap: .25rem;
    padding-block: .9rem 2.5rem;
  }
  .intro, .viewer, .notes { grid-area: auto; }
  .intro, .viewer { width: min(100%, 26rem, max(18rem, calc(var(--card-height) * .5625))); }
  .intro {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .15rem .7rem;
    padding: 0;
  }
  h1 {
    font-family: inherit;
    font-size: clamp(1.4rem, 5.8vw, 1.8rem);
    font-weight: 600;
    letter-spacing: -.035em;
  }
  .sample-label { margin: 0; }
  .controls { margin-bottom: .25rem; }
  .notes { width: min(100%, 26rem); margin-top: 2.25rem; }
  dl div { grid-template-columns: minmax(6.6rem, 28%) minmax(0, 1fr); gap: .8rem; }
}
@media (max-width: 21rem) {
  .mast, .spread { width: 92%; }
  .mast { gap: .3rem .55rem; }
  dl div { display: block; }
  dd { margin-top: .25rem; }
}
