/* Zachri Studio — approved 15 Nov 2026: Pomegranate + Ysabeau Office, light only. */

@font-face {
  font-family: "Ysabeau Office";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/fonts/ysabeau-office-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Ysabeau Office";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/fonts/ysabeau-office-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Ysabeau Office";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/fonts/ysabeau-office-greek.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

:root {
  --accent: #b23a48;   /* Pomegranate: "Zachri", link hover, focus ring. Nothing else. */
  --ink: #1b1b1a;
  --grey: #5d5c58;
  --line: #e7e6e2;
  --mist: #f7f7f5;
  --paper: #ffffff;
  --font: "Ysabeau Office", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 12px; background: var(--paper); padding: 6px 12px; border: 1px solid var(--line); border-radius: 6px; z-index: 10; }

/* Wordmark */
.wm { font-family: var(--font); white-space: nowrap; line-height: 1; text-decoration: none; letter-spacing: -0.005em; }
.wm .z { color: var(--accent); font-weight: 650; }
.wm .s { color: var(--ink); font-weight: 400; }

/* Links in running text */
.u { text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.u:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* ---------- Home ---------- */
.wrap { max-width: 720px; margin: 0 auto; padding: 44px max(32px, env(safe-area-inset-right, 0px)) 56px max(32px, env(safe-area-inset-left, 0px)); }
.head .wm { font-size: 20px; }
.about { margin: 72px 0 0; max-width: 34rem; font-size: 19px; line-height: 1.55; text-wrap: pretty; }
.sec { margin-top: 64px; }
.label { font-size: 13px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--grey); margin: 0 0 22px; }
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 32px 24px; list-style: none; margin: 0; padding: 0; }
.app { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ic { width: 72px; height: 72px; border-radius: 17px; display: block; margin-bottom: 12px; overflow: hidden; box-shadow: 0 0 0 1px rgba(27, 27, 26, 0.06); }
.ic img, .ic svg { width: 100%; height: 100%; display: block; }
.ic.letter { display: flex; align-items: center; justify-content: center; background: var(--mist); color: var(--grey); font-size: 32px; font-weight: 500; }
.app b { font-weight: 600; }
.app .d { color: var(--grey); font-size: 15px; }
.app .l { font-size: 15px; margin-top: 6px; display: flex; gap: 12px; flex-wrap: wrap; }
.app .st { color: var(--grey); }
.pill { display: inline-flex; align-items: center; font-size: 12.5px; line-height: 1; color: var(--grey); background: var(--mist); border: 1px solid var(--line); border-radius: 999px; padding: 4px 9px; white-space: nowrap; align-self: center; }
.app .l { align-items: center; }
.contact { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 19px; }
.foot { margin-top: 88px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--grey); font-size: 14px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

@media (max-width: 520px) {
  .wrap { padding: 28px max(20px, env(safe-area-inset-right, 0px)) 40px max(20px, env(safe-area-inset-left, 0px)); }
  .about { margin-top: 48px; font-size: 18px; }
  .sec { margin-top: 48px; }
  .apps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Docs ---------- */
.dhead { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 18px max(32px, env(safe-area-inset-right, 0px)) 18px max(32px, env(safe-area-inset-left, 0px)); border-bottom: 1px solid var(--line); }
.dhead .wm { font-size: 18px; }
.dhead .sl { color: var(--line); }
.dhead .p { color: var(--grey); text-decoration: none; }
.dhead .p:hover { color: var(--ink); }
.dbody { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 48px; max-width: 1040px; padding: 36px max(32px, env(safe-area-inset-right, 0px)) 64px max(32px, env(safe-area-inset-left, 0px)); }
.dnav ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; position: sticky; top: 24px; font-size: 15px; }
.dnav a { display: block; text-decoration: none; color: var(--grey); padding: 5px 10px; border-radius: 6px; }
.dnav a:hover { color: var(--ink); background: var(--mist); }
.dnav a[aria-current="page"] { color: var(--ink); background: var(--mist); font-weight: 600; }
.dmenu { display: none; }
.dmain { min-width: 0; }

.doc { max-width: 42rem; min-width: 0; }
.doc h1 { font-size: 30px; font-weight: 600; line-height: 1.2; margin: 0 0 12px; text-wrap: balance; }
.doc h2 { font-size: 20px; font-weight: 600; margin: 36px 0 10px; }
.doc p { margin: 0 0 14px; }
.doc .lead { font-size: 19px; }
.doc ul, .doc ol.steps { padding-left: 1.2em; margin: 0 0 14px; }
.doc li { margin: 4px 0; }
.doc ol.steps li { margin: 10px 0; padding-left: 4px; }
.doc code { font-family: var(--mono); font-size: 0.84em; background: var(--mist); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
.doc pre { font-family: var(--mono); font-size: 13.5px; line-height: 1.55; background: var(--mist); padding: 14px 16px; border-radius: 8px; overflow-x: auto; margin: 8px 0 16px; }
.doc pre code { background: none; padding: 0; font-size: inherit; overflow-wrap: normal; }
.doc a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.doc a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.doc blockquote { margin: 0 0 14px; border-left: 2px solid var(--line); padding-left: 14px; }
.tbl { overflow-x: auto; margin: 8px 0 18px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15.5px; min-width: 440px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 600; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey); }
.doc td:first-child { white-space: nowrap; font-weight: 600; padding-right: 18px; }
.pn { display: flex; justify-content: space-between; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.pn a { text-decoration: none; border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; display: grid; font-size: 15px; min-width: 0; }
.pn a small { color: var(--grey); font-size: 13px; }
.pn a:hover { border-color: var(--grey); }
.pn .next { margin-left: auto; text-align: right; }
.legal { color: var(--grey); font-size: 14px; border-top: 1px solid var(--line); margin-top: 44px; padding-top: 14px; }

@media (max-width: 760px) {
  .dhead { padding: 16px max(20px, env(safe-area-inset-right, 0px)) 16px max(20px, env(safe-area-inset-left, 0px)); }
  .dbody { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 16px max(20px, env(safe-area-inset-right, 0px)) 48px max(20px, env(safe-area-inset-left, 0px)); }
  .dnav { display: none; }
  .dmenu { display: block; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 12px; }
  .dmenu summary { cursor: pointer; padding: 10px 14px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
  .dmenu summary::-webkit-details-marker { display: none; }
  .dmenu summary::after { content: "Pages"; color: var(--grey); font-weight: 400; }
  .dmenu ol { list-style: none; margin: 0; padding: 4px 6px 8px; border-top: 1px solid var(--line); }
  .dmenu a { display: block; padding: 7px 8px; text-decoration: none; color: var(--grey); border-radius: 6px; }
  .dmenu a[aria-current="page"] { color: var(--ink); font-weight: 600; }
  .doc h1 { font-size: 26px; }
}

/* ---------- 404 ---------- */
.nf { margin-top: 72px; }
.nf h1 { font-size: 30px; font-weight: 600; margin: 0 0 10px; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; } }
