/* Hivenly — website styles. No external requests: fonts are self-hosted. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/fonts/atkinson-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/fonts/atkinson-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/fonts/atkinson-italic.woff2") format("woff2");
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #1d2340;        /* hive at night */
  --ink-soft: #4a5071;
  --honey: #f2a93b;
  --honey-deep: #b8720f; /* honey text on light backgrounds (AA contrast) */
  --paper: #ffffff;
  --comb: #eef0f7;       /* cool pale section background */
  --line: #d7dbea;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, sans-serif;
  --measure: 66ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { color: var(--honey-deep); }
:focus-visible { outline: 3px solid var(--honey); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); padding: .5rem 1rem; z-index: 10; }

/* ---------- header ---------- */
.site-header { padding: 1.25rem 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-header .logo img { height: 48px; width: auto; }
.site-header nav { display: flex; gap: 1.5rem; font-size: 1rem; }
.site-header nav a { text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; }

/* ---------- hero ---------- */
.hero { padding: clamp(1.5rem, 5vw, 4rem) 0 clamp(3rem, 8vw, 6rem); }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 760;
  font-stretch: 78%;
  font-size: clamp(3rem, 7.5vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
}
.hero .lede { font-size: 1.3rem; max-width: 30ch; margin: 0 0 2rem; color: var(--ink-soft); }
.hero .status { font-size: 1rem; margin: 0 0 1rem; }
.button {
  display: inline-block;
  font-family: var(--display);
  font-weight: 650;
  font-size: 1.05rem;
  text-decoration: none;
  background: var(--ink);
  color: #fff;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
}
.button:hover { background: #2b3360; color: #fff; }

/* The hive — the one memorable thing on the page */
.hive-figure { margin: 0; }
.hive { width: 100%; height: auto; overflow: visible; }
.hive .cell { cursor: pointer; transform-box: fill-box; transform-origin: center; transition: transform .25s ease, filter .25s ease; }
.hive .cell:hover, .hive .cell:focus-visible, .hive .cell[aria-pressed="true"] { transform: scale(1.06); filter: drop-shadow(0 8px 14px rgba(29, 35, 64, .25)); outline: none; }
.hive-caption {
  min-height: 5.2em;
  margin-top: 1.25rem;
  padding-left: 1rem;
  border-left: 4px solid var(--caption-color, var(--honey));
}
.hive-caption strong { font-family: var(--display); font-size: 1.25rem; font-weight: 700; display: block; }
.hive-caption span { color: var(--ink-soft); }

@media (prefers-reduced-motion: no-preference) {
  .hive .cell { animation: settle .55s cubic-bezier(.2, .8, .3, 1.2) both; }
  .hive #cell-core { animation-delay: .05s; }
  .hive #cell-chat { animation-delay: .20s; }
  .hive #cell-calendar { animation-delay: .28s; }
  .hive #cell-money { animation-delay: .36s; }
  .hive #cell-notes { animation-delay: .44s; }
  .hive #cell-lists { animation-delay: .52s; }
  .hive #cell-location { animation-delay: .60s; }
  @keyframes settle { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
}

/* ---------- sections ---------- */
section { padding: clamp(3rem, 8vw, 6rem) 0; }
.comb { background: var(--comb); }
h2 {
  font-family: var(--display);
  font-weight: 720;
  font-stretch: 85%;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
  max-width: 20ch;
}
h3 { font-family: var(--display); font-weight: 680; font-size: 1.3rem; margin: 0 0 .35rem; }
.intro { max-width: var(--measure); color: var(--ink-soft); margin: 0 0 2.5rem; }

/* modules list — hexagon bullets, not cards */
.modules { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem 3rem; }
.modules li { display: grid; grid-template-columns: 52px 1fr; gap: 1rem; align-items: start; }
.modules .hex { width: 52px; height: 58px; }
.modules p { margin: 0; color: var(--ink-soft); }
.next-title { font-size: 1.6rem; margin: 4rem 0 .5rem; }
.modules.future h3 { color: var(--ink-soft); }

/* who can see what */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 2px solid var(--ink); border-radius: 18px; overflow: hidden; }
.split > div { padding: clamp(1.5rem, 4vw, 2.5rem); }
.split .family { background: var(--ink); color: #fff; }
.split .server { background: var(--paper); }
.split ul { margin: 0; padding-left: 1.2rem; }
.split li { margin: .45rem 0; }
.split .family li::marker { color: var(--honey); }
.honest { max-width: var(--measure); margin: 2rem 0 0; font-style: italic; }

/* steps — a real sequence */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.steps li { counter-increment: step; border-top: 3px solid var(--ink); padding-top: 1rem; }
.steps li::before { content: counter(step); font-family: var(--display); font-weight: 760; font-size: 2.4rem; line-height: 1; color: var(--honey-deep); display: block; margin-bottom: .5rem; }
.steps p { margin: 0; color: var(--ink-soft); }

.promises { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem 3rem; margin-top: 2rem; }
.promises p { margin: 0; color: var(--ink-soft); }

/* ---------- long-form pages (privacy, support, security) ---------- */
.doc { padding: clamp(2rem, 6vw, 4rem) 0 5rem; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-family: var(--display); font-weight: 740; font-stretch: 85%; font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1; margin: 0 0 .75rem; }
.doc h2 { font-size: 1.6rem; font-stretch: 100%; margin: 2.75rem 0 .75rem; max-width: none; }
.doc h3 { margin-top: 1.75rem; }
.doc p, .doc li { max-width: var(--measure); }
.doc .meta { color: var(--ink-soft); margin: 0 0 2rem; }
.doc .note { background: var(--comb); border-left: 4px solid var(--honey); padding: 1rem 1.25rem; border-radius: 0 10px 10px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 1rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: .6rem .75rem .6rem 0; border-bottom: 1px solid var(--line); }
.doc th { font-family: var(--display); font-weight: 680; }
.doc dt { font-weight: 700; margin-top: 1rem; }
.doc dd { margin: .25rem 0 0; color: var(--ink-soft); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #fff; padding: 3rem 0; font-size: 1rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: start; }
.site-footer img { height: 56px; width: auto; margin-bottom: 1rem; }
.site-footer p { margin: .25rem 0; color: #c9cde0; }
.site-footer nav { display: grid; gap: .4rem; justify-items: start; }
.site-footer a:hover { color: var(--honey); }

/* ---------- small screens ---------- */
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hive-figure { order: -1; max-width: 330px; margin-inline: auto; }
  .split { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .site-header nav { gap: 1rem; }
}
@media (max-width: 460px) {
  .site-header nav a.hide-sm { display: none; }
}
