/* AiOperable site. Plain CSS, no build step. Brand: "Layers", rules in ../brand/brand.md */

@font-face { font-family: "Archivo"; font-weight: 400; font-style: normal; font-display: swap; src: url("assets/fonts/archivo-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 600; font-style: normal; font-display: swap; src: url("assets/fonts/archivo-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 800; font-style: normal; font-display: swap; src: url("assets/fonts/archivo-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  /* Layers palette. Contrast notes are in ../brand/brand.md */
  --bone: #F4F1EA;        /* page */
  --plate: #E4E0D5;       /* tinted sections: the build plate */
  --white: #FFFFFF;       /* cards */
  --line: #D9D4C8;
  --pine: #0E3A2C;        /* text, the mark, dark sections */
  --muted: #4F5F57;
  --fern: #1F7A52;        /* buttons, the live layer, accents */
  --fern-deep: #17603F;   /* accent text on plate and white */
  --mint: #9FE2BF;        /* accents on pine */
  --pine-muted: #A6C3B5;  /* secondary text on pine */
  --pine-line: #2A5546;   /* rules on pine */
  --bottle: #D9822B;      /* the pill bottle in drawings, nothing else */

  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 70rem;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --gap: clamp(3.5rem, 8vw, 6.5rem);
  --radius: 10px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bone);
  color: var(--pine);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--fern); outline-offset: 3px; border-radius: 4px; }
.section--dark :focus-visible, .foot :focus-visible { outline-color: var(--mint); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.defs { position: absolute; }

.skip { position: absolute; left: -999px; top: 0; background: var(--pine); color: var(--bone); padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 0; }

/* Type */
h1 { font-size: clamp(2.4rem, 6vw, 4.25rem); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; text-wrap: balance; }
h2 { font-size: clamp(1.85rem, 3.9vw, 2.8rem); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; text-wrap: balance; }
h3 { font-size: 1.125rem; line-height: 1.3; font-weight: 600; letter-spacing: -0.005em; }

.intro { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--muted); max-width: 44rem; margin-top: 1.1rem; }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--fern); color: var(--white); text-decoration: none;
  font-weight: 600; font-size: 1rem; line-height: 1;
  padding: .95rem 1.4rem; border-radius: 8px;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .2);
  transition: transform .12s ease, background-color .12s ease;
}
.btn:hover { transform: translateY(-1px); background: var(--pine); }
.btn--small { padding: .65rem 1rem; font-size: .92rem; }
.link { color: var(--pine); font-weight: 500; text-decoration: underline; text-decoration-color: var(--fern); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.link:hover { color: var(--fern-deep); }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(244, 241, 234, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--pine); }
.brand__mark { display: block; width: 2.2rem; height: 2.2rem; flex: none; }
.brand__mark img { display: block; width: 100%; height: 100%; }
.brand__name { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.035em; }
.nav { display: flex; align-items: center; gap: 1.6rem; font-size: .95rem; }
.nav a:not(.btn) { text-decoration: none; color: var(--muted); font-weight: 500; }
.nav a:not(.btn):hover { color: var(--pine); }
@media (max-width: 46rem) { .nav a:not(.btn) { display: none; } }

/* Hero */
.hero {
  padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(2.5rem, 6vw, 4.5rem);
  /* signature device: layer lines, 1 px every 6 px */
  background-image: repeating-linear-gradient(to bottom, transparent 0 5px, rgba(14, 58, 44, .07) 5px 6px);
}
.hero__in { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 60rem) { .hero__in { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); } }
.lead { font-size: clamp(1.12rem, 1.7vw, 1.32rem); line-height: 1.5; margin-top: 1.4rem; max-width: 36rem; }
.lead + .lead { margin-top: .8rem; font-weight: 600; }
.cta { display: flex; align-items: center; flex-wrap: wrap; gap: 1.1rem 1.6rem; margin-top: 2rem; }
.hero__fig { background: var(--bone); border: 1px solid var(--line); border-radius: 16px; padding: clamp(.75rem, 2vw, 1.25rem); }
.hero__fig svg { width: 100%; }
.sk-mono { font-family: var(--mono); letter-spacing: .04em; }
figcaption { font-family: var(--mono); font-size: .76rem; line-height: 1.5; color: var(--muted); margin-top: .8rem; }
.hero__fig figcaption { text-align: center; }
.legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin-top: .5rem; padding-top: .9rem; border-top: 1px solid var(--line); font-size: .86rem; line-height: 1.35; color: var(--muted); }
.legend b { display: block; font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--pine); margin-bottom: .15rem; }

/* Sections */
.section { padding-block: var(--gap); }
.section--tint { background: var(--plate); }
.section--dark { background: var(--pine); color: var(--bone); }
.section--dark .intro { color: var(--pine-muted); }

/* Shelf sketch */
.shelf {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem .75rem;
  margin-top: 2.8rem; padding: 1.75rem 1rem 1.25rem;
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  background-image: linear-gradient(var(--line), var(--line)); background-repeat: no-repeat; background-size: 100% 1px; background-position: 0 100%;
}
@media (min-width: 46rem) { .shelf { grid-template-columns: repeat(6, minmax(0, 1fr)); padding-inline: 2rem; } }
.shelf li { display: flex; flex-direction: column; align-items: center; gap: .6rem; text-align: center; }
.shelf svg { width: min(100%, 5.75rem); }
.shelf span { font-family: var(--mono); font-size: .72rem; line-height: 1.35; color: var(--muted); }

/* Footer */
.foot { background: var(--pine); color: var(--bone); padding-block: 2.5rem; }
.foot__in { display: grid; gap: 1.1rem; }
.foot__note { color: var(--pine-muted); font-size: .92rem; max-width: 40rem; }
.foot__brand { display: block; max-width: 62rem; margin-bottom: .6rem; border-radius: 6px; }
.foot__big { display: block; width: 100%; height: auto; }
.foot__copy { font-family: var(--mono); font-size: .76rem; letter-spacing: .05em; color: var(--pine-muted); }

@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

/* Points: ruled two- to four-up lists, used instead of boxed cards */
.points { display: grid; gap: 2rem 2.5rem; margin-top: clamp(2.2rem, 4vw, 3rem); }
@media (min-width: 40rem) { .points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .points { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 52rem) { .points--three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .points--two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.points > * { padding-top: 1.1rem; border-top: 1px solid var(--pine); }
.points p { margin-top: .55rem; color: var(--muted); font-size: 1rem; line-height: 1.55; max-width: 34rem; }
.points--dark > * { border-top-color: var(--mint); }
.points--dark h3 { color: var(--bone); font-size: 1.3rem; }
.points--dark p { color: var(--pine-muted); font-size: 1.05rem; }

.steps__n { display: block; font-family: var(--mono); font-weight: 500; font-size: .85rem; letter-spacing: .06em; color: var(--fern-deep); margin-bottom: .35rem; }

.note { margin-top: 2.4rem; padding-top: 1.1rem; border-top: 1px solid var(--pine-line); color: var(--pine-muted); font-size: 1rem; }

.contact__cta { margin-top: 2rem; }

/* Browser surfaces */
::selection { background: var(--mint); color: var(--pine); }
html { scrollbar-color: var(--muted) var(--bone); accent-color: var(--fern); caret-color: var(--fern); }
