:root {
  color-scheme: light;
  --paper: #eee9df;
  --paper-edge: #f8f5ed;
  --ink: #161512;
  --muted: rgba(22, 21, 18, 0.58);
  --black: #030303;
  --white-ink: #eee9df;
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
}

body {
  font-family: "Courier Prime", "IBM Plex Mono", "Courier New", Courier, monospace;
  overflow: hidden;
}

button {
  font: inherit;
}

.site {
  position: relative;
  min-height: 100svh;
  width: 100vw;
  display: grid;
  place-items: center;
  padding: clamp(22px, 4.5vw, 68px);
  background:
    radial-gradient(circle at 48% 38%, rgba(255,255,255,0.72), rgba(255,255,255,0) 38%),
    var(--paper);
  isolation: isolate;
  cursor: pointer;
}

.photo-card {
  width: min(980px, 88vw);
  margin: 0;
  padding: clamp(16px, 2.5vw, 34px) clamp(16px, 2.5vw, 34px) clamp(26px, 3.2vw, 48px);
  background: var(--paper-edge);
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22), 0 2px 12px rgba(0,0,0,0.08);
}

.hero {
  display: block;
  width: 100%;
  max-height: min(62svh, 650px);
  object-fit: contain;
  object-position: center center;
  filter: grayscale(1) contrast(1.03) brightness(0.94);
  user-select: none;
  -webkit-user-drag: none;
}

figcaption {
  margin-top: clamp(16px, 2vw, 26px);
}

.plate {
  display: block;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
}

.brand {
  display: block;
  font: 400 clamp(14px, 1.25vw, 18px) / 1.1 "Courier Prime", "IBM Plex Mono", "Courier New", Courier, monospace;
  letter-spacing: 0.045em;
  text-transform: lowercase;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

.hint {
  display: block;
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: clamp(11px, 0.9vw, 13px);
  letter-spacing: 0.035em;
  opacity: 0.82;
  transition: opacity 300ms ease;
}

.plate:hover .hint,
.plate:focus-visible .hint {
  opacity: 1;
}

.plate:focus-visible {
  outline: 1px solid rgba(22, 21, 18, 0.5);
  outline-offset: 8px;
}

.show-text {
  position: fixed;
  z-index: 2;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(24px, 5vw, 72px);
  color: var(--white-ink);
  background: rgba(3, 3, 3, 0.74);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.copy {
  width: min(860px, 100%);
  padding: clamp(24px, 4vw, 50px);
  background: rgba(3, 3, 3, 0.72);
  border: 1px solid rgba(238, 233, 223, 0.18);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(5px);
}

.copy p {
  margin: 0;
  max-width: 68ch;
  font: 400 clamp(18px, 1.65vw, 23px) / 1.55 Georgia, "Times New Roman", serif;
  letter-spacing: 0.003em;
}

.copy p + p {
  margin-top: 1.08em;
}

.copy .contact {
  margin-top: 1.55rem;
  font-family: "Courier Prime", "IBM Plex Mono", "Courier New", Courier, monospace;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.3;
  letter-spacing: 0.035em;
}

.copy .contact a {
  color: var(--white-ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(238, 233, 223, 0.46);
}

.copy .contact a:hover,
.copy .contact a:focus {
  border-bottom-color: rgba(238, 233, 223, 0.9);
}

body.revealed .show-text {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

body.revealed .hint {
  opacity: 0;
}

@media (max-width: 700px) {
  body {
    overflow: auto;
  }

  .site {
    min-height: 100svh;
    width: 100%;
    padding: 6px;
    align-items: center;
  }

  .photo-card {
    width: calc(100vw - 12px);
    max-width: none;
    padding: 6px 6px 18px;
  }

  .hero {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
  }

  figcaption {
    margin-top: 18px;
  }

  .brand {
    font-size: 20px;
    letter-spacing: 0.035em;
  }

  .hint {
    margin-top: 0.7rem;
    font-size: 15px;
  }

  .show-text {
    align-items: start;
    padding: 18px 12px 42px;
    overflow: auto;
  }

  .copy {
    padding: 20px;
  }

  .copy p {
    font-size: 20px;
    line-height: 1.42;
  }

  .copy .contact {
    font-size: 17px;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 390px) {
  .copy p {
    font-size: 19px;
  }
}
