:root {
  --paper: #f0efe9;
  --ink: #161616;
  --muted: #56534e;
  --accent: #d8543a;
  --rule: #c9c6bf;
  --gutter: clamp(22px, 6vw, 72px);
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  scroll-behavior: smooth;
  scroll-padding-top: clamp(28px, 8vh, 85px);
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, p { margin: 0; }
a { color: inherit; text-underline-offset: 5px; }
a:focus-visible, button:focus-visible, summary:focus-visible, .player :focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}
::selection { color: var(--ink); background: #eab3a4; }
[hidden] { display: none !important; }
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.skip:focus {
  position: fixed;
  z-index: 1;
  top: 10px;
  left: 10px;
  padding: 10px 12px;
  background: var(--paper);
}

.intro {
  display: grid;
  min-height: 100svh;
  grid-template-rows: 1fr auto 1fr;
  justify-items: center;
  gap: 40px;
  padding: clamp(24px, 6vh, 64px) var(--gutter);
}
.identity {
  grid-row: 2;
  text-align: center;
}
h1 {
  width: min(74vw, 29rem);
  max-width: 100%;
  margin-inline: auto;
  font-size: clamp(3.35rem, 17vw, 8.25rem);
  font-weight: 900;
  line-height: 0.81;
  letter-spacing: -0.105em;
  text-align: center;
  text-transform: uppercase;
}
h1 .solid,
h1 .outline {
  display: block;
  position: relative;
  width: 100%;
  height: auto;
  margin-inline: auto;
}
h1 .outline {
  width: 94%;
  margin-top: 0.045em;
}
.identity p {
  margin-top: clamp(26px, 5vh, 45px);
  color: var(--muted);
  font-size: clamp(1rem, 1.65vw, 1.15rem);
  line-height: 1.45;
}
.actions {
  grid-row: 3;
  display: flex;
  justify-content: center;
  align-self: end;
  flex-wrap: wrap;
  gap: 0 clamp(14px, 4vw, 34px);
}
.actions a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 3px;
  font-size: 0.9375rem;
  text-decoration-color: var(--rule);
}

.work {
  width: min(660px, calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  padding-block: clamp(68px, 12vh, 130px) clamp(70px, 12vh, 130px);
}
.work h2 {
  margin-bottom: clamp(25px, 5vh, 44px);
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.4;
}
details + details { border-top: 1px solid var(--rule); }
summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
  padding-block: 12px;
  list-style: none;
  cursor: pointer;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  background:
    linear-gradient(var(--muted), var(--muted)) center / 100% 1px no-repeat,
    linear-gradient(var(--muted), var(--muted)) center / 1px 100% no-repeat;
}
details[open] > summary::after { background-size: 100% 1px, 0 0; }
summary:hover > span { text-decoration: underline; text-underline-offset: 5px; }
.project-name { font-size: clamp(1.2rem, 2.4vw, 1.65rem); letter-spacing: -0.035em; }
.project-content { padding: 0 0 23px; color: var(--muted); line-height: 1.45; }
.project-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.project-actions a, .player-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 5px;
}
.player-link { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.player:not(:empty) { margin-top: 8px; }
.player video, .player iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: var(--ink);
}
.playback-note { margin-top: 8px; }

.contact {
  display: grid;
  justify-items: center;
  padding: clamp(60px, 11vh, 124px) var(--gutter) clamp(115px, 20vh, 200px);
}
.email {
  max-width: 100%;
  font-size: clamp(1.2rem, 3.2vw, 2.05rem);
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
  text-decoration: none;
}
a:is(:hover, :focus-visible):not(.skip) {
  text-decoration-line: underline;
  text-decoration-color: var(--accent);
}

@media (max-width: 420px) {
  .intro { gap: 29px; }
  .actions a { font-size: 0.875rem; }
  summary { min-height: 62px; }
}

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

@media (min-width: 1024px) {
  .identity p { font-size: 1.25rem; }
  .actions a { font-size: 1.125rem; }
}

#title { position: relative; isolation: isolate; }

.character-grain {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(180.4%, 98vw);
  height: 195.8%;
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
}
