/* humanly.ooo, the home. One idea: the statement in the reader's own verbs, "human." as the last word in the ring's
   fourth hue. The page sits on one central axis, the path's: the statement, then three squares, then the path left
   open below them. "Create Humanly." is the signature beside the ring. Each square carries a quarter of the ring in
   its own hue (teal Desk, rust Magazine, gold Workshops). The squares stay a row of three at every width and never
   fill the frame (Patrick 11/16: "the squares ... don't take up the entire space and the path is still visible").
   Type per the 10/28 rule: nothing under 13px. */
:root {
  --ink: #f3ede2; --quiet: rgba(243, 237, 226, 0.82); --glass: rgba(14, 13, 10, 0.6); --edge: rgba(243, 237, 226, 0.22);
  --night: #12110e; --teal: #25ae98; --rust: #c0652f; --gold: #c99a3a; --green: #9add86;
  --serif: "Iowan Old Style", "Palatino Linotype", Charter, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Inter, sans-serif;
  --gut: clamp(16px, 4vw, 48px);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--night); color: var(--ink); }
body { font: 20px/1.6 var(--sans); }

/* The path runs up the middle of the photograph; it stays centred at every width, and the bottom of the frame is
   left lighter so the path shows below the squares. */
.ground { min-height: 100vh; min-height: 100svh; display: flex;
  background:
    linear-gradient(180deg, rgba(8, 7, 5, 0.7) 0%, rgba(8, 7, 5, 0.5) 45%, rgba(8, 7, 5, 0.18) 78%, rgba(8, 7, 5, 0.35) 100%),
    url("/assets/mock-ground.jpg") 50% 62% / cover no-repeat; }
.frame { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 24px var(--gut) clamp(96px, 20vh, 220px);
  display: flex; flex-direction: column; align-items: center; text-align: center; }

.mast { align-self: flex-start; display: flex; align-items: center; gap: 12px; }
.ring { width: 32px; height: 32px; display: block; }
.sig { font: 500 15px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; }

.statement { font: 400 clamp(calc(38px + 0.25rem), calc(8vw + 0.25rem), calc(100px + 0.25rem))/1.02 var(--serif); letter-spacing: -0.015em; margin: clamp(48px, 11vh, 120px) 0 0;
  max-width: 11em; text-wrap: balance; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.4); }
.statement em { font-style: italic; color: var(--green); }

.doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 2vw, 24px);
  width: min(100%, 760px); margin-top: clamp(36px, 7vh, 80px); text-align: left; }
.door { position: relative; overflow: hidden; aspect-ratio: 1 / 1; display: flex; flex-direction: column; justify-content: flex-end;
  gap: 6px; padding: clamp(12px, 2vw, 24px); text-decoration: none; color: var(--ink);
  background: var(--glass); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--edge);
  transition: transform 0.2s ease, border-color 0.2s ease; }
/* A quarter of the ring, centred on the square's top-right corner, clear of the words below. */
.door::before { content: ""; position: absolute; width: 96%; aspect-ratio: 1; border-radius: 50%; top: -48%; right: -48%;
  border: clamp(9px, 1.7vw, 20px) solid var(--hue); transition: transform 0.35s ease; }
.door:hover, .door:focus-visible { transform: translateY(-3px); border-color: rgba(243, 237, 226, 0.55); }
.door:hover::before, .door:focus-visible::before { transform: rotate(-12deg) scale(1.04); }
.door:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.d-desk { --hue: var(--teal); }
.d-mag { --hue: var(--rust); }
.d-work { --hue: var(--gold); }
.door .name { position: relative; font: 400 clamp(18px, 2.6vw, 32px)/1.1 var(--serif); }
.door .go { position: relative; font-size: 15px; color: var(--quiet); }
/* Desk's own address under its name (Patrick 11/16): Desk is the product, dsk.ooo its address. */
.door .addr { position: relative; font: 500 15px/1 var(--sans); letter-spacing: 0.08em; color: var(--teal); margin-top: -2px; }
.under { margin: 12px 2px 0; font-size: 15px; line-height: 1.5; color: var(--quiet); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); }

footer { background: var(--night); border-top: 1px solid var(--edge); padding: 28px 16px 36px; text-align: center; font-size: 15px; color: var(--quiet); }
footer p { margin: 4px 0; }
footer a { color: inherit; text-underline-offset: 3px; }
footer .quiet { margin-top: 10px; }

/* Narrow: a row of three squares at 108px was too small (Patrick 11/16). The squares keep a real size instead,
   about two-thirds of the screen, in one row you swipe, with the next square showing at the edge; the row stays one
   square tall, so the path stays open below. */
@media (max-width: 680px) {
  .doors { display: flex; gap: 12px; width: calc(100% + 2 * var(--gut)); margin-left: calc(-1 * var(--gut));
    margin-right: calc(-1 * var(--gut)); padding: 0 var(--gut) 4px; overflow-x: auto; scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--gut); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .doors::-webkit-scrollbar { display: none; }
  .door-wrap { flex: 0 0 min(68vw, 300px); scroll-snap-align: start; }
  .door .name { font-size: 26px; }
  .door::before { border-width: 16px; }
}
@media (prefers-reduced-motion: reduce) { .door, .door::before { transition: none; } }
