:root {
  color-scheme: dark;
  --paper: #161a17;
  --text: #f5f2e7;
  --acid: #e6f990;
  font: 16px/1.5 "Segoe UI", Arial, sans-serif;
  background: var(--paper);
  color: var(--text);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

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

a:focus-visible, input:focus-visible, #scene:focus-visible {
  outline: 3px solid #fe9772;
  outline-offset: 3px;
}

.colophon, main, footer {
  width: min(94%, 89rem);
  margin: auto;
}

.colophon {
  min-height: 4.8rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  border-bottom: 1px solid #747a67;
}

.colophon p, .kicker, figcaption, footer, .directions {
  font: .85rem/1.4 "Courier New", monospace;
}

.colophon p {
  color: #b7c0ad;
}

.colophon > a:last-child {
  margin-left: auto;
}

.wordmark {
  font: bold 2.8rem/1 Georgia,serif;
  font-style: italic;
  letter-spacing: -.08em;
  text-decoration: none;
}

.wordmark span, .colophon > a:last-child, .margin-note a {
  color: var(--acid);
}

.optical {
  display: grid;
  grid-template-columns: minmax(0, 3.9fr) minmax(13rem, 1fr);
  gap: 1.6rem 2.5rem;
  padding: 2rem 0 3rem;
  align-items: start;
}

.observation {
  grid-column: 1/-1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
}

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

h1 {
  font: 500 clamp(3rem, 6.7vw, 7.3rem)/.97 Georgia,serif;
  letter-spacing: -.065em;
}

.observation p {
  max-width: 24rem;
  color: #d3d9c6;
}

.specimen {
  grid-row: 2/5;
}

.glassbox {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  background: #294836;
  aspect-ratio: 1.64;
  border: 1px solid #7e8571;
}

.still {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.glass {
  display:block;
  pointer-events:none;
  position:absolute;
  border:2px solid #f4f4ce;
  border-radius:50%;
  overflow:hidden;
  width:clamp(75px, 13vw, 198px);
  aspect-ratio:1;
  transform:translate(-50%,-50%);
  box-shadow:0 0 0 3px #1e271caa,0 6px 18px #13191380;
}

.glass img {
  position:absolute;
  max-width:none;
  object-fit:cover;
}

.glassbox[tabindex] {
  cursor:crosshair;
}

[hidden] {
  display:none !important;
}

figcaption {
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  color:#b7c0ad;
  gap:.3rem;
  padding:.45rem 0;
}

.instruments {
  padding: .8rem 1rem 1.15rem;
  border: 1px solid #7e8571;
  border-top: 5px solid var(--acid);
}

.dial {
  display:flex;
  gap:.7rem;
  align-items:center;
  font-size:1.45rem;
  margin-bottom:1.2rem;
}

.optic-icon {
  display:inline-block;
  width:1.8rem;
  aspect-ratio:1;
  border:.32rem double var(--acid);
  border-radius:50%;
}

.instruments label {
  display:flex;
  justify-content:space-between;
}

.instruments input {
  width:100%;
  margin:.7rem 0;
  accent-color:var(--acid);
  min-height:25px;
}

.directions {
  color:#b9c3aa;
}

.margin-note h2,.contactprint h2 {
  font: 500 clamp(1.45rem,2.4vw,2.3rem)/1.08 Georgia,serif;
  margin-bottom:.75rem;
}

.margin-note a {
  display:inline-block;
  margin-top:.8rem;
}

footer {
  border-top:1px solid #69725f;
  display:flex;
  justify-content:space-between;
  padding:1.2rem 0 2.7rem;
  color:#c3cdb6;
}

.contactprint {
  display:grid;
  grid-template-columns:1fr 1.55fr;
  gap:clamp(1.5rem,5vw,6rem);
  padding:3rem 0;
}

.contactprint figure {
  position:sticky;
  align-self:start;
  top:1rem;
}

.contactprint img {
  width:100%;
  aspect-ratio:.86;
  object-fit:cover;
}

.contactprint article {
  max-width:55rem;
}

.contactprint h1 {
  margin:.6rem 0 1.4rem;
}

.contactprint h2 {
  margin:1.7rem 0 .7rem;
}

.contactprint article p + p {
  margin-top:.85rem;
}

.contactprint a, .kicker {
  color:var(--acid);
}

table {
  width:100%;
  text-align:left;
  border-collapse:collapse;
}

th, td {
  vertical-align:top;
  border-block-end: 1px solid #838a7a;
  padding:.55rem .55rem .55rem 0;
}

thead {
  color:var(--acid);
}

@media(max-width:760px) {
  .colophon, main, footer {
    width:calc(100% - 1.6rem);
  }
  .colophon {
    gap:.6rem;
    min-height:3.9rem;
  }
  .colophon p {
    display:none;
  }
  .colophon > a:last-child {
    font-size:.88rem;
  }
  .optical {
    grid-template-columns:minmax(0,1fr);
    gap:1rem;
    padding-top:1.3rem;
  }
  .observation {
    display:block;
  }
  .observation p {
    margin-top:.65rem;
  }
  .specimen {
    grid-row:auto;
  }
  .instruments {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:.25rem .6rem;
  }
  .dial {
    grid-row:span 2;
    margin:0;
  }
  .instruments input {
    margin:.2rem 0;
  }
  .directions {
    grid-column:1/-1;
  }
  .contactprint {
    display:flex;
    flex-direction:column;
    padding:1.2rem 0;
  }
  .contactprint figure {
    position:static;
    width:100%;
  }
  .contactprint img {
    aspect-ratio:2.5;
  }
}
