:root {
  color-scheme: light;
  --paper: #f2eee5;
  --surface: #ebe6dc;
  --ink: #252e28;
  --muted: #596159;
  --line: #c9c8bb;
  --green: #215a45;
  --night: #151d1b;
  --serif: Georgia,"Times New Roman","Noto Serif CJK KR",Batang,serif;
  --mono: ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-family: system-ui,-apple-system,BlinkMacSystemFont,"Malgun Gothic",sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

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

body {
  margin: 0;
}

button,input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,a:focus-visible,input:focus-visible {
  outline: 2px solid #388898;
  outline-offset: 3px;
}

.site-header,main,footer {
  width: min(1272px,calc(100% - 96px));
  margin-inline: auto;
}

.site-header {
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.site-header a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  font-size: .79rem;
}

.site-header a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.back span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: .4rem;
  width: 20px;
  height: 20px;
  border: 1px solid #77827a;
  border-radius: 50%;
  font-size: .7rem;
}

.collection {
  font: 600 .7rem var(--mono);
  letter-spacing: .24em;
  color: #45524a;
}

.method-link span {
  margin-left: .25rem;
  font-size: .75rem;
}

.intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding: 43px 0 28px;
}

.intro h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem,6.3vw,5.6rem);
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: -.085em;
  margin: 0;
}

.intro h1 span {
  color: #93734c;
  margin-left: .025em;
}

.intro p {
  color: var(--muted);
  font-size: clamp(.88rem,1.4vw,1.02rem);
  margin: 14px 0 0;
}

.cover-index {
  text-align: right;
  display: grid;
  gap: 5px;
  padding-bottom: 2px;
}

.cover-index span {
  font: 500 .62rem var(--mono);
  letter-spacing: .12em;
  color: #65685d;
}

.cover-index strong {
  font: 400 2rem var(--serif);
  line-height: 1;
  color: #6b7064;
}

.exhibit {
  display: grid;
  grid-template-columns: minmax(0,1.9fr) minmax(302px,1fr);
  border: 1px solid #b8b9aa;
  min-width: 0;
}

.visual {
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: 510px;
  margin: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 48% 44%,#35433a 0,#232e28 38%,#161f1c 71%,#101916 100%);
  color: #d4e4d6;
}

.visual::before {
  content: "";
  position: absolute;
  inset: 15px;
  border: 1px solid #adc2aa32;
  pointer-events: none;
  z-index: 1;
}

.visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .65;
  background: repeating-linear-gradient(0deg,transparent 0 29px,#daeed409 30px 31px),repeating-linear-gradient(90deg,transparent 0 29px,#daeed409 30px 31px);
  mask-image: radial-gradient(ellipse,#000,#0009 55%,#0002 100%);
  pointer-events: none;
}

#specimen {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: contain;
  max-width: 720px;
  margin: auto;
}

.visual-top,.visual-bottom {
  position: absolute;
  z-index: 2;
  left: 33px;
  right: 33px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.visual-top {
  top: 31px;
}

.visual-bottom {
  bottom: 37px;
  font: 500 .65rem var(--mono);
  letter-spacing: .13em;
  color: #cadacb;
}

#plate-number {
  font: 400 1.4rem var(--serif);
  letter-spacing: .045em;
  margin-right: .45rem;
}

.caption-label {
  font: 500 .64rem var(--mono);
  letter-spacing: .13em;
  color: #aebfb1;
}

.views {
  display: flex;
  border: 1px solid #9db4a275;
  padding: 2px;
  border-radius: 2px;
  background: #172421a6;
}

.views button {
  border: 0;
  background: none;
  color: #d6e3d6;
  padding: .31rem .68rem;
  font-size: .71rem;
  border-radius: 1px;
}

.views button[aria-pressed="true"] {
  background: #ccddc7;
  color: #142922;
}

.scale {
  display: grid;
  justify-items: center;
  gap: 4px;
  line-height: 1;
  font-size: .57rem;
}

.scale i {
  height: 5px;
  width: 42px;
  border: solid #c2d0be;
  border-width: 0 1px 1px;
}

.instrument {
  padding: 30px clamp(21px,3vw,43px) 26px;
  background: #f6f3ec;
}

.taxon {
  min-height: 154px;
}

.meta {
  display: flex;
  gap: .7rem;
  align-items: center;
  color: var(--green);
  font: 600 .69rem var(--mono);
  letter-spacing: .035em;
  flex-wrap: wrap;
}

#seed-id {
  min-width: 0;
  overflow-wrap: anywhere;
}

#specimen-name {
  font-family: var(--serif);
  font-size: clamp(1.8rem,3.2vw,3rem);
  font-weight: 500;
  letter-spacing: -.075em;
  line-height: 1.14;
  margin: 10px 0;
}

#specimen-description,#stage-note {
  color: #505a50;
  font-size: .88rem;
  margin: 0;
  line-height: 1.63;
}

.timeline {
  border-top: 1px solid var(--line);
  padding: 17px 0;
}

.time-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .86rem;
}

#stage-progress {
  color: #51674f;
  font: 600 .72rem var(--mono);
}

#age {
  appearance: none;
  width: 100%;
  border-radius: 0;
  height: 6px;
  margin: 15px 0 11px;
  background: linear-gradient(90deg,var(--green) 0 var(--position,100%),#dbddd1 var(--position,100%) 100%);
  cursor: pointer;
}

#age::-webkit-slider-thumb {
  appearance: none;
  width: 15px;
  height: 15px;
  border: 2px solid #f6f3ec;
  background: var(--green);
  box-shadow: 0 0 0 1px var(--green);
  border-radius: 50%;
}

#age::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: 2px solid #f6f3ec;
  background: var(--green);
  box-shadow: 0 0 0 1px var(--green);
  border-radius: 50%;
}

.stage-ticks {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  padding: 0 0 11px;
}

.stage-ticks button {
  font-size: .71rem;
  font-weight: 550;
  color: #5a6559;
  border: 0;
  background: none;
  padding: 3px 0;
}

.stage-ticks button[aria-current="step"] {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 4px;
}

#stage-note {
  font-size: .82rem;
  min-height: 2.7em;
  margin-bottom: 12px;
}

.replay {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 13px;
  border: 1px solid #264e3e;
  background: #24533f;
  color: #f3f4e9;
  font-size: .81rem;
  font-weight: 650;
}

.replay:hover {
  background: #316b50;
}

.replay span:first-child {
  font-size: 1.1em;
}

.seed-form {
  border-top: 1px solid var(--line);
  padding-top: 15px;
}

.seed-form label {
  font-size: .75rem;
  font-weight: 700;
}

.seed-controls {
  display: flex;
  gap: 5px;
  margin-top: 6px;
}

.seed-controls input {
  min-width: 0;
  flex: 1;
  width: 100%;
  font: 500 .76rem var(--mono);
  padding: .5rem .58rem;
  background: #efede4;
  border: 1px solid #b8c0b1;
  color: var(--ink);
  border-radius: 0;
}

.seed-controls button {
  color: #33463a;
  background: transparent;
  border: 1px solid #a9b5a8;
  padding: .42rem .58rem;
  font-size: .68rem;
  white-space: nowrap;
}

.seed-controls button:hover {
  background: #dde6d9;
}

.shelf {
  margin: 31px 0 43px;
}

.shelf-heading {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 12px;
}

.shelf-heading h2,.method h2 {
  font-family: var(--serif);
  font-size: 1.53rem;
  font-weight: 500;
  letter-spacing: -.06em;
  margin: 0;
}

.shelf-heading p {
  color: var(--muted);
  font-size: .79rem;
  margin: 0;
}

.plates {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 12px;
}

.plate-choice {
  display: flex;
  text-align: left;
  color: var(--ink);
  align-items: center;
  gap: 12px;
  min-width: 0;
  width: 100%;
  border: 1px solid #c5c7b9;
  padding: 6px;
  background: #f6f3ec;
}

.plate-choice:hover {
  border-color: #608274;
}

.plate-choice[aria-pressed="true"] {
  border-color: #42705b;
  background: #e5eee2;
  box-shadow: inset 0 0 0 1px #42705b;
}

.plate-choice canvas {
  width: 65px;
  height: 62px;
  object-fit: contain;
  background: #202e27;
}

.plate-choice small,.plate-choice strong {
  display: block;
  overflow-wrap: anywhere;
}

.plate-choice small {
  color: #5a675b;
  font: 600 .6rem var(--mono);
  margin-bottom: 4px;
}

.plate-choice strong {
  font-size: .84rem;
  font-weight: 650;
}

.method {
  border-top: 1px solid var(--line);
  padding: 26px 0 44px;
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr 2fr;
}

.method p,.method dl {
  color: var(--muted);
  font-size: .87rem;
  line-height: 1.7;
  margin: 0;
}

.method dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 15px;
  margin: 12px 0 0;
}

.method dt {
  color: var(--green);
  font-weight: 650;
}

.method dd {
  margin: 0;
}

footer {
  border-top: 1px solid var(--line);
  padding: 19px 0 30px;
  font-size: .75rem;
  color: var(--muted);
}

footer span {
  margin-inline: .35rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media(max-width:1050px) {
  .site-header,main,footer {
    width: calc(100% - 56px);
  }
  .instrument {
    padding-inline: 24px;
  }
}

@media(max-width:790px) {
  .site-header,main,footer {
    width: calc(100% - 38px);
  }
  .site-header {
    height: 57px;
  }
  .intro {
    padding-top: 30px;
  }
  .visual {
    min-height: 430px;
  }
  .exhibit {
    grid-template-columns: minmax(0,1fr);
  }
  .instrument {
    padding: 22px;
  }
  .taxon {
    min-height: auto;
    margin-bottom: 18px;
  }
  .shelf {
    margin-top: 24px;
  }
}

@media(max-width:480px) {
  .site-header,main,footer {
    width: calc(100% - 28px);
  }
  .site-header a {
    font-size: .7rem;
  }
  .collection {
    font-size: .59rem;
    letter-spacing: .12em;
  }
  .cover-index {
    display: none;
  }
  .intro {
    padding: 25px 0 20px;
  }
  .intro p {
    margin-top: 10px;
  }
  .visual {
    min-height: 344px;
  }
  .visual::before {
    inset: 9px;
  }
  .visual-top,.visual-bottom {
    left: 19px;
    right: 19px;
  }
  .visual-top {
    top: 19px;
  }
  .visual-bottom {
    bottom: 20px;
    font-size: .54rem;
  }
  .instrument {
    padding: 18px;
  }
  .shelf-heading {
    gap: 9px;
  }
  .shelf-heading p {
    font-size: .73rem;
  }
  .plates {
    gap: 6px;
  }
  .plate-choice {
    flex-direction: column;
    text-align: center;
    gap: 7px;
    padding: 5px 2px 8px;
  }
  .plate-choice canvas {
    width: 62px;
    height: 50px;
  }
  .plate-choice strong {
    font-size: .69rem;
  }
  .method {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
