/* Shared by every page: the palette and type (as start.mjs dealt them) and the parts the
   sub-pages reuse. The home page keeps its own copy inline; change both together. */
:root {
  --p-bg: #ffffff; --p-surface: #f3f3f3; --p-ink: #232323; --p-muted: #686868;
  --p-accent: #a1ffcb; --p-accent-ink: #232323; --p-action: #232323; --p-action-ink: #ffffff;
  --p-inv-bg: #232323; --p-inv-surface: #303030; --p-inv-ink: #ffffff; --p-inv-muted: #a4a4a4;
  --p-inv-accent: #a1ffcb; --p-inv-accent-ink: #232323; --p-inv-action: #a1ffcb; --p-inv-action-ink: #232323;
  --font-display: "Host Grotesk", system-ui, sans-serif;
  --font-text: "Host Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display-weight: 500;
  --display-tracking: -0.035em;
  --display-tracking-xl: -0.04em;
}
/* phone screens in a bezel */
.shots { display: flex; justify-content: center; align-items: flex-start; gap: var(--s-5); width: 100%; }
.device { flex: 0 1 200px; min-width: 0; padding: 6px; border-radius: 32px; background: #0d0d0f; box-shadow: 0 0 0 1px rgb(0 0 0 / .08), 0 24px 48px -24px rgb(0 0 0 / .45); }
.device img { display: block; width: 100%; height: auto; aspect-ratio: 402 / 874; border-radius: 26px; }
@media (max-width: 639px) { .shots { gap: var(--s-3); } .shots--3 .device:nth-child(3) { display: none; } .device { border-radius: 24px; padding: 5px; } .device img { border-radius: 19px; } }
.project .rows { margin: 0; }
.project__links { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); }
.project h3, .post-card h3 { font-size: var(--t-card); line-height: 1.3; }
/* sub-page close: the h2 and the button on one row */
.close__word { font-size: clamp(56px, 12.5vw, 184px); line-height: 1.12; padding-bottom: .06em; overflow: visible; }
@media (max-width: 639px) { .close__word { font-size: clamp(40px, 14vw, 72px); } }
/* project and post lists */
.cards-list { list-style: none; margin: 0; padding: 0; }
.post-card { display: grid; gap: var(--s-2); padding-block: var(--s-5); border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.post-card time { color: var(--muted); font-size: var(--t-small); }
/* a blog post: one readable column */
.post { max-width: 680px; }
.post h1 { font-size: var(--t-h2); line-height: 1.1; margin: var(--s-3) 0 var(--s-5); }
.post h2 { font-size: var(--t-h3); margin: var(--s-7) 0 var(--s-3); }
.post p, .post li { font-size: 18px; line-height: 1.7; }
.post pre { background: var(--surface); border-radius: var(--r-md); padding: var(--s-5); overflow-x: auto; font: 14px/1.6 var(--font-mono); }
.post img { max-width: 100%; border-radius: var(--r-md); }

/* a nav word that opens another page (the blog) carries a small arrow */
.nav__ext { width: 12px; height: 12px; margin-left: 3px; vertical-align: 1px; opacity: .7; }

/* phones turn footer links into flex boxes for the 44px tap size: keep the LinkedIn mark centred in its circle */
.footer__legal .socials a { justify-content: center; }

/* the close: the email button straight under its line, LinkedIn beside it; room under the big name */
.close__actions { margin-top: var(--s-5); align-items: center; gap: var(--s-4) var(--s-6); }
@media (min-width: 640px) { .close__word { font-size: clamp(56px, 11vw, 160px); } }
/* Big monitors (27-inch and up): the whole page scales up from a 1600-wide layout, so a section on a
   2560x1440 screen looks like it does on a laptop instead of a small block in a large empty screen.
   Zoom multiplies viewport units too, so the screen-tall sections divide by it to stay one screen. */
@media (min-width: 1800px) and (min-height: 1000px) { :root { --zoom: 1.125; } }
@media (min-width: 2000px) and (min-height: 1100px) { :root { --zoom: 1.25; } }
@media (min-width: 2300px) and (min-height: 1250px) { :root { --zoom: 1.4; } }
@media (min-width: 2500px) and (min-height: 1380px) { :root { --zoom: 1.6; } }
@media (min-width: 3200px) and (min-height: 1750px) { :root { --zoom: 2; } }
@media (min-width: 1800px) and (min-height: 1000px) {
  html { zoom: var(--zoom); }
  main > :is(section, .section), footer.closing { height: calc(var(--h, 1) * 100svh / var(--zoom)); }
}

/* Anaya's logo: the kit's rounded bars stacked into an A (a peak with split legs) */
.mark[data-mark="peak"] { --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='8' y='2.5' width='8' height='5.5' rx='2.75'/%3E%3Crect x='5' y='9.25' width='14' height='5.5' rx='2.75'/%3E%3Crect x='2' y='16' width='8' height='5.5' rx='2.75'/%3E%3Crect x='14' y='16' width='8' height='5.5' rx='2.75'/%3E%3C/svg%3E"); }

