/* claire tian: light, black and white, minimal, lowercase, a little cold. */
:root {
  --paper: #efe8d9;      /* uncoated paper */
  --ink: #0e0e0e;
  --muted: #8f897b;
  --line: #d3cab7;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --side: 230px;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--paper); color: var(--ink);
  font: 300 11px/1.7 var(--mono); letter-spacing: .04em;
  text-transform: lowercase;
  overflow: hidden;
}
a { color: inherit; text-decoration: none; }
a:hover, a[aria-current] { text-decoration: line-through; }
::selection { background: var(--ink); color: var(--paper); }

/* sidebar: small, top corner, nothing friendly about it */
.side { position: fixed; inset: 0 auto 0 0; width: var(--side); padding: 22px 20px; display: flex; flex-direction: column; z-index: 3; }
.name { font: 400 11px/1.7 var(--mono); letter-spacing: .42em; margin: 0 0 40px; padding-bottom: 14px; border-bottom: 1px solid var(--ink); white-space: nowrap; }
nav a { display: block; color: var(--muted); white-space: nowrap; }
nav a:hover, nav a[aria-current] { color: var(--ink); }
.foot { margin-top: auto; font-size: 9px; color: var(--muted); line-height: 1.7; }

/* work: a sideways strip of frames, numbered, no titles */
.reel {
  position: fixed; inset: 0 0 0 var(--side);
  display: flex; gap: 6vw; align-items: flex-start;
  padding: 22px 12vw 22px 0;
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
}
.reel::-webkit-scrollbar { display: none; }
.intro { flex: 0 0 26vw; align-self: flex-end; padding: 0 0 6px; color: var(--muted); }
.intro p { margin: 0; max-width: 30ch; }
.intro .lead { color: var(--ink); margin-bottom: 6px; }
.intro .hint { margin-top: 28px; }
.intro.bare { flex-basis: 8vw; }
figure { margin: 0; flex: 0 0 auto; display: flex; flex-direction: column; }
figure:nth-of-type(even) { margin-top: 12vh; }      /* uneven on purpose */
figure:nth-of-type(3n) { margin-top: 5vh; }
.frame { height: 62vh; aspect-ratio: 2 / 3; position: relative; overflow: hidden; background: #1a1a1a; }
.frame:not(.fit) { opacity: .9; outline: 1px solid var(--ink); outline-offset: 5px; }   /* stand-ins read as x-ray plates */
.frame img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1) contrast(1.08); }
/* every frame is portrait, 2 by 3. a real photo fills it; a landscape one is cropped to the middle. */
.frame.fit { background: none; }
.frame.fit::after { content: none; }
figure[hidden] { display: none; }
/* stand-ins until real photos are dropped in: swap a .frame's contents for an <img> */
.p1 { background: radial-gradient(55% 40% at 30% 28%, #d8d8d8 0, transparent 70%), linear-gradient(165deg, #6f6f6f, #1c1c1c 60%, #050505); }
.p2 { background: radial-gradient(45% 35% at 72% 22%, #f2f2f2 0, transparent 70%), linear-gradient(200deg, #a9a9a9, #4a4a4a 55%, #121212); }
.p3 { background: radial-gradient(30% 22% at 50% 62%, #bdbdbd 0, transparent 70%), linear-gradient(180deg, #0a0a0a, #262626 60%, #000); }
.p4 { background: radial-gradient(60% 45% at 22% 78%, #e6e6e6 0, transparent 70%), linear-gradient(140deg, #c9c9c9, #6a6a6a 60%, #1d1d1d); }
.p5 { background: radial-gradient(50% 38% at 60% 40%, #ffffff 0, transparent 70%), linear-gradient(170deg, #dcdcdc, #8a8a8a 55%, #2a2a2a); }
.p6 { background: radial-gradient(55% 45% at 40% 30%, #9a9a9a 0, transparent 70%), linear-gradient(190deg, #3c3c3c, #151515 60%, #000); }
.frame::after { /* film grain */
  content: ""; position: absolute; inset: 0; opacity: .5; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
figcaption { padding-top: 6px; font-size: 9px; color: var(--muted); display: flex; justify-content: space-between; }

/* contact: one narrow column, pushed off-centre, mostly empty. nothing on this site scrolls down. */
.sheet { position: fixed; inset: 0 0 0 calc(var(--side) + 22vw); padding: 22px 24px 22px 0; overflow: hidden; }
.sheet > * { max-width: 34ch; }
.sheet h2 { font: inherit; margin: 0 0 40px; color: var(--muted); }
.sheet p { margin: 0 0 14px; }
.sheet a.go { border-bottom: 1px solid var(--ink); }
.sheet a.go:hover { text-decoration: none; border-bottom-color: transparent; }
/* recent shots: the same sideways strip as work, with dates */
.intro .label { color: var(--muted); }
.note { font-size: 9px; }

/* contact: one prompt, one text box */
form { display: grid; gap: 10px; margin-top: 46px; }
form label { color: var(--ink); }
textarea {
  font: inherit; letter-spacing: inherit; text-transform: none; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 6px 0; width: 100%; height: 96px; resize: none;
}
textarea:focus { outline: 0; border-bottom-color: var(--ink); }
button.send { justify-self: start; font: inherit; letter-spacing: inherit; text-transform: lowercase; cursor: pointer; color: var(--ink); background: none; border: 0; border-bottom: 1px solid var(--ink); padding: 0; margin-top: 8px; }
button.send:hover { border-bottom-color: transparent; }
.status { min-height: 1.7em; margin: 0; color: var(--muted); }

@media (max-width: 720px) {
  /* phones: the name and menu sit on top, the strip still runs sideways underneath */
  body { display: flex; flex-direction: column; }
  .side { position: static; flex: none; width: auto; padding: 18px 18px 0; display: block; }
  .name { margin: 0 0 10px; }
  nav { display: flex; flex-wrap: wrap; gap: 0 14px; }
  .foot { display: none; }
  .reel { position: static; flex: 1; min-height: 0; gap: 12vw; padding: 34px 18vw 18px 18px; }
  .intro { flex: 0 0 62vw; }
  .intro.bare { flex-basis: 30vw; }
  .frame { height: 50vh; }
  figure:nth-of-type(even) { margin-top: 9vh; }
  .sheet { position: static; flex: 1; min-height: 0; padding: 50px 18px 18px 22vw; }
  .sheet h2 { margin-bottom: 26px; }
}
@media (max-height: 520px) { .sheet { overflow-y: auto; } }   /* a phone on its side still reaches "send" */
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
