/* Silo — silodev.net
   Calm editorial trust: warm paper, vault-dark hero, emerald accent.
   Constraint as identity: zero third-party requests, so every font is a
   system stack chosen for character (Iowan/Palatino serif display). */

:root {
  /* palette */
  --paper: #faf7f1;
  --paper-deep: #f1ece1;
  --ink: #1d2521;
  --ink-soft: #4c5a53;
  --vault: #122620;
  --vault-edge: #1c3a30;
  --emerald: #0e7a5b;
  --emerald-bright: #2fb188;
  --emerald-wash: #e3f0ea;
  --line: #d8d0c0;

  /* type */
  --font-display: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* rhythm */
  --wrap-max: 68rem;
  --space-section: clamp(4rem, 9vw, 7.5rem);
  --radius: 0.5rem;
}

/* reset (small, deliberate) */
*,
*::before,
*::after {
  box-sizing: border-box;
}
body,
h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}
ul[class],
ol[class] {
  padding: 0;
  list-style: none;
}
img,
svg {
  display: block;
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

.wrap {
  max-width: var(--wrap-max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.section-lede {
  max-width: 44rem;
  color: var(--ink-soft);
  margin-bottom: 2.5rem;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--vault);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 10;
}
.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.wordmark-glyph {
  color: var(--emerald);
}

.site-nav {
  display: flex;
  gap: clamp(0.75rem, 3vw, 1.75rem);
}
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
}
.site-nav a:hover {
  color: var(--emerald);
}

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

.hero {
  background:
    radial-gradient(60rem 30rem at 70% -10%, var(--vault-edge), transparent 60%), var(--vault);
  color: #f2f5f1;
  padding-block: var(--space-section);
  overflow: hidden;
}

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--emerald-bright);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 6.5vw, 4.25rem);
  max-width: 18ch;
}
.hero h1 em {
  font-style: italic;
  color: var(--emerald-bright);
}

.hero-sub {
  max-width: 38rem;
  margin-top: 1.5rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: #c8d4cd;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.25rem;
}

.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
}
.button-primary {
  background: var(--emerald-bright);
  color: var(--vault);
}
.button-primary:hover {
  background: #45c79d;
}
.button-ghost {
  border-color: #4f6a5e;
  color: #e6efe9;
}
.button-ghost:hover {
  border-color: var(--emerald-bright);
  color: var(--emerald-bright);
}

.hero-receipts {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
  margin-top: 3rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #9fb4aa;
}
.receipt {
  border: 1px solid #35544740;
  border-color: #355447;
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  color: #cfe3da;
  white-space: nowrap;
}
.receipt-note {
  color: #7e958a;
}

/* staggered reveal, CSS only */
@media (prefers-reduced-motion: no-preference) {
  .hero .wrap > * {
    animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  }
  .hero .wrap > *:nth-child(2) {
    animation-delay: 0.08s;
  }
  .hero .wrap > *:nth-child(3) {
    animation-delay: 0.16s;
  }
  .hero .wrap > *:nth-child(4) {
    animation-delay: 0.24s;
  }
  .hero .wrap > *:nth-child(5) {
    animation-delay: 0.32s;
  }
  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

/* ---------- principles ---------- */

.principles {
  padding-block: var(--space-section);
  background: var(--paper);
}

.rules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.rule {
  position: relative;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem 1.75rem;
}
.rule-number {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--emerald);
}
.rule h3 {
  font-size: 1.5rem;
  margin: 0.5rem 0 0.65rem;
}
.rule p {
  color: var(--ink-soft);
}

/* ---------- products ---------- */

.products {
  padding-block: var(--space-section);
  background: var(--emerald-wash);
  border-block: 1px solid var(--line);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
}

.product-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--emerald);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px -14px rgb(18 38 32 / 0.35);
}
.product-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.product-card p {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* ---------- how it works ---------- */

.how {
  padding-block: var(--space-section);
}

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.5rem;
}

.step {
  counter-increment: step;
  border-left: 3px solid var(--emerald);
  padding-left: 1.25rem;
}
.step::before {
  content: 'Step ' counter(step);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--emerald);
}
.step h3 {
  font-size: 1.25rem;
  margin: 0.4rem 0 0.5rem;
}
.step p {
  color: var(--ink-soft);
  font-size: 0.97rem;
}

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

.contact {
  padding-block: var(--space-section);
  background: var(--vault);
  color: #e8efe9;
}
.contact h2 {
  color: #fff;
}
.contact p {
  max-width: 40rem;
  font-size: 1.1rem;
}
.contact a {
  color: var(--emerald-bright);
}

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

.site-footer {
  background: var(--vault);
  border-top: 1px solid var(--vault-edge);
  color: #9fb4aa;
  font-size: 0.88rem;
  padding-block: 2rem;
}
.footer-note {
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #6f8479;
}

/* ---------- small screens ---------- */

@media (max-width: 40rem) {
  .site-header nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .hero-actions .button {
    width: 100%;
    text-align: center;
  }
}
