/* Site styles for the home, Writing and Work pages.
   Colors and fonts follow the stonerOS brand template. Light or dark follows the device setting. */
:root {
  /* Brand colors, from the stonerOS brand template */
  --purple: #6d5acd;   /* systems */
  --steel:  #557bcc;   /* teams */
  --green:  #4a9960;   /* growth */
  --gold:   #b8941f;   /* toolkit */
  --coral:  #c06060;   /* stonerOS, energy */
  --rose:   #c47088;   /* creative, personal */
  --sky:    #3d61ad;   /* links, AA on the light background and the music band */

  --bg: #f1f0ed;
  --surface: #f8f7f4;
  --ink: #1a1a1a;
  --ink-2: #5e5d5a;
  --rule: #dad8d2;
  --tint-mix: 10%;
  --text-mix: 72%;
  --footer: #5a48b8;
  --shadow: 0 1px 2px rgba(20,20,20,.06), 0 18px 40px -24px rgba(20,20,20,.35);

  --f-head: "Inter", "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --purple: #a194f0; --steel: #8eaae8; --green: #73c38b; --gold: #dcbd52; --coral: #e58f8f; --rose: #e79fb6; --sky: #95b2f0;
    --bg: #151514; --surface: #1d1d1b; --ink: #edece8; --ink-2: #a7a59f; --rule: #33322f;
    --tint-mix: 13%; --text-mix: 88%; --footer: #3f3290;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 18px 40px -24px rgba(0,0,0,.8);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-serif); font-size: 18px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--sky); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; border-radius: 4px; }
.wrap {
  max-width: 1120px; margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
[data-c="systems"]  { --c: var(--purple); }
[data-c="teams"]    { --c: var(--steel); }
[data-c="growth"]   { --c: var(--green); }
[data-c="toolkit"]  { --c: var(--gold); }
[data-c="energy"]   { --c: var(--coral); }
[data-c="creative"] { --c: var(--rose); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); display: inline-block; flex: none; }

/* Header */
.top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; padding-block: 28px; font-family: var(--f-head); }
.wordmark { font-weight: 600; font-size: 15px; letter-spacing: -.01em; color: var(--ink); text-decoration: none; }
.top nav { display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 14px; }
.top nav a { color: var(--ink-2); text-decoration: none; }
.top nav a:hover { color: var(--ink); }

/* Hello */
.hello { padding-block: 56px 40px; max-width: 860px; }
.hi { font-family: var(--f-head); font-size: 15px; color: var(--ink-2); margin: 0 0 20px; }
.hi b { color: var(--ink); font-weight: 600; }
.hello h1 {
  margin: 0 0 24px; font-family: var(--f-serif); font-weight: 340; font-optical-sizing: auto;
  font-size: clamp(40px, 6vw, 76px); line-height: 1.05; letter-spacing: -.022em; text-wrap: balance;
}
.hello h1 em { font-style: italic; font-weight: 300; color: color-mix(in srgb, var(--purple) var(--text-mix), var(--ink)); }
.lede { margin: 0; color: var(--ink-2); font-size: 20px; max-width: 46ch; }

/* Three doors */
.doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding-block: 24px 88px; }
.door { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease; }
.door:hover { transform: translateY(-3px); }
.door .art { aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; position: relative; }
.door .cap { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; font-family: var(--f-head); }
.door .cap b { font-weight: 600; font-size: 16px; letter-spacing: -.01em; display: block; }
.door .cap small { font-size: 13px; color: var(--ink-2); }
.door .cap .go { color: var(--ink-2); transition: transform .2s ease, color .2s ease; }
.door:hover .go { transform: translateX(4px); color: var(--c); }
.art.app { background: color-mix(in srgb, var(--rose) var(--tint-mix), var(--surface)); }
.art.app img { width: 38%; border-radius: 22%; box-shadow: 0 18px 36px -16px rgba(0,0,0,.55); }
.art.read { background: color-mix(in srgb, var(--purple) var(--tint-mix), var(--surface)); padding: 28px; }
.art.read ul { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; gap: 10px; }
.art.read li { font-family: var(--f-serif); font-size: clamp(17px, 1.7vw, 21px); line-height: 1.2; letter-spacing: -.01em; display: flex; gap: 10px; align-items: baseline; }
.art.read li .dot { transform: translateY(-2px); }
.art.listen { background: #0d0d10; }
.art.listen img { width: 100%; height: 100%; object-fit: cover; }

/* Sections */
section { padding-block: 72px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 36px; }
.sec-head h2 { margin: 0; font-family: var(--f-serif); font-weight: 400; font-size: clamp(30px, 3.4vw, 42px); letter-spacing: -.02em; line-height: 1.1; }
.sec-head a { font-family: var(--f-head); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* Apps */
.feature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; margin-bottom: 56px; }
.feature .stage { border-radius: 16px; background: color-mix(in srgb, var(--rose) var(--tint-mix), var(--surface)); padding: 48px 24px; display: grid; place-items: center; }
.feature .stage img { width: min(58%, 280px); filter: drop-shadow(0 24px 32px rgba(0,0,0,.28)); }
.feature .info { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.app-icon { width: 76px; border-radius: 22%; box-shadow: var(--shadow); }
.live { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-head); font-size: 13px; font-weight: 500; color: color-mix(in srgb, var(--green) var(--text-mix), var(--ink)); }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 18%, transparent); }
.feature h3 { margin: 0; font-family: var(--f-head); font-weight: 600; font-size: clamp(36px, 4vw, 48px); letter-spacing: -.03em; line-height: 1.05; }
.feature p { margin: 0; color: var(--ink-2); font-size: 19px; max-width: 40ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; font-family: var(--f-head); font-size: 15px; font-weight: 500; margin-top: 6px; }
.actions a { text-decoration: none; }
.btn { display: inline-block; padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--bg) !important; }
.btn:hover { background: var(--rose); color: #fff !important; }

.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); }
.card .plate { aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: color-mix(in srgb, var(--c) var(--tint-mix), var(--surface)); margin-bottom: 8px; transition: transform .25s ease; }
.card:hover .plate { transform: translateY(-3px); }
.card .plate picture img { width: min(64%, 300px); border-radius: 12px; box-shadow: var(--shadow); transform: translateY(14%); }
.card .plate .mark { font-family: var(--f-serif); font-style: italic; font-weight: 300; font-size: clamp(40px, 5vw, 64px); letter-spacing: -.03em; color: color-mix(in srgb, var(--c) var(--text-mix), var(--ink)); }
.card h3 { margin: 0; font-family: var(--f-head); font-weight: 600; font-size: 22px; letter-spacing: -.02em; }
.card p { margin: 0; color: var(--ink-2); font-size: 17px; }
.card .more { font-family: var(--f-head); font-size: 14px; font-weight: 500; color: var(--sky); }

/* Writing */
.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.index li { border-bottom: 1px solid var(--rule); }
.index a { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 18px; align-items: baseline; padding: 20px 0; text-decoration: none; color: var(--ink); }
.index .t { font-family: var(--f-serif); font-size: 23px; line-height: 1.25; letter-spacing: -.01em; }
.index .k { font-family: var(--f-head); font-size: 13px; color: var(--ink-2); }
.index a:hover .t { text-decoration: underline; text-decoration-color: var(--c); text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* Music */
.band { background: color-mix(in srgb, var(--rose) var(--tint-mix), var(--bg)); }
.music { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.covers { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cover { text-decoration: none; color: var(--ink); font-family: var(--f-head); }
.cover img { width: 100%; border-radius: 6px; box-shadow: var(--shadow); transition: transform .25s ease; }
.cover:hover img { transform: translateY(-3px); }
.cover span { display: block; margin-top: 12px; font-size: 15px; font-weight: 600; }
.cover small { display: block; font-size: 13px; color: var(--ink-2); font-weight: 400; }
.notes h2 { margin: 0 0 16px; font-family: var(--f-serif); font-weight: 400; font-size: clamp(30px, 3.4vw, 42px); letter-spacing: -.02em; line-height: 1.1; }
.notes p { color: var(--ink-2); margin: 0 0 22px; font-size: 19px; max-width: 36ch; }
.notes .actions a { color: var(--sky); }

/* Teaching */
.teach { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.role { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 2px solid var(--c); text-decoration: none; color: var(--ink); }
.role .when { font-family: var(--f-head); font-size: 13px; color: var(--ink-2); }
.role h3 { margin: 0; font-family: var(--f-head); font-weight: 600; font-size: 19px; letter-spacing: -.015em; line-height: 1.25; }
.role p { margin: 0; color: var(--ink-2); font-size: 16px; }
.role .more { font-family: var(--f-head); font-size: 14px; font-weight: 500; color: var(--sky); margin-top: 2px; }
.role:hover h3 { text-decoration: underline; text-decoration-color: var(--c); text-underline-offset: 4px; }

/* Footer: about + contact */
footer { background: var(--footer); color: #fff; margin-top: 32px; }
footer .wrap { padding-block: 72px 48px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; }
footer h2 { margin: 0 0 18px; font-family: var(--f-serif); font-weight: 300; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -.02em; }
footer .bio { margin: 0 0 24px; font-size: 19px; opacity: .9; max-width: 40ch; }
.facts { margin: 0; font-family: var(--f-head); font-size: 14px; display: flex; flex-wrap: wrap; gap: 16px 40px; }
.facts dt { font-size: 12px; opacity: .7; margin-bottom: 2px; }
.facts dd { margin: 0; font-weight: 500; }
.contact { font-family: var(--f-head); font-size: 16px; display: grid; gap: 14px; align-content: end; }
.contact a { color: #fff; text-decoration: none; display: flex; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.3); padding-bottom: 12px; }
.contact a:hover { border-color: #fff; }
.fine { grid-column: 1 / -1; font-family: var(--f-head); font-size: 12px; opacity: .7; margin: 16px 0 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.spectrum { display: flex; gap: 3px; }
.spectrum i { width: 18px; height: 4px; border-radius: 2px; background: var(--c); }

@media (max-width: 860px) {
  .doors { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-bottom: 56px; }
  .door { flex-direction: row; }
  .door .art { aspect-ratio: 1; width: 112px; flex: none; }
  .door .art.read { padding: 14px; }
  .door .art.read li { font-size: 12px; gap: 6px; }
  .door .art.read li:nth-child(n+3) { display: none; }
  .door .cap { flex: 1; }
  .feature, .music, footer .wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .feature .stage { padding: 36px 24px; }
  .pair { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .teach { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  section { padding-block: 52px; }
  .hello { padding-block: 32px 28px; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .index .t { font-size: 20px; }
  .index .k { display: none; }
  .index a { grid-template-columns: 12px minmax(0, 1fr); }
}

/* Writing and Work pages */
.page-head { padding-block: 40px 24px; max-width: 760px; }
.page-head h1 { margin: 0 0 14px; font-family: var(--f-serif); font-weight: 340; font-size: clamp(40px, 5.4vw, 64px); line-height: 1.05; letter-spacing: -.022em; }
.page-head p { margin: 0; color: var(--ink-2); font-size: 20px; max-width: 46ch; }
.group { padding-block: 40px; }
.group h2 { margin: 0 0 8px; font-family: var(--f-head); font-weight: 600; font-size: 15px; letter-spacing: .01em; display: flex; align-items: center; gap: 10px; }
.group > p { margin: 0 0 20px; color: var(--ink-2); font-size: 17px; max-width: 56ch; }
.index .d { display: block; margin-top: 4px; font-family: var(--f-serif); font-size: 16px; line-height: 1.45; color: var(--ink-2); letter-spacing: 0; }
.index a:hover .t.with-d { text-decoration: none; }
.index a:hover .tt { text-decoration: underline; text-decoration-color: var(--c); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.note { font-family: var(--f-head); font-size: 13px; color: var(--ink-2); }
.foot-min { background: var(--footer); color: #fff; margin-top: 48px; }
.foot-min .wrap { padding-block: 36px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; font-family: var(--f-head); font-size: 14px; }
.foot-min a { color: #fff; }
