/* rolls.omarali.xyz. Tokens from brand.omarali.xyz/assets/brand.css. Light only, square corners on every frame,
   pills for buttons, no italics. Contact sheets: frames in thin ink borders on white, numbered in the order taken,
   the cover circled in poppy grease pencil. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/Archivo-wdth.woff2") format("woff2");
  font-weight: 400;
  font-stretch: 100% 125%;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/InstrumentSans-wght.woff2") format("woff2");
  font-weight: 400 500;
  font-stretch: 100%;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f6f6f2; --white: #fff; --ink: #17171b; --ink-soft: #4a4a52;
  --poppy: #ef4a24; --poppy-text: #b02a10; --sky: #cfe3f4; --blush: #f9d6dd; --lilac: #dcd6f7;
  --rule: rgba(23, 23, 27, .2);
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --text: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.19, 1, .22, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--text); font-synthesis: none; -webkit-font-smoothing: antialiased; }
a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
p, li, dd, td, blockquote { text-wrap: pretty; }
p { margin: 0; max-width: 62ch; }
ol, ul { list-style: none; margin: 0; padding: 0; }

.d { font-family: var(--display); font-stretch: 125%; font-weight: 400; text-transform: uppercase; letter-spacing: -.035em; line-height: .92; text-wrap: balance; overflow-wrap: anywhere; }
.stop { display: inline-block; width: .19em; height: .19em; margin-left: .05em; border-radius: 50%; background: var(--poppy); vertical-align: baseline; }

.shell { max-width: 1320px; margin: 0 auto; padding: 0 16px calc(32px + env(safe-area-inset-bottom)); }
main { display: flex; flex-direction: column; gap: 36px; padding: 28px 0 8px; }
.foot { display: flex; align-items: center; gap: 14px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--ink-soft); }
.foot .oa { display: block; flex: none; }
.foot-mark { display: inline-flex; align-items: center; min-height: 44px; margin: -10px 0; color: var(--ink); text-decoration: none; }
.foot .oa { width: 40px; height: auto; }

.intro { display: flex; flex-direction: column; gap: 14px; }
.hero { font-size: clamp(52px, 15vw, 148px); }
.lede { font-size: clamp(18px, 2.4vw, 22px); color: var(--ink-soft); max-width: 40ch; }

/* ---------------------------------------------------------------- front page */

.intro { display: flex; flex-direction: column; gap: 28px; }
.intro-h { display: flex; flex-direction: column; gap: 14px; }

/* A justified row: every frame keeps its own shape (the class a5 to a30 is width over height times ten) and the
   whole row shares one height. The empty ::after keeps a short last row from stretching. */
.jr { display: flex; flex-wrap: wrap; gap: 14px 10px; --rh: 120px; }
.jr::after { content: ""; flex: 999 1 0; }
.jr > li { flex: var(--r, 1.5) 1 calc(var(--rh) * var(--r, 1.5)); min-width: 0; }
.a5 { --r: .5; } .a6 { --r: .6; } .a7 { --r: .7; } .a8 { --r: .8; } .a9 { --r: .9; } .a10 { --r: 1; } .a11 { --r: 1.1; } .a12 { --r: 1.2; } .a13 { --r: 1.3; }
.a14 { --r: 1.4; } .a15 { --r: 1.5; } .a16 { --r: 1.6; } .a17 { --r: 1.7; } .a18 { --r: 1.8; } .a19 { --r: 1.9; } .a20 { --r: 2; } .a21 { --r: 2.1; } .a22 { --r: 2.2; }
.a23 { --r: 2.3; } .a24 { --r: 2.4; } .a25 { --r: 2.5; } .a26 { --r: 2.6; } .a27 { --r: 2.7; } .a28 { --r: 2.8; } .a29 { --r: 2.9; } .a30 { --r: 3; }
.cell { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); }
.fr { position: relative; display: block; width: 100%; aspect-ratio: var(--r, 1.5); }
.fr img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.fr.film { outline: 1px solid var(--ink); outline-offset: -1px; }
.no { font-size: 12px; line-height: 1.3; color: var(--ink-soft); font-variant-numeric: tabular-nums; max-width: 100%; overflow-wrap: anywhere; }
.cell:hover .no, .cell:focus-visible .no { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.ring { position: absolute; inset: -7%; width: 114%; height: 114%; pointer-events: none; transform: rotate(-4deg); }

/* the proof strip: one picture row, all frames in one line */
.proof { flex-wrap: nowrap; --rh: 0px; gap: 10px; }
.proof::after { display: none; }
.proof > li { flex: var(--r, 1.5) 1 0; }
.proof > li:nth-child(n+4) { display: none; }
.proof .no { font-size: 13px; }

.ribbon { position: sticky; top: 0; z-index: 5; background: var(--paper); border-bottom: 1px solid var(--rule); }
.ribbon ol { display: flex; gap: 6px; padding: 8px 0; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.ribbon ol::-webkit-scrollbar { display: none; }
.ribbon a { display: inline-flex; align-items: baseline; gap: 6px; min-height: 44px; padding: 0 14px; align-items: center; border: 1px solid var(--rule); border-radius: 999px; background: var(--white); font: 500 15px/1 var(--text); text-decoration: none; white-space: nowrap; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.ribbon a:hover { border-color: var(--ink); }
.ribbon a[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.rc { font-size: 12px; font-weight: 400; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.ribbon a[aria-current="true"] .rc { color: var(--sky); }

.grp { display: flex; flex-direction: column; gap: 18px; padding-top: 18px; border-top: 1.5px solid var(--ink); scroll-margin-top: 64px; }
.grp-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; }
.yh { font-size: clamp(44px, 11vw, 80px); font-variant-numeric: tabular-nums; }
.ch { font-size: clamp(30px, 8vw, 52px); }
.gc { font-size: 15px; color: var(--ink-soft); }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 10px; }
.tile { display: flex; flex-direction: column; gap: 3px; height: 100%; text-decoration: none; color: var(--ink); }
.tfr { display: block; aspect-ratio: 1; background: var(--white); border: 1px solid var(--ink); overflow: hidden; margin-bottom: 4px; transition: background .2s var(--ease); }
.tfr img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tile:hover .tfr { background: var(--sky); }
.tile:hover .tn { text-decoration: underline; text-underline-offset: 3px; }
.tn { font-size: 15px; font-weight: 500; line-height: 1.25; overflow-wrap: anywhere; }
.tm { font-size: 13px; line-height: 1.3; color: var(--ink-soft); }
.tm:empty { display: none; }

.all { display: flex; flex-direction: column; gap: 12px; }
.all > summary { align-self: flex-start; list-style: none; cursor: pointer; }
.all > summary::-webkit-details-marker { display: none; }
.all > summary::after { content: "+"; margin-left: 10px; font-size: 18px; line-height: 1; }
.all[open] > summary::after { content: "\2212"; }
.idx { columns: 1; column-gap: 40px; }
.idx li { break-inside: avoid; }
.idx a { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-height: 44px; padding: 10px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.idx a:hover .in { text-decoration: underline; text-underline-offset: 3px; }
.in { font-size: 16px; font-weight: 500; }
.ic { font-size: 14px; color: var(--ink-soft); text-align: right; }

/* ---------------------------------------------------------------- a sheet */

.sheet-h { display: flex; flex-direction: column; gap: 12px; }
.title { font-size: clamp(40px, 12vw, 104px); }
.sub { font-size: clamp(17px, 2.2vw, 21px); color: var(--ink-soft); }
.note { font-size: 18px; max-width: 52ch; }
.sheet { --rh: 92px; gap: 22px 14px; padding: 18px 14px 20px; background: var(--white); border: 1px solid var(--ink); }
.sheet .cell:hover .fr, .sheet .cell:focus-visible .fr { background: var(--sky); }

.rnav { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1.5px solid var(--ink); }
.rn { display: flex; flex-direction: column; gap: 6px; padding: 18px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.rl { font-size: 13px; color: var(--ink-soft); }
.rt { font-size: clamp(22px, 5vw, 32px); }
.rm { font-size: 15px; color: var(--ink-soft); }
.rn:hover .rt { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.rn.r { align-items: flex-start; }

/* ---------------------------------------------------------------- a frame */

.frame-page main { gap: 22px; }
.photo { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; padding-top: 8px; }
.photo img { display: block; width: auto; height: auto; max-width: 100%; max-height: min(82vh, 1100px); }
.photo figcaption { align-self: stretch; display: flex; flex-direction: column; gap: 6px; padding-top: 14px; border-top: 1px solid var(--rule); }
.where { font-size: 16px; color: var(--ink-soft); }
.where a { font-weight: 500; color: var(--ink); }
.cap { font-size: clamp(18px, 2.4vw, 22px); line-height: 1.4; max-width: 52ch; }
.fnav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font: 500 15px/1.1 var(--text); text-decoration: none; white-space: nowrap; transition: background .2s var(--ease), color .2s var(--ease); }
.pill:hover { background: var(--ink); color: var(--white); }
.pill.off { opacity: .3; }
.mini { --rh: 52px; gap: 12px 8px; padding-top: 18px; border-top: 1px solid var(--rule); }
.mini .cell { gap: 0; }
.mini .cell:hover .fr { background: var(--sky); }
.mini .is-here .fr { outline: 0; }
.mini .ring { inset: -10%; width: 120%; height: 120%; }

@media (min-width: 700px) {
  .shell { padding: 0 32px 40px; }
  .proof > li:nth-child(n+4) { display: block; }
  .proof > li:nth-child(n+5) { display: none; }
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 14px; }
  .idx { columns: 2; }
  .sheet { --rh: 150px; gap: 26px 18px; padding: 26px 24px 28px; }
  .rnav { grid-template-columns: 1fr 1fr; gap: 24px; }
  .rn.r { text-align: right; align-items: flex-end; }
  .photo figcaption { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 6px 32px; }
  .mini { flex-wrap: nowrap; --rh: 0px; gap: 10px; }
  .mini::after { display: none; }
  .mini > li { flex: var(--r, 1.5) 1 0; }
}
@media (min-width: 1100px) {
  .proof > li:nth-child(n+5) { display: block; }
  .proof > li:nth-child(n+7) { display: none; }
  .tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .idx { columns: 3; }
  .sheet { --rh: 196px; gap: 30px 22px; padding: 32px 32px 34px; }
  .intro-h { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 48px; }
  .intro-h .lede { flex: none; max-width: 30ch; padding-bottom: 10px; }
  .intro-h .hero { font-size: clamp(52px, 10.5vw, 136px); }
}
@media (max-width: 380px) {
  .fnav .pill { padding: 0 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
.permission { margin: 40px 0 0; font-size: 14px; color: var(--ink-soft); max-width: none; }
