/* Fonts are the same files as sonyasupposedly.com's theme: Format 1452 is
   the zines display face, Chubbo the body, Space Grotesk the labels. */
@font-face { font-family: "Format 1452"; font-weight: 100 900; font-display: swap; src: url(/fonts/format-1452.woff2) format("woff2"); }
@font-face { font-family: "Chubbo"; font-weight: 200 800; font-display: swap; src: url(/fonts/chubbo-variable.woff2) format("woff2"); }
@font-face { font-family: "Chubbo"; font-style: italic; font-weight: 200 800; font-display: swap; src: url(/fonts/chubbo-variable-italic.woff2) format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 300 700; font-display: swap; src: url(/fonts/space-grotesk-variable.woff2) format("woff2"); }

/* A single goldenrod ink, riso-style, printed on a garden wall in
   afternoon sun: chartreuse where the light hits, dappled leaf shadow,
   glittering dust in the air. */
:root {
  --f-display: "Format 1452", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Chubbo", "Iowan Old Style", Charter, Georgia, serif;
  --f-label: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;

  --paper: #d9df9f;
  --ink: #1c2412;
  --ink-2: #39432a;
  --ink-3: #56603f;
  --gold: #d9a21b;      /* goldenrod: frames, rules, the off-register plate */
  --gold-deep: #7a5200; /* the same ink, dark enough for small text */
  --shade: 52 66 24;
  --copper: 176 84 36;
  --rule: rgb(28 36 18 / .3);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 65% 50% at 8% 0%, rgb(255 250 205 / .95), transparent 70%),
    radial-gradient(ellipse 45% 40% at 85% 12%, rgb(255 236 170 / .6), transparent 70%),
    linear-gradient(172deg, #e6e9b2 0%, var(--paper) 40%, #ccd48c 75%, #e3d9b4 100%);
  background-attachment: fixed;
  color: var(--ink);
  font: 400 18px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
/* Leaf shadow falling across the wall, blurred so it reads as dappling
   rather than shapes. */
body::before {
  inset: -120px;
  background:
    radial-gradient(ellipse 22% 14% at 78% 30%, rgb(var(--shade) / .30), transparent 70%),
    radial-gradient(ellipse 12% 20% at 92% 52%, rgb(var(--shade) / .26), transparent 70%),
    radial-gradient(ellipse 30% 12% at 70% 78%, rgb(var(--shade) / .22), transparent 70%),
    radial-gradient(ellipse 14% 10% at 22% 62%, rgb(var(--shade) / .18), transparent 70%),
    radial-gradient(ellipse 26% 16% at 4% 92%, rgb(var(--shade) / .24), transparent 70%);
  filter: blur(48px);
}
/* Dust caught in the sun: copper and white specks, tiled at mismatched
   sizes so the repeat never lines up into a visible grid. */
body::after {
  background-image:
    radial-gradient(1.5px 1.5px at 23px 41px, rgb(255 255 255 / .95), transparent),
    radial-gradient(1px 1px at 151px 97px, rgb(var(--copper) / .8), transparent),
    radial-gradient(2px 2px at 88px 203px, rgb(255 253 235), transparent),
    radial-gradient(1px 1px at 211px 160px, rgb(var(--copper) / .7), transparent),
    radial-gradient(1px 1px at 47px 260px, rgb(var(--copper) / .9), transparent),
    radial-gradient(1.5px 1.5px at 190px 25px, rgb(255 255 255 / .9), transparent),
    radial-gradient(1px 1px at 120px 150px, rgb(217 162 27 / .9), transparent);
  background-size: 241px 277px;
  opacity: .8;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 64rem;
  margin: 0 auto;
  padding: clamp(56px, 12vh, 120px) 16px 48px;
}

/* ---- masthead ---------------------------------------------------------- */

/* Riso mis-registration: the gold plate printed a few pixels off. */
h1 {
  margin: 0;
  font: 400 clamp(52px, 11vw, 112px)/.92 var(--f-display);
  letter-spacing: -.02em;
  color: var(--ink);
  text-shadow: .045em .035em 0 var(--gold);
}
h1 span { display: block; }

/* The main site's hare, leaping at the title: printed in two plates like
   the h1, with the gold one off-register and overprinting the ink. */
/* Its own column beside the title, so the two never overlap; it shrinks
   before it would touch the "y". */
.masthead {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 24px;
  align-items: start;
}
.masthead h1 { grid-column: 1; grid-row: 1; }
.masthead .tagline { grid-column: 1 / -1; }
.hare {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  /* room on the right for the gold plate's offset */
  margin: -6px 14px 0 0;
  width: clamp(150px, 27vw, 300px);
  max-width: 100%;
  aspect-ratio: 720 / 591;
  transform: rotate(-9deg);
  pointer-events: none;
}
.hare::before,
.hare::after {
  content: "";
  position: absolute;
  inset: 0;
  -webkit-mask: url(/images/hare.png) center / contain no-repeat;
  mask: url(/images/hare.png) center / contain no-repeat;
}
.hare::before { background: var(--gold); transform: translate(3.5%, 4%); }
.hare::after { background: var(--ink); opacity: .9; mix-blend-mode: multiply; }
@media (max-width: 640px) {
  /* phones: no room beside the title, so it hops up above it */
  .hare { position: absolute; top: -58px; right: 0; margin: 0; width: 104px; }
}
h1 span + span { padding-left: .9em; }

.tagline {
  max-width: 30ch;
  margin: 28px 0 0;
  font-size: clamp(19px, 2.4vw, 22px);
  font-style: italic;
  line-height: 1.45;
  color: var(--ink-2);
}
.tagline a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: .2em;
}
.tagline a:hover { color: var(--gold-deep); }

.rule {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: clamp(48px, 9vw, 80px) 0 32px;
  font: 500 12px/1 var(--f-label);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.rule::after {
  content: "";
  flex: 1;
  border-top: 1.5px dashed var(--rule);
}

/* ---- projects: pasted-in zine pages ------------------------------------ */

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: clamp(40px, 6vw, 56px) clamp(28px, 5vw, 48px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.project a {
  display: block;
  color: inherit;
  text-decoration: none;
  transform: rotate(var(--tilt, -1.2deg));
  transition: transform .25s ease;
}
.project:nth-child(2n) a { --tilt: 1.4deg; --plate: #b07d0c; }
.project a:hover,
.project a:focus-visible { transform: rotate(0) translateY(-4px); }
.project a:focus-visible { outline: none; }
.project a:focus-visible .thumb::before { border-style: solid; border-width: 3px; }

.thumb {
  position: relative;
  display: block;
  margin: 0 14px 0 0;
}
/* the second ink's frame, printed off-register */
.thumb::before {
  content: "";
  position: absolute;
  inset: 12px -12px -12px 12px;
  border: 2px solid var(--plate, var(--gold));
  border-radius: 2px;
  opacity: .85;
  transition: inset .25s ease;
}
.project a:hover .thumb::before { inset: 7px -7px -7px 7px; }

.thumb img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 26px 44px -22px rgb(var(--shade) / .7);
}

.meta { display: block; margin-top: 30px; }

.date {
  display: block;
  font: 500 12px/1 var(--f-label);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.name {
  display: block;
  margin-top: 10px;
  font: 400 clamp(28px, 4vw, 34px)/1.05 var(--f-display);
  letter-spacing: -.01em;
}

.about {
  display: block;
  margin-top: 10px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-2);
}

.enter {
  display: inline-block;
  margin-top: 16px;
  padding-bottom: 2px;
  font: 600 12px/1.4 var(--f-label);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 2px solid var(--plate, var(--gold));
}
.project a:hover .enter { color: var(--gold-deep); }

/* ---- newsletter: a slip of paper with the gold plate off-register ------ */

.signup {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  align-items: center;
  gap: 20px 40px;
  margin: clamp(80px, 13vw, 128px) 12px 0 0;
  padding: clamp(24px, 4vw, 36px);
  background: rgb(255 252 228 / .6);
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  box-shadow: 12px 12px 0 var(--gold);
}
.signup h2 {
  margin: 0;
  font: 400 clamp(26px, 4vw, 34px)/1.05 var(--f-display);
  letter-spacing: -.01em;
}
.signup p {
  max-width: 36ch;
  margin: 8px 0 0;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-2);
}
/* Same form as Divination Diagnosis's result page: an email field, a
   honeypot for bots, and a line that says how it went. */
.signup form { display: flex; flex-wrap: wrap; gap: 10px; }
.signup input[type=email] {
  flex: 1 1 200px;
  min-width: 0;
  padding: 12px 14px;
  font: 17px/1.2 var(--f-body);
  color: var(--ink);
  background: #fffdf0;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
}
.signup input[type=email]::placeholder { color: var(--ink-3); }
.signup input[type=email]:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.signup .said {
  flex-basis: 100%;
  margin: 4px 0 0;
  font-style: italic;
  color: var(--ink);
}
.signup .said:empty { display: none; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.btn {
  display: inline-block;
  padding: 14px 26px;
  border: 0;
  cursor: pointer;
  background: var(--ink);
  color: #fbf8e6;
  border-radius: 2px;
  font: 700 13px/1 var(--f-label);
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.btn:hover { background: var(--gold); color: var(--ink); transform: translateY(-2px); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---- project pages ------------------------------------------------------ */

.back {
  display: inline-block;
  margin-bottom: 28px;
  font: 500 12px/1.4 var(--f-label);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
}
.back:hover { color: var(--gold-deep); }

.intro {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  align-items: start;
  gap: 48px clamp(32px, 6vw, 64px);
}
.intro h1 { margin-top: 10px; font-size: clamp(44px, 7vw, 72px); }
.intro h1 span + span { padding-left: 0; }
.intro .tagline { max-width: none; margin-top: 22px; }
.story { margin: 18px 0 0; font-size: 17px; color: var(--ink-2); }

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin: 26px 0 0;
}
.stats dt {
  font: 500 11px/1.4 var(--f-label);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.stats dd {
  order: -1;
  margin: 0;
  /* the label face: Format 1452's period is a small ring */
  font: 700 26px/1.1 var(--f-label);
}
.stats div { display: flex; flex-direction: column; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost:hover { box-shadow: none; }

.post { display: block; transform: rotate(1.2deg); transition: transform .25s ease; }
.post:hover, .post:focus-visible { transform: rotate(0) translateY(-4px); }
.post:focus-visible { outline: none; }
.post img { aspect-ratio: auto; background: #fff; }

/* a video in the post's place: tilted like it, but still while you use it */
.film:hover { transform: rotate(1.2deg); }
.film video {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  background: #1c2412;
  border-radius: 2px;
  box-shadow: 0 26px 44px -22px rgb(var(--shade) / .7);
}
.story.aside { font-size: 15px; font-style: italic; color: var(--ink-3); }

.quote { margin: 0; max-width: 34em; }
.quote blockquote { margin: 0; }
.quote p {
  margin: 0;
  /* the body face: Format 1452's period and semicolon read as rings */
  font: italic 500 clamp(24px, 3.2vw, 32px)/1.3 var(--f-body);
  text-wrap: balance;
}
.quote figcaption {
  margin-top: 16px;
  font: 500 12px/1.4 var(--f-label);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.credits { margin: 40px 0 0; max-width: 40em; font-size: 15px; color: var(--ink-2); }
.credits a { color: inherit; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.credits a:hover { color: var(--gold-deep); }

.gallery .thumb img { aspect-ratio: 3 / 4; }
.gallery .meta { margin-top: 24px; }
.gallery .about { margin-top: 0; }

/* the enlarged photo */
.viewer {
  width: min(100vw, 1000px);
  max-width: 100vw;
  max-height: 100dvh;
  padding: 16px;
  background: none;
  border: 0;
  color: #fbf8e6;
}
.viewer::backdrop { background: rgb(18 22 10 / .9); }
.viewer img {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 120px);
  margin: 0 auto;
  border-radius: 2px;
}
.viewer p { margin: 10px 0; text-align: center; font-size: 16px; }
.viewer-nav { display: flex; justify-content: center; gap: 10px; }
.viewer button {
  padding: 10px 16px;
  background: none;
  color: inherit;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  font: 700 12px/1 var(--f-label);
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
}
.viewer button:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.viewer button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

::selection { background: rgb(217 162 27 / .4); }

@media (prefers-reduced-motion: reduce) {
  .project a, .post, .thumb::before, .btn { transition: none; }
}
