/* ============================================================
   Art Mason — technical operations
   One stylesheet for the whole site.
   Colors are defined once, at the top. Change them here.
   ============================================================ */

:root {
  color-scheme: light;
  --bg:        #E9ECE4;  /* paper */
  --bg-sunk:   #E2E6DC;  /* recessed bands */
  --ink:       #16242B;  /* body text */
  --ink-soft:  #4A5B58;  /* secondary text */
  --rule:      #C4CABD;
  --rule-soft: #D6DACE;
  --link:      #1D4E63;  /* anything interactive */
  --mark:      #3A5F44;  /* structural marks */
  --coin:      #7A4F2E;  /* money figures only */
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg:        #101A1D;
  --bg-sunk:   #162326;
  --ink:       #E6E7DE;
  --ink-soft:  #A5B2AB;
  --rule:      #2E3E42;
  --rule-soft: #243235;
  --link:      #8CBDCE;
  --mark:      #96B99C;
  --coin:      #CFA478;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Spectral, Georgia, 'Times New Roman', serif;
  font-size: 1.0625rem;
  line-height: 1.68;
  transition: background-color .25s ease, color .25s ease;
}
@media (min-width: 40em) { body { font-size: 1.125rem; } }

h1, h2, h3, h4, .sans { font-family: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; }

a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 2px; }

img { max-width: 100%; height: auto; display: block; }

/* ---------- layout ---------- */

.wrap { max-width: 40rem; margin-inline: auto; padding-inline: 1.375rem; }
.wrap-wide { max-width: 58rem; margin-inline: auto; padding-inline: 1.375rem; }

section { padding-block: 3rem; }
@media (min-width: 40em) { section { padding-block: 4rem; } }
section + section { border-top: 1px solid var(--rule-soft); }
.sunk { background: var(--bg-sunk); border-top: 1px solid var(--rule-soft); }

/* ---------- header ---------- */

.site-head {
  border-bottom: 1px solid var(--rule);
}
.head-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.5rem;
  padding-block: 1.1rem;
}
.wordmark {
  font-family: 'Public Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -.01em;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
  line-height: 1.25;
}
.wordmark span {
  display: block;
  font-weight: 400;
  font-size: .8125rem;
  color: var(--ink-soft);
}
nav.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.25rem;
  font-family: 'Public Sans', system-ui, sans-serif;
  font-size: .9375rem;
}
nav.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  padding-block: .15rem;
  border-bottom: 2px solid transparent;
}
nav.site-nav a:hover { color: var(--ink); }
nav.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--mark); }

.theme {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .35rem .7rem;
  font-family: 'Public Sans', system-ui, sans-serif;
  font-size: .8125rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 999px;
  cursor: pointer;
}
.theme:hover { border-color: var(--ink-soft); }
.theme svg { width: 13px; height: 13px; display: block; }
html[data-theme="light"] .theme .sun { display: none; }
html[data-theme="dark"] .theme .moon { display: none; }

/* ---------- type ---------- */

h1 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.015em;
  margin: 0 0 1.25rem;
}
@media (min-width: 40em) { h1 { font-size: 1.875rem; } }

h2 {
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.008em;
  margin: 0 0 .9rem;
}
h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 .4rem;
}

p { margin: 0 0 1.15rem; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: 1.375rem;
  line-height: 1.45;
  font-weight: 300;
  letter-spacing: -.01em;
  margin: 0 0 1.5rem;
  text-wrap: pretty;
}
@media (min-width: 40em) { .lede { font-size: 1.75rem; } }

.hero .lede { max-width: 24ch; }
@media (min-width: 40em) { .hero .lede { font-size: 2.125rem; max-width: 22ch; } }

.soft { color: var(--ink-soft); }
.coin { color: var(--coin); font-weight: 600; font-variant-numeric: lining-nums; }

.kicker {
  font-family: 'Public Sans', system-ui, sans-serif;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--mark);
  margin: 0 0 1rem;
}

/* ---------- buttons ---------- */

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; margin-top: 1.75rem; }
.btn {
  font-family: 'Public Sans', system-ui, sans-serif;
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--bg);
  background: var(--link);
  padding: .7rem 1.15rem;
  border-radius: 3px;
}
.btn:hover { background: var(--ink); }
.plain {
  font-family: 'Public Sans', system-ui, sans-serif;
  font-size: .9375rem;
}

/* ---------- blocks ---------- */

.blocks {
  display: grid;
  gap: 1.75rem;
  margin-top: 2rem;
}
@media (min-width: 46em) {
  .blocks { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .blocks.two { grid-template-columns: repeat(2, 1fr); }
}
.blocks > div { border-top: 1px solid var(--rule); padding-top: .9rem; }
.blocks p { font-size: .9375rem; color: var(--ink-soft); margin: 0; }

.entry { border-top: 1px solid var(--rule-soft); padding-block: 1.5rem; }
.entry:first-of-type { border-top: 1px solid var(--rule); }
.entry p:last-child { margin-bottom: 0; }

/* ---------- lists ---------- */

.tight { margin: 0 0 1.15rem; padding: 0; list-style: none; }
.tight li { padding-left: 1.15rem; position: relative; margin-bottom: .5rem; }
.tight li::before {
  content: ""; position: absolute; left: 0; top: .74em;
  width: .45rem; height: 1px; background: var(--mark);
}

/* ---------- offer ladder ---------- */

.ladder { margin: 1.5rem 0; padding: 0; list-style: none; }
.ladder > li { padding-block: 1.25rem; border-top: 1px solid var(--rule-soft); }
.ladder > li:first-child { border-top: 1px solid var(--rule); }
.ladder h3 { margin-bottom: .2rem; }
.ladder .price {
  font-family: 'Public Sans', system-ui, sans-serif;
  font-size: .875rem;
  color: var(--coin);
  font-variant-numeric: lining-nums;
  display: block;
  margin-bottom: .5rem;
}
.ladder p { font-size: .9375rem; color: var(--ink-soft); margin: 0; }

.note {
  font-size: .9375rem;
  color: var(--ink-soft);
  border-left: 2px solid var(--rule);
  padding-left: 1rem;
  margin: 1.5rem 0 0;
}

/* ---------- figures ---------- */

figure { margin: 2rem 0; }
figure img { border-radius: 2px; }
figcaption {
  font-family: 'Public Sans', system-ui, sans-serif;
  font-size: .8125rem;
  color: var(--ink-soft);
  margin-top: .6rem;
  line-height: 1.5;
}
/* Placeholder — replace the whole .ph div with an <img> when you have the photo */
.ph {
  border: 1px dashed var(--rule);
  background: var(--bg-sunk);
  min-height: 13rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  font-family: 'Public Sans', system-ui, sans-serif;
  font-size: .8125rem;
  color: var(--ink-soft);
  border-radius: 2px;
}
.portrait { max-width: 20rem; }

/* ---------- writing index ---------- */

.post-list { list-style: none; margin: 2rem 0 0; padding: 0; }
.post-list li { border-top: 1px solid var(--rule-soft); padding-block: 1.5rem; }
.post-list li:first-child { border-top: 1px solid var(--rule); }
.post-list h2 { margin-bottom: .35rem; }
.post-list h2 a { text-decoration: none; color: var(--ink); }
.post-list h2 a:hover { color: var(--link); text-decoration: underline; }
.meta {
  font-family: 'Public Sans', system-ui, sans-serif;
  font-size: .8125rem;
  color: var(--ink-soft);
  margin: 0 0 .5rem;
}
.post-list p.summary { color: var(--ink-soft); font-size: .9375rem; margin: 0; }

/* ---------- article ---------- */

.article h2 { margin-top: 2.5rem; }
.article h3 { margin-top: 2rem; }
.article ul, .article ol { padding-left: 1.25rem; margin: 0 0 1.15rem; }
.article li { margin-bottom: .5rem; }
.article blockquote {
  margin: 1.75rem 0;
  padding-left: 1.25rem;
  border-left: 2px solid var(--mark);
  color: var(--ink-soft);
  font-size: 1.0625rem;
}
.article hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }
.article code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .875em;
  background: var(--bg-sunk);
  padding: .1em .35em;
  border-radius: 2px;
}

/* ---------- faq ---------- */

.qa { border-top: 1px solid var(--rule-soft); padding-block: 1.75rem; }
.qa:first-of-type { border-top: 1px solid var(--rule); }
.qa h2 { font-size: 1.0625rem; margin-bottom: .6rem; }

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid var(--rule);
  padding-block: 2rem 3rem;
  font-family: 'Public Sans', system-ui, sans-serif;
  font-size: .8125rem;
  color: var(--ink-soft);
}
.foot-inner { display: flex; flex-wrap: wrap; gap: .5rem 2rem; }
.site-foot a { color: var(--ink-soft); }

/* ---------- entrance ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero > * { animation: settle .7s cubic-bezier(.2,.7,.3,1) both; }
  .hero .lede { animation-delay: .05s; }
  .hero .sub { animation-delay: .15s; }
  .hero .actions { animation-delay: .25s; }
  @keyframes settle {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
  }
}
