/* Sutrasphere. Static stylesheet, no build step and no external fonts. */

:root {
  --bg:        #fbfaf8;
  --bg-alt:    #f4f1ec;
  --surface:   #ffffff;
  --text:      #15181d;
  --text-dim:  #565e6b;
  --line:      #e3dfd7;
  --line-firm: #cfc9bd;
  --accent:    #96571a;
  --accent-ink:#7a4615;
  --accent-bg: #f6ecdd;
  --radius: 10px;
  --wrap: 1080px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:        #0e1013;
    --bg-alt:    #14171c;
    --surface:   #171a20;
    --text:      #ecebe8;
    --text-dim:  #9aa3b0;
    --line:      #262a31;
    --line-firm: #363b44;
    --accent:    #e0a35c;
    --accent-ink:#f0bd80;
    --accent-bg: #231b11;
  }
}

:root[data-theme="dark"] {
  --bg:        #0e1013;
  --bg-alt:    #14171c;
  --surface:   #171a20;
  --text:      #ecebe8;
  --text-dim:  #9aa3b0;
  --line:      #262a31;
  --line-firm: #363b44;
  --accent:    #e0a35c;
  --accent-ink:#f0bd80;
  --accent-bg: #231b11;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-ink); }

h1, h2, h3 { line-height: 1.18; letter-spacing: -0.02em; margin: 0 0 .6rem; font-weight: 640; }
h1 { font-size: clamp(2.1rem, 5.6vw, 3.5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.08rem; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }

.skip {
  position: absolute; left: -9999px;
  background: var(--accent); color: #fff; padding: .6rem 1rem; z-index: 10;
}
.skip:focus { left: .5rem; top: .5rem; }

/* Header */
.site {
  position: sticky; top: 0; z-index: 5;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
       min-height: 62px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--text);
         text-decoration: none; font-weight: 660; letter-spacing: -0.02em; font-size: 1.05rem; }
.mark { width: 24px; height: 24px; flex: none; fill: none; stroke: var(--accent);
        stroke-width: 1.3; stroke-linecap: round; }
.site nav { display: flex; align-items: center; gap: clamp(.6rem, 2vw, 1.4rem); }
.site nav a { color: var(--text-dim); text-decoration: none; font-size: .93rem; }
.site nav a:hover { color: var(--text); }
.nav-cta { border: 1px solid var(--line-firm); border-radius: 7px; padding: .3rem .75rem; }
.nav-cta:hover { border-color: var(--accent); color: var(--accent) !important; }

/* Hero */
.hero { padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(2.5rem, 5vw, 4rem); }
.kicker {
  font-size: .76rem; text-transform: uppercase; letter-spacing: .13em;
  color: var(--accent); font-weight: 650; margin-bottom: .9rem;
}
.hero h1 { max-width: 20ch; }
.lead { font-size: clamp(1.06rem, 2vw, 1.22rem); color: var(--text-dim); max-width: 60ch; }
.hero .lead { margin-top: 1.1rem; }

.cta { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.8rem 0 0; }
.btn {
  display: inline-block; padding: .62rem 1.15rem; border-radius: 8px;
  border: 1px solid var(--line-firm); color: var(--text); text-decoration: none;
  font-size: .95rem; font-weight: 550; background: var(--surface);
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }

.trust {
  list-style: none; margin: 2.6rem 0 0; padding: 1.15rem 0 0;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: .4rem clamp(1.2rem, 4vw, 2.8rem);
  color: var(--text-dim); font-size: .92rem;
}
.trust b {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.12rem; color: var(--text); margin-right: .4rem; font-weight: 620;
}

/* Bands */
.band { padding: clamp(3rem, 7vw, 5.2rem) 0; border-top: 1px solid var(--line); }
.band.alt { background: var(--bg-alt); }
.section-lead { color: var(--text-dim); max-width: 62ch; margin-top: .7rem; }

/* Practice cards */
.cards { display: grid; gap: 1.1rem; margin-top: 2.4rem;
         grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem 1.4rem;
}
.card h3 { color: var(--accent); margin-bottom: .75rem; }
.card p { font-size: .96rem; color: var(--text-dim); }
.facts { list-style: none; margin: 1.1rem 0 0; padding: .9rem 0 0;
         border-top: 1px solid var(--line); font-size: .89rem; color: var(--text-dim); }
.facts li { position: relative; padding-left: 1.05rem; margin-bottom: .45rem; }
.facts li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}

/* Steadyline */
.product { display: grid; gap: clamp(1.6rem, 4vw, 3.2rem);
           grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.product h2 { margin-bottom: .4rem; }
.product .lead { margin-bottom: 1.1rem; }
.product p { color: var(--text-dim); }
.product .note {
  font-size: .9rem; border-left: 2px solid var(--accent);
  background: var(--accent-bg); padding: .7rem .9rem; border-radius: 0 6px 6px 0;
  color: var(--text);
}
.product-list { list-style: none; margin: 0; padding: 0; }
.product-list li {
  border-top: 1px solid var(--line); padding: .95rem 0;
  font-size: .95rem; color: var(--text-dim);
}
.product-list li:last-child { border-bottom: 1px solid var(--line); }
.product-list b { color: var(--text); font-weight: 600; }

/* Stats and orgs */
.stats { display: grid; gap: 1rem; margin: 2.3rem 0 2.6rem;
         grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.stat {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); padding: 1.2rem 1.3rem;
}
.stat b {
  display: block; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(1.9rem, 4.4vw, 2.5rem); line-height: 1; letter-spacing: -0.03em;
  color: var(--accent);
}
.stat span { display: block; margin-top: .5rem; font-size: .88rem; color: var(--text-dim); }

.orgs { display: grid; gap: 1.1rem;
        grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.org { border-top: 2px solid var(--accent); padding-top: 1rem; }
.org p { font-size: .93rem; color: var(--text-dim); }

/* Open work tiles */
.grid-links { display: grid; gap: 1rem; margin-top: 2.3rem;
              grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.tile {
  display: block; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.3rem 1.3rem;
  transition: border-color .15s ease, transform .15s ease;
}
.tile:hover { border-color: var(--accent); transform: translateY(-2px); }
.tile h3 {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .97rem; letter-spacing: -0.01em;
}
.tile p { margin: .55rem 0 0; font-size: .91rem; color: var(--text-dim); }

/* Method */
.method { display: grid; gap: 1.6rem 2.2rem; margin-top: 2.3rem;
          grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.method h3 { margin-bottom: .45rem; }
.method p { font-size: .94rem; color: var(--text-dim); margin: 0; }

/* Contact */
.contact { text-align: center; }
.contact .lead { margin-inline: auto; }
.mail { margin-top: 1.8rem; }
.mail a {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(1rem, 2.6vw, 1.3rem); font-weight: 600;
  border-bottom: 1px solid var(--accent); text-decoration: none; padding-bottom: 2px;
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2.2rem 0 3rem;
               background: var(--bg-alt); }
.foot { display: flex; flex-wrap: wrap; gap: .8rem 1.5rem;
        align-items: center; justify-content: space-between; }
.foot p { margin: 0; font-size: .87rem; color: var(--text-dim); }
.foot nav { display: flex; gap: 1.2rem; }
.foot nav a { font-size: .87rem; text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .bar { flex-wrap: wrap; padding-block: .6rem; }
  .site nav { width: 100%; flex-wrap: wrap; gap: .4rem .9rem; }
  .site nav a { font-size: .86rem; }
  .trust { gap: .55rem 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile { transition: none; }
}

/* ---------- multi page patterns ---------- */

.bar { flex-wrap: wrap; }
.site nav { flex-wrap: wrap; }
.site nav a.active { color: var(--text); font-weight: 580; }
.site nav a.active::after {
  content: ""; display: block; height: 2px; margin-top: 2px;
  background: var(--accent); border-radius: 2px;
}

/* Page header, used by every page except the home page */
.page-head {
  padding: clamp(2.6rem, 6vw, 4.4rem) 0 clamp(1.6rem, 3vw, 2.4rem);
  border-bottom: 1px solid var(--line);
}
.page-head h1 { font-size: clamp(1.9rem, 4.6vw, 2.9rem); max-width: 24ch; }
.page-head .lead { margin-top: .9rem; }
.page-head .note { margin-top: 1.2rem; max-width: 56ch; }
.page-head + .band { border-top: 0; }

/* Two column prose */
.pair {
  display: grid; gap: clamp(1.8rem, 5vw, 3.6rem);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: start;
}
.pair h2 { font-size: clamp(1.25rem, 2.4vw, 1.5rem); }
.pair p { color: var(--text-dim); }

/* A practice card that is itself a link */
.card.linked { text-decoration: none; color: inherit; display: flex; flex-direction: column;
               transition: border-color .15s ease, transform .15s ease; }
.card.linked:hover { border-color: var(--accent); transform: translateY(-2px); }
.card.linked p { flex: 1; }
.more { color: var(--accent); font-size: .88rem; font-weight: 560; margin-top: .4rem; }
.more::after { content: " \2192"; }

.facts.big { font-size: .95rem; border-top: 0; padding-top: 0; margin-top: 1rem; }
.facts.big li { margin-bottom: .6rem; padding-left: 1.15rem; }

/* Related links row at the foot of a page */
.next {
  display: flex; flex-wrap: wrap; gap: .5rem 1.6rem;
  margin: 2.2rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--line);
  font-size: .94rem;
}
.next a { text-decoration: none; font-weight: 540; }
.next a:hover { text-decoration: underline; }
.next a::after { content: " \2192"; opacity: .6; }

/* Record table */
.rec { width: 100%; border-collapse: collapse; margin: 1.6rem 0 1.4rem; font-size: .94rem; }
.rec th, .rec td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--line); }
.rec th {
  font-size: .76rem; text-transform: uppercase; letter-spacing: .09em;
  color: var(--text-dim); font-weight: 640; border-bottom-color: var(--line-firm);
}
.rec td:first-child {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--accent); white-space: nowrap;
}
.rec td:last-child, .rec th:last-child { text-align: right;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.rec td { color: var(--text-dim); }

/* Command block */
.code {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.1rem; overflow-x: auto; font-size: .86rem; line-height: 1.7;
  color: var(--text); margin: 1.2rem 0;
}
.code code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.contact .lead, .page-head .lead { margin-inline: 0; }
