/* Light preview. Same room as /weather: warm paper, ink, one sky accent. */

:root {
  --paper: #f3f0e8;
  --ink: #1c1916;
  --ink-soft: #6d665e;
  --rule: #ddd4c6;
  --sky: #2e6c96;
  --serif: "Newsreader", Georgia, serif;
  --mono: "DM Mono", "Courier New", monospace;
  --inset: clamp(1.35rem, 4.5vw, 2.75rem);
  --measure: 34rem;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  min-height: 100dvh;
  background-color: var(--paper);
  background-image: radial-gradient(
    ellipse 58% 46% at 100% 0%,
    color-mix(in srgb, var(--sky) 13%, transparent),
    transparent 68%
  );
  color: var(--ink);
  font-family: var(--mono);
  font-weight: 300;
  line-height: 1.5;
}

::selection {
  background: color-mix(in srgb, var(--sky) 24%, var(--paper));
}

a { color: inherit; }

:focus { outline: none; }

:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 3px;
  border-radius: 2px;
}

.grain {
  position: fixed;
  left: -3%;
  top: -3%;
  width: 106%;
  height: 106%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.2;
  mix-blend-mode: multiply;
  animation: drift 32s ease-in-out infinite alternate;
}

.sheet {
  position: relative;
  z-index: 1;
  width: min(66rem, calc(100% - 2 * var(--inset)));
  margin: 0 auto;
  padding-bottom: 1.5rem;
}

.top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem var(--inset);
  border-bottom: 1px solid var(--rule);
}

.home {
  display: block;
  width: 2.75rem;
  height: 2.75rem;
  line-height: 0;
  border-radius: 2px;
}

.home img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand,
.where {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
}

.where { color: var(--ink); }

.brand:hover { color: var(--sky); }

.intro { padding: 4.25rem 0 0; max-width: 40rem; }

.sun {
  display: block;
  width: 2.55rem;
  height: 2.55rem;
  margin-bottom: 1.35rem;
  color: var(--ink);
}

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.65rem, 6.4vw, 4.85rem);
  letter-spacing: -0.035em;
  line-height: 0.96;
  white-space: nowrap;
}

.tagline {
  margin-top: 0.75rem;
  font-family: var(--serif);
  font-style: normal;
  font-weight: 400;
  font-size: 1.15rem;
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.tagline a,
.tagline a:hover,
.tagline a:focus {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-decoration: none;
}

.intro-rule {
  display: block;
  width: min(16rem, 68%);
  height: 8px;
  margin-top: 1.85rem;
  color: var(--ink);
}

.intro-rule path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
}

.works {
  list-style: none;
  margin-top: 3.75rem;
}

.piece {
  display: grid;
  grid-template-columns: minmax(0, 26rem) 7.5rem;
  align-items: center;
  justify-content: start;
  column-gap: 1.5rem;
  padding: 2.5rem 0 2.65rem;
  border-top: 1px solid var(--rule);
}

.piece > div {
  min-width: 0;
}

.meta {
  font-size: 0.64rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.55rem;
}

.num {
  color: var(--sky);
  margin-right: 0.9rem;
}

.piece h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.piece h2 a {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: color 0.25s ease, background-size 0.35s ease;
}

.piece h2 a:hover {
  color: var(--sky);
  background-size: 100% 1px;
}

.blurb {
  max-width: 28rem;
  margin-top: 0.7rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.12rem;
  line-height: 1.45;
  letter-spacing: -0.015em;
}

.out {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.35rem;
  margin-top: 1.05rem;
}

.go {
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--sky);
  border-bottom: 1px solid color-mix(in srgb, var(--sky) 42%, transparent);
  padding-bottom: 0.08rem;
}

.go:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.mark,
.mark-run,
.mark-job,
.mark-kid,
.mark-type,
.mark-canvas,
.mark-cover {
  flex: none;
  width: 7.5rem;
  height: 7.5rem;
  margin: 0;
  color: var(--ink);
}

.ink {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  color: inherit;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mark img,
.hero-fig img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

img.ink-art {
  object-fit: contain;
  background: transparent;
}

img.kept-photo {
  display: none !important;
}

.ink .lines {
  filter: url("#sketch");
}

.ink .faint { opacity: 0.4; stroke-width: 0.8; }
.ink .solid { fill: currentColor; stroke: none; }

.foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
  padding: 1.15rem 0 2rem;
  border-top: 1px solid var(--rule);
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.foot a { text-decoration: none; }
.foot a:hover { color: var(--sky); }

/* Essay */

.kicker {
  margin-top: 4.25rem;
  font-size: 0.64rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sky);
}

.lede {
  max-width: var(--measure);
  margin-top: 1.15rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.28rem, 2.3vw, 1.65rem);
  line-height: 1.38;
  letter-spacing: -0.02em;
}

.hero-fig {
  width: min(26rem, 100%);
  margin: 2.75rem 0 0;
  color: var(--ink);
}

.hero-fig img {
  height: auto;
  aspect-ratio: 1;
}

.hero-fig img.ink-art,
.plate img.ink-art {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
}

.plate {
  width: min(28rem, 100%);
  margin: 1.75rem 0 0.2rem;
}

.plate img {
  display: block;
  width: 100%;
  height: auto;
}

.plate figcaption,
.covers figcaption {
  margin-top: 0.55rem;
  font-size: 0.64rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.covers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem 1rem;
  margin-top: 1.35rem;
  max-width: 40rem;
}

.covers figure { margin: 0; }

.covers img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  background: transparent;
}

.hero-fig figcaption,
.byline {
  font-size: 0.64rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero-fig figcaption { margin-top: 0.9rem; }

.byline {
  max-width: var(--measure);
  margin-top: 1.75rem;
  letter-spacing: 0.08em;
  text-transform: none;
}

.byline a {
  color: var(--sky);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--sky) 42%, transparent);
}

.essay { margin-top: 0; }

.essay h1 { white-space: normal; }

.essay h2 {
  max-width: var(--measure);
  margin: 2.85rem 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.essay p:not(.kicker):not(.lede):not(.byline):not(.sign):not(.out) {
  max-width: var(--measure);
  margin-top: 0.95rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.68;
  letter-spacing: -0.011em;
}

.essay a {
  color: var(--sky);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--sky) 40%, transparent);
}

.essay a:hover,
.byline a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.aside-fig {
  width: min(12.5rem, 68%);
  margin: 2.5rem 0 2.15rem;
  color: var(--ink);
}

.essay .notes {
  max-width: var(--measure);
  margin-top: 2.2rem;
  padding-top: 0.35rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
}

.essay .notes li { margin: 0.45rem 0 0 1.1rem; }

.sign {
  margin-top: 2.4rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-soft);
}

.draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.65s cubic-bezier(0.45, 0, 0.15, 1) 0.28s forwards;
}

.settle {
  animation: settle 1.15s cubic-bezier(0.2, 0.7, 0.2, 1) 0.12s both;
}

.settle-fig {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: settle 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.95s both;
}

.bolt { stroke: var(--sky); }

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

@keyframes settle {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-1.4%, -0.9%, 0); }
}

@media (min-width: 720px) {
  .covers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .intro { padding-top: 3rem; }

  h1 {
    white-space: normal;
    font-size: clamp(2.7rem, 11vw, 3.6rem);
  }

  .piece {
    grid-template-columns: minmax(0, 1fr) 5.5rem;
    column-gap: 0.85rem;
    padding: 2.15rem 0 2.25rem;
  }

  .mark,
  .mark-run,
  .mark-job,
  .mark-kid,
  .mark-type,
  .mark-canvas,
  .mark-cover {
    width: 5.5rem;
    height: 5.5rem;
    margin-top: 0;
  }

  .works { margin-top: 2.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .grain,
  .draw,
  .settle,
  .settle-fig {
    animation: none;
  }

  .draw { stroke-dashoffset: 0; }

  .settle,
  .settle-fig {
    opacity: 1;
    transform: none;
  }

  .piece h2 a { transition: none; }
}
