/* Self-hosted fonts (SIL Open Font License; see fonts/LICENSES.md). Subsets: latin, latin-ext, runic. */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url(/fonts/fraunces-latin-ext-ed6f8e85.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: 'Fraunces';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url(/fonts/fraunces-latin-9e509503.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: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/ibm-plex-sans-latin-ext-effb1ea2.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: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/ibm-plex-sans-latin-f6667783.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: 'Noto Sans Runic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/noto-sans-runic-runic-ed20640a.woff2) format('woff2');
  unicode-range: U+16A0-16F8;
}
@font-face {
  font-family: 'Noto Sans Runic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/noto-sans-runic-latin-ext-a3aef2d6.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: 'Noto Sans Runic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/noto-sans-runic-latin-008e9d99.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;
}

/* Layout: one left-aligned editorial column, 66ch wide, generous vertical rhythm; the rune Wynn (ᚹ) is the single mark, set once, large and quiet. */
:root {
  --bg: #141311;            /* charcoal, warm */
  --bg-raise: #1c1a17;      /* slightly lifted surface */
  --fg: #efe8db;            /* warm ivory */
  --fg-soft: #b9b0a2;       /* secondary text */
  --rule: #2d2a25;          /* hairline */
  --accent: #b08d57;        /* restrained bronze */
  --accent-ink: #141311;    /* text on bronze */
  --focus: #d8b77a;
  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --runic: "Noto Sans Runic", "Segoe UI Symbol", "Apple Symbols", Symbola, sans-serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f4efe6; --bg-raise: #ece5d8; --fg: #1b1916; --fg-soft: #5e574d;
    --rule: #d9d0c1; --accent: #7a5c30; --accent-ink: #f4efe6; --focus: #7a5c30;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f4efe6; --bg-raise: #ece5d8; --fg: #1b1916; --fg-soft: #5e574d;
  --rule: #d9d0c1; --accent: #7a5c30; --accent-ink: #f4efe6; --focus: #7a5c30;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: clamp(1.0rem, 0.95rem + 0.3vw, 1.125rem);
  line-height: 1.6;
  padding-inline: max(clamp(1rem, 4vw, 2.5rem), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  padding-block: 0;
  min-height: 100%;
}
.page { max-width: 66ch; margin-inline: auto; }
a { color: inherit; text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* Header */
.top {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-block: 1.25rem 0;
  font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-soft);
}
.top a { text-decoration: none; display: inline-block; padding-block: 0.75rem; }
.top a:hover { color: var(--fg); }
.top nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
/* phones: the wordmark and two compact rows of links instead of three tall ones */
@media (max-width: 560px) {
  .top { padding-block: 0.75rem 0; row-gap: 0; }
  .top a { padding-block: 0.4rem; }
  .top nav { gap: 0 1.1rem; }
}

/* Hero */
.hero { padding-block: clamp(3rem, 12vh, 7rem) clamp(2.5rem, 8vh, 4.5rem); border-bottom: 1px solid var(--rule); }
.rune {
  font-family: var(--runic);
  font-size: clamp(5rem, 18vw, 9rem);
  line-height: 0.9;
  color: var(--accent);
  display: block;
  margin: 0 0 1.25rem -0.06em;
  opacity: 0.92;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  font-size: clamp(3rem, 2.2rem + 4vw, 5rem);   /* the same size as the project names on tilian.ai and gearwian.ai */
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0 0 1.25rem;
  text-wrap: balance;
}
.hero p.lede {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.65rem);
  line-height: 1.35;
  margin: 0;
  max-width: 30ch;
  text-wrap: pretty;
  color: var(--fg);
}
.hero .sub { margin: 1.5rem 0 0; color: var(--fg-soft); max-width: 48ch; }

/* Sections */
section { padding-block: clamp(2.5rem, 7vh, 4rem); border-bottom: 1px solid var(--rule); }
section:last-of-type { border-bottom: 0; }
.eyebrow {
  display: block; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.9rem;
}
h2 {
  font-family: var(--display); font-weight: 400; font-variation-settings: "opsz" 72;
  font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.4rem); line-height: 1.12; letter-spacing: -0.01em;
  margin: 0 0 1.25rem; text-wrap: balance;
}
p { margin: 0 0 1.1rem; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

/* Principles */
.principles { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.principles li { display: grid; grid-template-columns: auto 1fr; gap: 0.9rem 1rem; align-items: baseline; }
.principles .k { font-family: var(--display); font-weight: 500; font-size: 1.15rem; color: var(--fg); }
.principles .v { color: var(--fg-soft); }
@media (max-width: 480px) { .principles li { grid-template-columns: 1fr; gap: 0.3rem; } }

/* Projects */
.projects { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.projects li {
  display: grid; grid-template-columns: 1fr auto; gap: 0.25rem 1.5rem; align-items: baseline;
  padding-block: 1rem; border-bottom: 1px solid var(--rule);
}
.projects .name { font-family: var(--display); font-weight: 500; font-size: 1.2rem; margin: 0; }
.projects .aka { grid-column: 1 / -1; margin: -0.2rem 0 0.15rem; font-size: 0.8rem; letter-spacing: 0.06em; color: var(--fg-soft); }
.projects .desc { grid-column: 1 / -1; color: var(--fg-soft); margin: 0; max-width: 58ch; }
.status {
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-soft);
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
.status::before { content: ""; display: inline-block; width: 0.5em; height: 0.5em; border-radius: 50%; background: var(--rule); margin-right: 0.55em; vertical-align: middle; }
.status.live::before { background: var(--accent); }

/* Contact */
.contact-row { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; margin-top: 1rem; }
.addr {
  font-family: var(--display); font-size: clamp(1.25rem, 1rem + 1.2vw, 1.75rem); font-weight: 400;
  letter-spacing: 0.005em; user-select: all; -webkit-user-select: all; min-width: 0; overflow-wrap: anywhere;
}
.btn {
  font: inherit; font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase;
  background: transparent; color: var(--fg); border: 1px solid var(--accent); border-radius: 999px;
  padding: 0.55rem 1rem; cursor: pointer; min-height: 44px; min-width: 44px;
}
.btn:hover { background: var(--accent); color: var(--accent-ink); }
.note { font-size: 0.9rem; color: var(--fg-soft); }

/* Footer */
footer {
  padding-block: 2.5rem 3rem; color: var(--fg-soft); font-size: 0.85rem;
  display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; justify-content: space-between; align-items: baseline;
  border-top: 1px solid var(--rule);
}
footer .mark { font-family: var(--runic); color: var(--accent); font-size: 1.1rem; margin-right: 0.5rem; }

@media (prefers-reduced-motion: no-preference) {
  .hero > * { animation: rise 700ms cubic-bezier(.2,.7,.2,1) both; }
  .hero h1 { animation-delay: 80ms; } .hero .lede { animation-delay: 160ms; } .hero .sub { animation-delay: 240ms; }
  @keyframes rise { from { opacity: 0.001; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
