:root {
  color-scheme: light;
  --paper: #fbfaf8;
  --ink: #111211;
  --muted: #565a59;
  --rule: #797d79;
  --accent: #e5411f;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
.sheet {
  width: 92.4%;
  max-width: 96rem;
  margin: 0 auto;
  padding: clamp(1.25rem, 4.2svh, 3rem) 0 clamp(1.5rem, 7.3svh, 5rem);
}
.masthead {
  padding: 0 1.1% clamp(1.1rem, 2.9svh, 2rem);
  border-bottom: 1px solid var(--rule);
}
.domain {
  display: inline-flex;
  align-items: center;
  gap: .65em;
  font: 500 clamp(1rem, 1.75vw, 1.75rem)/1.15 ui-monospace, Consolas, monospace;
  letter-spacing: -.025em;
}
.domain::before {
  content: "";
  width: .33em;
  height: 1.08em;
  background: var(--accent);
}
main {
  display: grid;
  grid-template-columns: minmax(0, 1.11fr) minmax(0, 1fr);
  align-items: center;
  gap: 6%;
  padding: clamp(2rem, 6.2svh, 5rem) 3.75% clamp(2rem, 5.8svh, 5rem);
  border-bottom: 1px solid var(--rule);
}
h1 {
  margin: 0;
  font-size: clamp(3.35rem, min(8.1vw, 13svh), 8.7rem);
  font-weight: 650;
  line-height: .98;
  letter-spacing: -.064em;
}
.lead {
  margin: 1.1em 0 0;
  color: var(--muted);
  font-size: clamp(1.12rem, 2.15vw, 2.125rem);
  line-height: 1.35;
  letter-spacing: -.026em;
}
.check {
  position: relative;
  margin-top: clamp(1.75rem, 4.1vw, 3.5rem);
}
button {
  display: inline-flex;
  align-items: center;
  gap: clamp(.7rem, 1.85vw, 1.9rem);
  border: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  cursor: pointer;
}
[hidden] { display: none !important; }
.button-label {
  display: flex;
  align-items: center;
  min-height: 2.875rem;
  padding: .64em 1.12em;
  color: white;
  background: var(--ink);
  font-size: clamp(1rem, 1.68vw, 1.63rem);
  font-weight: 500;
  line-height: 1.25;
  transition: background-color 140ms ease;
}
button svg {
  width: clamp(1.4rem, 2.8vw, 2.75rem);
  aspect-ratio: 1;
  flex: none;
}
button:hover .button-label { background: #353a38; }
button:focus-visible { outline: 3px solid #ad391e; outline-offset: 6px; }
button:disabled { cursor: progress; }
button:disabled svg { animation: turn 800ms linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
#result {
  position: absolute;
  top: 100%;
  margin: .75rem 0 0;
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.45;
}
.landscape {
  width: 100%;
  max-height: 70.5svh;
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
}
.landscape img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 44rem) {
  .sheet { width: calc(100% - 2.5rem); padding-top: 1.6rem; }
  .masthead { padding: 0 0 1.2rem; }
  main { display: flex; flex-direction: column; align-items: stretch; gap: 2.25rem; padding: 3.4rem 0 1.5rem; }
  h1 { font-size: clamp(3.6rem, 13.2vw, 5.8rem); }
  .lead { margin-top: 1.4rem; }
  .check { margin-top: 1.6rem; }
  #result { position: static; }
  #result:empty { display: none; }
  .landscape { max-height: 31rem; aspect-ratio: 1.35; }
  .landscape img { object-position: center 53%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
