/* Barrowridge — landing page
   Restrained, typographic, no dependencies. Light and dark. */

:root {
  --paper:      #f7f5f1;
  --ink:        #17181a;
  --ink-soft:   #4a4c50;
  --ink-faint:  #8a8880;
  --rule:       #ddd8ce;
  --accent:     #6b5f4c;
  --measure:    36rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:     #131414;
    --ink:       #e9e6e0;
    --ink-soft:  #b0aca4;
    --ink-faint: #7c786f;
    --rule:      #2c2d2c;
    --accent:    #c2b394;
  }
}

:root[data-theme="light"] {
  --paper:     #f7f5f1;
  --ink:       #17181a;
  --ink-soft:  #4a4c50;
  --ink-faint: #8a8880;
  --rule:      #ddd8ce;
  --accent:    #6b5f4c;
}

:root[data-theme="dark"] {
  --paper:     #131414;
  --ink:       #e9e6e0;
  --ink-soft:  #b0aca4;
  --ink-faint: #7c786f;
  --rule:      #2c2d2c;
  --accent:    #c2b394;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0 1.5rem;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

p { color: var(--ink-soft); }

a { color: var(--ink); text-decoration-color: var(--rule); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }

/* ---------- masthead ---------- */

.masthead {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 3rem 0 0;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  font-family: ui-serif, Georgia, serif;
  font-size: 1.0625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mark {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  color: var(--accent);
}

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

main {
  max-width: var(--measure);
  margin: 0 auto;
}

section { margin: 3.5rem 0; }

.rule {
  max-width: var(--measure);
  margin: 4rem auto;
  border: 0;
  border-top: 1px solid var(--rule);
}

/* ---------- hero ---------- */

.hero { margin-top: 4.5rem; }

.hero h1 {
  font-size: clamp(1.9rem, 5.2vw, 2.6rem);
  line-height: 1.2;
  margin: 0 0 1.5rem;
  text-wrap: balance;
}

.lede {
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- body sections ---------- */

h2 {
  font-size: 1.1875rem;
  margin: 0 0 0.85rem;
}

section > p { margin: 0 0 1rem; }
section > p:last-child { margin-bottom: 0; }

/* ---------- steps ---------- */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 2rem 0 0;
  padding: 0;
}

.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 2.75rem;
  margin-bottom: 2.25rem;
}

.steps > li:last-child { margin-bottom: 0; }

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--rule);
  border-radius: 50%;
  font-family: ui-serif, Georgia, serif;
  font-size: 0.875rem;
  color: var(--accent);
}

.steps h3 {
  font-size: 1.0625rem;
  margin: 0 0 0.4rem;
}

.steps p { margin: 0; }

/* ---------- contact ---------- */

.contact .email {
  margin: 1.25rem 0 0;
  font-family: ui-serif, Georgia, serif;
  font-size: 1.3125rem;
}

.contact .email a {
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}

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

footer {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 4rem 0 3rem;
  border-top: 1px solid var(--rule);
  margin-top: 5rem;
}

footer p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink-faint);
}

/* ---------- peek ---------- */

.peek {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  max-width: 18rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 0.75rem;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.16);
  z-index: 10;
}

.peek summary {
  cursor: pointer;
  list-style: none;
  padding: 0.75rem 1.1rem;
  font-family: ui-serif, Georgia, serif;
  font-size: 0.9375rem;
  color: var(--ink);
  user-select: none;
}

.peek summary::-webkit-details-marker { display: none; }

.peek summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  margin-left: 0.5rem;
}

.peek[open] summary::after { content: "\2212"; }

.peek-body {
  padding: 0 1.1rem 1.1rem;
}

.peek-body p {
  font-size: 0.9375rem;
  margin: 0 0 0.75rem;
}

.peek-body a {
  font-family: ui-serif, Georgia, serif;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}

@media (max-width: 26rem) {
  .peek {
    left: 1rem;
    right: 1rem;
    max-width: none;
  }
}
