/* DIY Shell Phone — styled after shetells.stream.
   Fonts are loaded from shetells.stream itself (it sends CORS headers),
   so no font files live in this repository. */

@font-face { font-family: 'CeleScript'; src: url('https://shetells.stream/Fonts/Celescript.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'NaNTresor'; src: url('https://shetells.stream/Fonts/NaNTresor/NaNTresorM-ExtraLight.ttf') format('truetype'); font-weight: 200; font-display: swap; }
@font-face { font-family: 'NaNTresor'; src: url('https://shetells.stream/Fonts/NaNTresor/NaNTresorM-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'NaNTresor'; src: url('https://shetells.stream/Fonts/NaNTresor/NaNTresorM-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }

:root {
  --black: #111111;
  --white: #ffffff;
  --blue:  #0046FF;      /* shetells toolkit page: "add your voice" card + funders */
  --line:  #e4e1dc;      /* hairlines in tables */
  --paper: #f6f4f0;      /* code / note backgrounds */
  --script: 'CeleScript', 'Comic Sans MS', cursive;
  --serif:  'NaNTresor', Georgia, serif;
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 55.87 5.06'%3E%3Cpath fill='none' stroke='%23111111' stroke-linecap='round' stroke-width='.6' d='M.91,3.32c3.46.66,15.77,1.65,22.92.28,4.78-.91,15.54-2.85,19.76-2.83,3.81.02,8.93,0,11.38.86'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

html { background: var(--white); }
body {
  margin: 0;
  overflow-x: hidden;
  position: relative;
  color: var(--black);
  background: var(--white);
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Top bar (same proportions as shetells.stream) ── */
.header {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem 0;
}
.brand { display: flex; align-items: flex-end; gap: 0.6rem; color: inherit; text-decoration: none; }
.brand-title {
  font-family: var(--serif);
  font-weight: 200;
  font-size: clamp(48px, 6.5vw, 100px);
  line-height: 0.82;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand-sub {
  font-family: var(--script);
  font-size: clamp(12px, 1.5vw, 21px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding-bottom: 0.15em;
}
.brand-line { display: inline-block; height: clamp(8px, 1vw, 12px); width: clamp(40px, 4vw, 60px); flex-shrink: 0; }

.nav-buttons { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0.6rem; }

/* ── Pill buttons (hover colours as on shetells.stream) ── */
.btn {
  display: inline-block;
  font-family: var(--script);
  font-size: clamp(12px, 1.15vw, 16px);
  letter-spacing: 0.04em;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  padding: 0.55rem 1.4rem;
  border-radius: 2rem;
  transition: background 0.18s, color 0.18s, transform 0.12s;
}
.btn:active { transform: scale(0.96); }
.btn-outline { color: var(--black); background: transparent; border: 1.5px solid var(--black); }
.btn-outline:hover, .btn-outline.is-active { background: var(--black); color: var(--white); }
.btn-filled { color: var(--white); background: var(--black); border: 1.5px solid var(--black); }
.btn-filled:hover { background: #333; border-color: #333; }

/* ── Doodles: only in the empty margins of wide screens ── */
.doodle { position: absolute; z-index: 0; pointer-events: none; user-select: none; }
.doodle-blimp   { right: 3vw; top: 170px; width: clamp(180px, 17vw, 280px); }
.doodle-seaweed { left: 4vw; top: 760px; width: clamp(110px, 9vw, 150px); }
.doodle-shell   { right: 3vw; top: 190px; width: clamp(150px, 13vw, 210px); }
@media (max-width: 1180px) { .doodle { display: none; } }

/* ── Content ── */
.content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) 1.25rem 3rem;
}

h1, h2, h3, h4 { font-family: var(--serif); color: var(--black); }
h1 {
  font-weight: 200;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}
h2 {
  font-weight: 200;
  font-size: clamp(28px, 3.1vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 2.2em 0 0.6em;
}
h3 { font-weight: 700; font-size: 1.15em; margin: 1.8em 0 0.5em; }
h4 { font-family: var(--script); font-weight: 400; text-transform: uppercase; letter-spacing: 0.08em; }

p, ul, ol { margin: 0 0 1.1em; }
li { margin: 0.25em 0; }
strong { font-weight: 700; }

/* links: underlined in the text colour, like the shetells toolkit page */
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2.5px; }
.content a.btn, .header a, .footer a.voice-btn { text-decoration: none; }

/* wavy divider instead of a straight rule */
hr {
  border: 0;
  height: 14px;
  margin: 2.6em auto 1.6em;
  width: 160px;
  background: var(--wave) center / contain no-repeat;
}
hr + h2 { margin-top: 0.6em; }

img { max-width: 100%; height: auto; }
.content img { border-radius: 14px; display: block; margin: 1.2em auto; }
/* centred image rows (<p align="center"> in the Markdown): side by side, evenly spaced */
.content p[align="center"] { display: flex; flex-wrap: wrap; justify-content: center; gap: 2%; margin: 1.2em 0; }
.content p[align="center"] img { display: block; margin: 0; }
/* rows of three photos (width="32%" in the Markdown): same shape, so the row lines up */
.content p[align="center"] img[width="32%"] { width: 32%; aspect-ratio: 4 / 3; object-fit: cover; }

/* click a photo to see it large */
.content img { cursor: zoom-in; }
.zoom {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2vmin;
  background: rgba(17, 17, 17, 0.88);
  cursor: zoom-out;
}
.zoom[hidden] { display: none; }
.zoom img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 14px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4); }
body.zoom-open { overflow: hidden; }

/* notes / tips */
blockquote {
  margin: 1.5em 0;
  padding: 0.9em 1.2em;
  border-left: 2px solid var(--black);
  background: var(--paper);
  border-radius: 0 14px 14px 0;
}
blockquote p:last-child { margin-bottom: 0; }

/* tables: handwritten headers, hairline rows, scroll sideways on phones */
table { border-collapse: collapse; width: 100%; margin: 1.5em 0; font-size: 0.95em; display: block; overflow-x: auto; }
th {
  font-family: var(--script);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85em;
  text-align: left;
  padding: 0.6em 0.8em;
  border-bottom: 1.5px solid var(--black);
  white-space: nowrap;
}
td { padding: 0.6em 0.8em; border-bottom: 1px solid var(--line); vertical-align: top; }

code, pre { font-family: ui-monospace, 'Cascadia Mono', Menlo, Consolas, monospace; font-size: 0.86em; }
code { background: var(--paper); padding: 0.1em 0.4em; border-radius: 6px; }
pre { background: var(--paper); padding: 1em 1.2em; border-radius: 14px; overflow-x: auto; line-height: 1.45; }
pre code { background: none; padding: 0; }
.highlight { background: none; }

/* ── Footer: "add your voice" + funders, as on shetells.stream/diytoolkit.html ── */
.footer {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 2rem auto 0;
  padding: 0 1.25rem 4rem;
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 6vw, 72px);
  color: var(--blue);
}
.voice {
  background: var(--blue);
  color: var(--white);
  border-radius: 14px;
  padding: clamp(24px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.voice h2 {
  color: var(--white);
  font-weight: 200;
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1;
  margin: 0;
  letter-spacing: -0.02em;
}
.voice p { font-size: 17px; line-height: 1.5; margin: 0; max-width: 56ch; }
.voice .small { font-size: 13px; opacity: 0.85; }
.voice-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.voice-btn {
  font-family: var(--script);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
  color: var(--blue);
  background: var(--white);
  border: 1.5px solid var(--white);
  border-radius: 999px;
  padding: 12px 22px;
  transition: opacity 0.2s;
}
.voice-btn.ghost { background: transparent; color: var(--white); }
.voice-btn:hover { opacity: 0.75; }

.funders { display: flex; flex-direction: column; gap: 18px; max-width: 520px; }
.funders-label { font-family: var(--script); font-size: 12pt; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.6; }
.funders-row { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.funders img { display: block; height: auto; max-width: 100%; }
.funders .eu { width: 230px; }
.funders .sta { width: 190px; }
.funders .rio { width: 110px; }
.funders-note { font-weight: 200; font-size: 15px; line-height: 1.55; margin: 0; }
.funders-legal { font-weight: 200; font-size: 11.5px; line-height: 1.55; opacity: 0.62; max-width: 52ch; margin: 0; }

/* ── Phones ── */
@media (max-width: 768px) {
  .header { flex-direction: column; gap: 0.9rem; }
  .header > * { max-width: 100%; }
  .nav-buttons { justify-content: flex-start; width: 100%; }
  .brand { flex-wrap: wrap; }
  .btn { padding: 0.5rem 1.1rem; }
  .content p[align="center"] img[width="32%"] { width: 100%; margin: 0.4em 0; }
}
