/* Arcwell Systems: site styles (everything except the hero, which lives in hero.css).
   One family: Archivo variable (weight 100–900, width 62–125%). */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  /* "Dawn": a cool steel-blue night sea, and first light catching rose and gold. */
  --ink: #070a16;          /* page: deep indigo night */
  --ink-2: #0d1120;        /* raised surfaces, footer */
  --paper: #fbf5ef;        /* headings: warm white */
  --mist: #ddd7de;         /* body text */
  --dim: #aaa4b4;          /* secondary text */
  --signal: #ffd2a6;       /* first light: pale apricot (buttons, underlines) */
  --signal-hover: #ffdfbe;
  --signal-ink: #23140a;   /* text on --signal */
  --signal-hot: #fff1e4;   /* brightest highlight */
  --rose: 255 150 130;     /* dawn rose, for glows (rgb triplet) */
  --gold: 239 184 120;     /* dawn gold, for glows (rgb triplet) */
  --steel: #6584a8;        /* cool steel-blue sea */

  --maxw: 1440px;
  --gutter: clamp(20px, 5.5vw, 96px);
  --section-pad: clamp(80px, 10vw, 152px);

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  color-scheme: dark;
}

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

html {
  background: var(--ink);
  color: var(--mist);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 400;
  font-stretch: 100%;
  line-height: 1.6;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, p, ul { margin: 0; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--paper);
  outline-offset: 4px;
  border-radius: 4px;
}

::selection { background: var(--signal); color: var(--signal-ink); }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.nowrap { white-space: nowrap; }

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

.section {
  position: relative;
  padding-block: var(--section-pad);
}

/* A hairline at the top of each section that a streak of light crosses once, as you arrive. */
.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background:
    linear-gradient(90deg, transparent, rgb(var(--gold) / 0.95) 46%, var(--signal-hot) 50%, rgb(var(--rose) / 0.9) 54%, transparent) no-repeat,
    rgb(101 132 168 / 0.24);
  background-size: 22% 100%, 100% 100%;
  background-position: -40% 0, 0 0;
}

.section.is-lit::before {
  animation: streak 1.4s cubic-bezier(.3, .1, .2, 1) both;
}

@keyframes streak {
  from { background-position: -40% 0, 0 0; }
  to { background-position: 140% 0, 0 0; }
}

.section__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section__title {
  color: var(--paper);
  font-size: clamp(2rem, 1.3rem + 2.4vw, 3.5rem);
  font-weight: 720;
  font-stretch: 118%;
  line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: clamp(36px, 4.5vw, 72px);
}

/* What we do: two offerings side by side on wide screens */
.offerings {
  display: grid;
  gap: clamp(56px, 7vw, 96px);
}

.offering__title {
  display: flex;
  align-items: center;
  gap: 0.55em;
  color: var(--paper);
  font-size: clamp(1.375rem, 1.1rem + 0.9vw, 2rem);
  font-weight: 680;
  font-stretch: 110%;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0.7em;
}

/* A small lit node before each offering: the signal motif at rest */
.offering__title::before {
  content: "";
  flex: none;
  width: 0.32em;
  height: 0.32em;
  border-radius: 50%;
  background: var(--signal-hot);
  box-shadow: 0 0 0 0.12em rgb(var(--rose) / 0.35), 0 0 1.1em 0.2em rgb(var(--rose) / 0.5);
}

.offering p {
  max-width: 46ch;
  font-size: clamp(1.0625rem, 0.98rem + 0.35vw, 1.3125rem);
  line-height: 1.6;
  text-wrap: pretty;
}

/* About: one large statement and a supporting line */
.statement {
  max-width: 30ch;
  color: var(--paper);
  font-size: clamp(1.375rem, 1rem + 1.3vw, 2.375rem);
  font-weight: 500;
  font-stretch: 104%;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.about__body p:not(.statement) {
  max-width: 46ch;
  margin-top: clamp(28px, 3vw, 44px);
  font-size: clamp(1.0625rem, 0.98rem + 0.35vw, 1.3125rem);
  text-wrap: pretty;
}

/* Contact: the address is the call to action */
.contact__email {
  display: inline-block;
  max-width: 100%;
  color: var(--paper);
  font-size: clamp(1.375rem, 0.9rem + 2.6vw, 3.5rem);
  font-weight: 400;
  font-stretch: 100%;
  line-height: 1.1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.16em;
  text-decoration-color: var(--signal);
  transition: text-decoration-color 160ms ease;
}

.contact__email:hover,
.contact__email:focus-visible {
  text-decoration-color: var(--signal-hot);
  text-decoration-thickness: 3px;
}

@media (min-width: 600px) {
  .contact__email { font-stretch: 112%; }
}

@media (min-width: 960px) {
  body { font-size: 1.125rem; }
  .offerings { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(48px, 6vw, 120px); }
}

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

.site-footer {
  background: var(--ink-2);
  color: var(--dim);
  font-size: 0.875rem;
  line-height: 1.6;
  letter-spacing: 0.005em;
  font-variant-numeric: tabular-nums lining-nums;
}

.site-footer__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(40px, 5vw, 64px) var(--gutter) max(clamp(40px, 5vw, 64px), env(safe-area-inset-bottom));
  display: grid;
  gap: 0.35em;
}

.legal { color: var(--mist); }
.copyright { margin-top: 0.9em; }

@media (min-width: 30em) {
  .legal span { white-space: nowrap; }
}

/* ---------- 404 ---------- */

.notfound {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-content: center;
  gap: 24px;
  padding: var(--gutter);
  background: radial-gradient(60% 50% at 70% 40%, rgb(var(--rose) / 0.12), transparent 70%), var(--ink);
}

.notfound__title {
  color: var(--paper);
  font-size: clamp(2.5rem, 1rem + 6vw, 7rem);
  font-weight: 780;
  font-stretch: 125%;
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.notfound__text { font-size: 1.25rem; }

.button {
  display: inline-flex;
  align-items: center;
  padding: 0.95em 1.7em 1em;
  border-radius: 999px;
  background: var(--signal);
  color: var(--signal-ink);
  font-weight: 640;
  font-stretch: 112%;
  text-decoration: none;
  box-shadow: 0 0 0 1px rgb(255 230 205 / 0.4), 0 10px 44px -8px rgb(var(--rose) / 0.55);
}

.button:hover { background: var(--signal-hover); }

/* ---------- Preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  .section.is-lit::before { animation: none; }
  .contact__email { transition: none; }
}

@media (prefers-contrast: more) {
  html, body { color: var(--paper); }
  .site-footer, .legal { color: var(--paper); }
}

@media (forced-colors: active) {
  /* The scene cannot follow system colours, so it steps aside entirely. */
  .hero__canvas,
  .hero__fallback { display: none !important; }
  .hero__cta { border: 2px solid ButtonText; }
  .section::before { background: CanvasText; }
  .offering__title::before { background: CanvasText; box-shadow: none; }
}

@media print {
  html, body, .site-footer { background: #fff !important; color: #000 !important; }
  .section { padding-block: 18pt; }
  .section::before { display: none; }
  .section__title, .offering__title, .statement, .contact__email { color: #000 !important; text-shadow: none !important; }
  .section__title { font-size: 22pt; margin-bottom: 12pt; }
  .contact__email { font-size: 20pt; }
}
