/* Run Alder LLC — company site. Plain CSS, no build step, no third-party requests. */

@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/fraunces.woff2') format('woff2');
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Commissioner';
  src: url('/fonts/commissioner.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f2eadc;
  --paper-deep: #e8dcc8;
  --ink: #2b2825;
  --ink-soft: #5e5850;
  --rule: #cdbfa8;
  --moss: #3d5a45;
  --catkin: #9a4a2b;
  --card: #f8f3ea;
  --display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --text: 'Commissioner', -apple-system, 'Segoe UI', sans-serif;
  --measure: 34rem;
  --gutter: clamp(1rem, 5vw, 3.5rem);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1d1b18;
    --paper-deep: #26231f;
    --ink: #efe6d6;
    --ink-soft: #b5aa98;
    --rule: #3e3832;
    --moss: #9cbf9f;
    --catkin: #e09a74;
    --card: #24211d;
  }
}

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

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

body {
  margin: 0;
  background-color: var(--paper);
  /* Fine paper grain: an inline SVG noise tile, no network request. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.3 0 0 0 0 0.22 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-color: var(--catkin);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
}
a:hover {
  color: var(--catkin);
}
:focus-visible {
  outline: 2px solid var(--catkin);
  outline-offset: 3px;
  border-radius: 2px;
}

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

/* ---------- Header ---------- */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.brand img {
  width: 30px;
  height: 30px;
}
.masthead nav {
  display: flex;
  gap: 1.4rem;
  font-size: 0.92rem;
}
.masthead nav a {
  text-decoration: none;
  color: var(--ink-soft);
}
.masthead nav a:hover {
  color: var(--ink);
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  padding: clamp(3.5rem, 11vw, 8rem) 0 clamp(3rem, 8vw, 6rem);
  position: relative;
}
.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--moss);
  margin: 0 0 1.4rem;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.6rem, 7.2vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0;
  max-width: 14ch;
  font-variation-settings: 'opsz' 144;
}
.hero h1 em {
  font-style: normal;
  font-weight: 500;
  color: var(--moss);
}
.hero .lede {
  max-width: var(--measure);
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin: 0;
}
.leaf-mark {
  display: none;
}

@media (min-width: 860px) {
  .hero {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: end;
  }
  .hero .lede {
    padding-bottom: 0.6rem;
  }
  .leaf-mark {
    display: block;
    position: absolute;
    right: -2rem;
    top: 2.5rem;
    width: 220px;
    height: 220px;
    opacity: 0.09;
    transform: rotate(-18deg);
    pointer-events: none;
  }
}

/* ---------- Sections ---------- */

.section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem 3rem;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  border-top: 1px solid var(--rule);
}
@media (min-width: 860px) {
  .section {
    grid-template-columns: 12rem minmax(0, 1fr);
  }
}
.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0.35rem 0 0;
}
.section-label span {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--catkin);
  margin-right: 0.5rem;
}
.prose {
  max-width: var(--measure);
}
.prose p {
  margin: 0 0 1em;
}
.prose p:last-child {
  margin-bottom: 0;
}

/* ---------- Product ---------- */

.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  box-shadow: 0 1px 0 var(--rule), 0 24px 48px -32px rgb(60 45 30 / 0.35);
}
@media (min-width: 640px) {
  .product {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 2rem;
  }
}
.product-icon {
  width: 104px;
  height: 104px;
  border-radius: 23px;
  box-shadow: 0 10px 24px -12px rgb(40 30 20 / 0.55);
}
.product h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 0.4rem;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--moss);
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  margin: 0 0 1rem;
}
.status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.product p {
  margin: 0 0 1rem;
  max-width: var(--measure);
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  margin: 1.25rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px dashed var(--rule);
  font-size: 0.9rem;
  color: var(--ink-soft);
  list-style: none;
}
.facts li strong {
  color: var(--ink);
  font-weight: 500;
}

/* ---------- Company details ---------- */

.details {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: 2rem 0 0;
  max-width: 40rem;
}
@media (min-width: 560px) {
  .details {
    grid-template-columns: 11rem minmax(0, 1fr);
  }
}
.details dt,
.details dd {
  margin: 0;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--rule);
}
.details dt {
  color: var(--ink-soft);
  font-size: 0.92rem;
  padding-bottom: 0;
}
@media (min-width: 560px) {
  .details dt {
    padding-bottom: 0.7rem;
  }
}
.details dd {
  overflow-wrap: anywhere;
}

/* ---------- Legal pages ---------- */

.doc {
  padding: clamp(2.5rem, 8vw, 5rem) 0 4rem;
  max-width: 42rem;
}
.doc h1 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 0.5rem;
}
.doc .updated {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin: 0 0 2.5rem;
}
.doc h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.35rem;
  margin: 2.25rem 0 0.5rem;
}
.doc p,
.doc li {
  max-width: var(--measure);
}
.doc ul {
  padding-left: 1.2rem;
}

/* ---------- Footer ---------- */

.colophon {
  border-top: 1px solid var(--rule);
  padding: 1.75rem 0 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.colophon nav {
  display: flex;
  gap: 1.25rem;
}

/* ---------- Load-in ---------- */

@media (prefers-reduced-motion: no-preference) {
  .rise {
    animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .rise-2 {
    animation-delay: 0.12s;
  }
  .rise-3 {
    animation-delay: 0.24s;
  }
  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

/* ---------- Small screens ---------- */

.brand {
  white-space: nowrap;
}
@media (max-width: 559px) {
  .masthead nav {
    gap: 1rem;
  }
  .details dt {
    border-bottom: 0;
  }
}
