/* halim.tropicalthink.com
   Two typefaces: Big Shoulders Display (the studio's own display face) for the
   name and project names, Literata for everything that is read.
   Each project band wears that project's real colours. */

@font-face {
  font-family: "Big Shoulders Display";
  src: url("/fonts/big-shoulders-display.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("/fonts/literata.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("/fonts/literata-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f1f4ee;
  --ink: #0f2a24;
  --ink-soft: #40574f;
  --rule: #c6d0c5;
  --leaf: oklch(0.52 0.19 50); /* Tropical Think's citrus */

  --display: "Big Shoulders Display", "Arial Narrow", "Helvetica Neue", sans-serif;
  --text: "Literata", Georgia, "Times New Roman", serif;

  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --step-0: 1.0625rem;
  --step-1: clamp(1.25rem, 0.9rem + 1.1vw, 1.75rem);
  --step-2: clamp(1.5rem, 1rem + 1.9vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--step-0);
  line-height: 1.6;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, dl, dd { margin: 0; }
a { color: inherit; text-decoration-thickness: 0.08em; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 0.16em; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; border-radius: 2px; }

.wrap { max-width: 92rem; margin-inline: auto; padding-inline: var(--gutter); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: var(--gutter); top: -4rem;
  background: var(--ink); color: var(--paper); padding: 0.5rem 0.9rem;
}
.skip:focus { top: 0.75rem; }

/* Top line */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: clamp(1.25rem, 3vw, 2.25rem);
}
/* The studio's leaf, drawn the way its own site draws it: a mask filled with colour. */
.mark {
  display: block;
  width: 2.75rem;
  aspect-ratio: 173 / 159;
  background-color: var(--leaf);
  -webkit-mask: url("/leaf.svg") no-repeat center / contain;
  mask: url("/leaf.svg") no-repeat center / contain;
}
.top nav { display: flex; gap: 1.75rem; }
.top nav a { text-decoration: none; }
.top nav a:hover { text-decoration: underline; text-decoration-thickness: 0.1em; }

/* Hero: the name is the picture */
.hero { padding-block: clamp(1.5rem, 5vw, 4rem) clamp(3rem, 7vw, 6rem); }
.hero-name { container-type: inline-size; }
.hero h1 {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  /* Sized from the width it has: "Abdelhalim" fills a narrow screen. */
  font-size: 22.3cqi;
  line-height: 0.84;
  letter-spacing: -0.012em;
  margin-left: -0.035em;
}
.hero h1 span { display: block; }
.hero-body {
  display: grid; gap: 2rem;
  margin-top: clamp(2rem, 5vw, 4rem);
}
.lead {
  font-size: var(--step-2);
  line-height: 1.28;
  letter-spacing: -0.012em;
  max-width: 27ch;
  text-wrap: balance;
}
.facts { display: grid; gap: 0.85rem; align-content: start; }
.facts dt { font-style: italic; color: var(--ink-soft); font-size: 0.95rem; }
.facts dd { font-size: 1.125rem; line-height: 1.35; }

/* About */
.about {
  display: grid; gap: 1.25rem;
  padding-block: clamp(2.5rem, 6vw, 5rem);
  border-top: 1px solid var(--rule);
}
.about h2, .foot h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.25rem, 1.5rem + 3vw, 4rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.005em;
}
.about-body { display: grid; gap: 1.1rem; max-width: 66ch; }
.about-body p { font-size: 1.1875rem; line-height: 1.6; }

/* Project bands */
.project {
  background: var(--bg);
  color: var(--fg);
  padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(3rem, 7vw, 6.5rem);
}
.project h3 {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(4rem, 14vw, 12.5rem);
  line-height: 0.82;
  letter-spacing: -0.008em;
  margin-left: -0.035em;
  color: var(--hi);
}
.project .status { font-style: italic; }
.project .wrap > .what {
  font-size: var(--step-2);
  line-height: 1.28;
  letter-spacing: -0.012em;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 30ch;
  text-wrap: pretty;
}
.project .more { display: grid; gap: 1.35rem; margin-top: 1.75rem; max-width: 60ch; justify-items: start; }
.project .more p { font-size: 1.125rem; }
.stack dt { font-style: italic; font-size: 0.95rem; opacity: 0.85; }
.stack dd { font-size: 1.0625rem; }
.project .note { font-style: italic; }
.go {
  display: inline-block;
  background: var(--btn);
  color: var(--btn-fg);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.2;
  padding: 0.85rem 1.25rem 0.9rem;
  border-radius: 2px;
  transition: transform 120ms ease-out;
}
.go:hover { transform: translateY(-2px); }
.go:focus-visible { outline-color: var(--fg); }

/* Each band in its product's own colours */
.heed      { --bg: #1f6f78; --fg: #f1f6f5; --hi: #f7f9f8; --btn: #e0a019; --btn-fg: #17282c; }
.staffroom { --bg: oklch(0.41 0.135 265); --fg: oklch(0.96 0.012 265); --hi: #ffffff; --btn: #ffffff; --btn-fg: oklch(0.3 0.12 265); }
.leyla     { --bg: #60132e; --fg: #fbe6ec; --hi: #f5c25f; --btn: #f5c25f; --btn-fg: #3a0b1b; }
.mitlist   { --bg: #f97316; --fg: #1a1714; --hi: #1a1714; --btn: #1a1714; --btn-fg: #fff7ed; }

/* Footer */
.foot { padding-block: clamp(3rem, 7vw, 6rem) clamp(2rem, 4vw, 3rem); }
.foot-links {
  display: flex; flex-wrap: wrap; gap: 0.5rem 2.25rem;
  margin-top: 1.25rem;
  font-size: var(--step-2);
  letter-spacing: -0.012em;
}
.small {
  margin-top: clamp(2.5rem, 6vw, 5rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9375rem;
  color: var(--ink-soft);
  max-width: 70ch;
}

/* Wider screens: the name on one line, text beside its heading */
@media (min-width: 46rem) {
  /* The whole name on one line, edge to edge. */
  .hero h1 { font-size: 13.8cqi; white-space: nowrap; }
  .hero h1 span { display: inline; }
  .hero-body { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 3rem; align-items: end; }
  .facts { justify-self: end; min-width: 15rem; }
  .about { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 3rem; }
  .project .wrap {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    column-gap: clamp(2rem, 6vw, 6rem);
    align-items: start;
  }
  .project h3 { grid-column: 1 / -1; }
  .project .more { margin-top: clamp(1.5rem, 3vw, 2.5rem); padding-top: 0.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .go { transition: none; }
  .go:hover { transform: none; }
}

@media print {
  .project { break-inside: avoid; }
  .skip, .top nav { display: none; }
}
