/* Mina Sayed: one stylesheet. Edit the variables to restyle the whole site.
   Layout: three columns like a broadsheet, after Bus Projects.
   Type: free stand-ins for HAL Timezone (titles), OO Review Mono (text) and OO Arketa (labels). */


/* Stand-in fonts (free, open license) until the web licenses for HAL Timezone, OO Review Mono and OO Arketa are bought.
   To switch: replace these @font-face rules and the three font variables below. */
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/newsreader-latin-300-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/newsreader-latin-ext-300-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-latin-400-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-latin-ext-400-italic.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+A720-A7FF; }
@font-face { font-family: "Courier Prime"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/courier-prime-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Courier Prime"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/courier-prime-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+A720-A7FF; }

:root {
  --ink: #000;
  --paper: #fff;
  --dim: #b5b5b5;
  --accent: #e64ff7;
  --display: "Newsreader", "Times New Roman", serif;
  --serif: "IBM Plex Mono", "Courier New", monospace;
  --mono: "Courier Prime", "Courier New", monospace;
  --big: clamp(40px, 4.7vw, 98px);
  --pad: clamp(14px, 1.3vw, 24px);
}

* { box-sizing: border-box; min-width: 0; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.4 var(--serif); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.mono { font-family: var(--mono); font-size: clamp(13px, 0.95vw, 17px); line-height: 1.3; letter-spacing: 0.02em; }

/* The three columns */
.frame { display: grid; grid-template-columns: 30fr 38.5fr 31.5fr; min-height: 100vh; }
.col { padding: var(--pad); }
.col-left {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; justify-content: space-between;
  border-right: 1px solid var(--ink);
}
.col-mid { border-right: 1px solid var(--ink); }
.col-wide { grid-column: 2 / -1; padding-bottom: 140px; }

/* Left column: name and info */
.name { display: block; text-align: left; font-family: var(--display); font-weight: 300; font-size: var(--big); line-height: 0.92; letter-spacing: -0.02em; padding-top: 8px; }
.info { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; text-align: left; padding-bottom: 32px; }
.info p { margin: 0; overflow-wrap: anywhere; }
.info a, .studio-link { text-decoration: none; cursor: pointer; }
.info a:hover, .info a:active, .studio-link:hover { color: var(--accent); }

/* Column headers: small typewriter menu on the left, big title */
.col-head { display: grid; grid-template-columns: minmax(9em, auto) 1fr; gap: 16px; align-items: start; }
.sub { list-style: none; margin: 0; padding: 0; text-transform: uppercase; }
.sub li, .sub button, .sub a { color: var(--dim); }
.sub .on, .sub li.on, .sub button.on { color: var(--ink); }
.sub button:hover, .sub a:hover, .sub button:active { color: var(--accent); }
.sub button:focus-visible, .item:focus-visible { outline: 1px dashed var(--ink); outline-offset: 3px; }
.col-title { margin: 0; text-align: center; font-family: var(--display); font-weight: 300; font-size: var(--big); line-height: 0.92; letter-spacing: -0.02em; }

/* Big running text: the list of work */
.big { margin: 0.12em 0 0; font-family: var(--display); font-weight: 300; font-size: var(--big); line-height: 0.98; letter-spacing: -0.02em; }
.work-list .item { transition: color 0.15s; }
.work-list:hover .item { color: var(--dim); }
.work-list:hover .item:hover, .work-list .item:active, .work-list .item:focus-visible { color: var(--accent); }
.work-list .item[hidden] { display: none; }
.work-list .item.last .comma { display: none; }
.thumb { display: inline-block; height: 0.74em; width: auto; max-width: 1.4em; object-fit: cover; vertical-align: -0.02em; margin: 0 0.06em 0 0.02em; }
.work-list:hover .item:not(:hover) .thumb { opacity: 0.35; }
.detail { margin: 18px 0 0; text-transform: uppercase; }

/* Right column: notes */
.notes { list-style: none; margin: 18px 0 0; padding: 0; }
.notes li { border-top: 1px solid var(--ink); padding: 10px 0 16px; }
.notes li[hidden] { display: none; }
.note-text { font-family: var(--display); font-size: clamp(24px, 2.2vw, 42px); line-height: 1.08; letter-spacing: -0.01em; }
.note-text p { margin: 0 0 0.35em; }
.note-link { display: block; font-family: var(--display); font-size: clamp(24px, 2.2vw, 42px); line-height: 1.08; letter-spacing: -0.01em; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.12em; }
.note-link:hover, .note-link:active { color: var(--accent); }
.note-with { display: block; margin-top: 6px; color: var(--dim); }
.notes .mono { display: block; color: var(--dim); }
.note-title { display: block; font-family: var(--display); font-size: clamp(28px, 2.6vw, 52px); line-height: 1; font-weight: 300; letter-spacing: -0.01em; }
.notes a:hover .note-title { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.1em; }
.empty { margin: 18px 0 0; color: var(--dim); }

/* Project, note and about pages */
.meta { margin: 18px 0 0; text-transform: uppercase; }
.prose { max-width: 36em; margin-top: 32px; font-size: clamp(16px, 1.2vw, 22px); line-height: 1.35; }
.prose p { margin: 0 0 0.9em; }
.prose strong { font-weight: 400; }
.about { margin-top: 24px; }
.videos { display: grid; gap: 28px; margin-top: 40px; }
.video-item { margin: 0; }
.video-item a { text-decoration: underline; text-underline-offset: 3px; }
.video { position: relative; aspect-ratio: 16 / 9; background: #f0f0f0; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--pad); grid-auto-flow: dense; margin-top: 40px; }
.gallery figure { margin: 0; }
.gallery .wide { grid-column: 1 / -1; }
.gallery img { width: 100%; }
figcaption { margin-top: 6px; }
.next-label { margin: 64px 0 0; }
.next { display: inline-block; margin-top: 0; }
.next:hover, .next:active { color: var(--accent); }

/* Bottom-right buttons */
.pills { position: fixed; right: var(--pad); bottom: var(--pad); display: flex; gap: 14px; z-index: 10; }
.pills a {
  font-family: var(--serif); font-weight: 400; font-size: clamp(18px, 1.5vw, 32px); line-height: 1;
  background: var(--paper); border-radius: 999px; padding: 0.5em 1.1em;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}
.pills a:hover, .pills a:active { background: var(--accent); color: var(--paper); }

/* Tablets and phones: the columns stack */
@media (max-width: 900px) {
  :root { --big: clamp(40px, 10vw, 76px); }
  .frame { grid-template-columns: 1fr; }
  .col-left { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--ink); gap: 28px; }
  .col-mid { border-right: 0; border-bottom: 1px solid var(--ink); }
  .col-wide { grid-column: 1; }
  .col-head { grid-template-columns: 1fr; }
  .col-title { text-align: left; order: -1; }
  .info { padding-bottom: 8px; }
  .gallery { grid-template-columns: 1fr; }
  .col-right { padding-bottom: 110px; }
  .pills a { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { .work-list .item { transition: none; } }
.nw { white-space: nowrap; }

.name:hover, .name:active, .video-item a:hover, .prose a:hover { color: var(--accent); }

/* About text revealed under the name on the home page */
button.name { cursor: pointer; }
button.name[aria-expanded="true"] { color: var(--accent); }
.left-top { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.about-panel { margin-top: 20px; padding-right: 8px; overflow-y: auto; font-family: var(--serif); font-size: clamp(13px, 0.95vw, 16px); line-height: 1.4; max-width: 34em; }
.about-panel p { margin: 0 0 0.8em; }
.about-panel[hidden] { display: none; }

/* Section title sits at the right edge on project, note and about pages */
.col-wide .col-title { text-align: right; }

/* Say hello: shows the email address on hover, copies it on click as a backup to the mail app */
.hello .hello-email { display: none; }
.hello:hover .hello-label, .hello:focus-visible .hello-label { display: none; }
.hello:hover .hello-email, .hello:focus-visible .hello-email { display: inline; }
.hello.copied .hello-label, .hello.copied .hello-email { display: none; }
.hello.copied::after { content: "Email copied"; }

/* Rocket cursor everywhere (falls back to the normal cursor if a browser can't show it) */
* { cursor: url("cursor.svg") 26 6, auto !important; }
a, a *, button, button *, .studio-link { cursor: url("cursor.svg") 26 6, pointer !important; }
.about-panel a, .about a { text-decoration: underline; text-underline-offset: 2px; }
.about-panel a:hover, .about a:hover { color: var(--accent); }

/* Portrait at the top of the About text */
.portrait { display: block; width: 100%; max-width: 320px; height: auto; margin: 0 0 16px; }
.about .portrait { max-width: 420px; margin-bottom: 24px; }
.left-top { overflow: hidden; margin-bottom: 16px; }
.about-panel { flex: 1; min-height: 0; }

/* Silent looping video: no clicks reach YouTube, so its controls and overlays stay hidden */
.video.ambient { margin-top: 40px; overflow: hidden; background: transparent; }
.video.ambient iframe { pointer-events: none; transform: scale(1.03); }
