/* ==========================================================================
   Ascolta Group — design tokens and base styles
   Everything derives from phi (1.618) and the five brand colours.
   Drop this in before any page CSS. Nothing here is placed by eye.
   ========================================================================== */

:root {
  /* colour --------------------------------------------------------------- */
  --nero:          #2C2C2E;   /* text, dark surfaces */
  --melanzana:     #432E57;   /* deep background, covers */
  --glicine:       #6B26E5;   /* secondary, gradient end, links */
  --orchidea:      #CC41CB;   /* tertiary, charts only */
  --bougainvillea: #E81E63;   /* primary accent: the o, the anchor circle, one word */

  --paper:         #FFFFFF;
  --ink:           var(--nero);
  --muted:         #6B6876;   /* captions, secondary copy; 5.3:1 on white */
  --hairline:      #E6E4EA;
  --ring:          #C9C3D1;   /* the lockup circle on light */
  --ring-dark:     #55505F;   /* the lockup circle on dark */

  --gradient:      linear-gradient(90deg, var(--bougainvillea), var(--glicine));

  /* type ----------------------------------------------------------------- */
  --font-display: "Antic Didone", "Didot", "Bodoni MT", Georgia, serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* a phi scale from a 17px base. Three sizes per context, no others. */
  --phi: 1.618;
  --t-1: 1.0625rem;                    /* 17px  body            */
  --t0:  calc(var(--t-1) / var(--phi)); /* 10.5px small, labels  */
  --t1:  calc(var(--t-1) * var(--phi)); /* 27.5px lead, h3       */
  --t2:  calc(var(--t1)  * var(--phi)); /* 44.5px h2             */
  --t3:  calc(var(--t2)  * var(--phi)); /* 72px   h1 / display   */

  --leading-body: 1.55;
  --leading-tight: 1.1;
  --tracking-label: 0.14em;

  /* space ---------------------------------------------------------------- */
  /* Fibonacci in rems. Use these and only these for margins and gaps. */
  --s-3:  0.1875rem;  /* 3px  */
  --s-5:  0.3125rem;  /* 5px  */
  --s-8:  0.5rem;     /* 8px  */
  --s-13: 0.8125rem;  /* 13px */
  --s-21: 1.3125rem;  /* 21px */
  --s-34: 2.125rem;   /* 34px */
  --s-55: 3.4375rem;  /* 55px */
  --s-89: 5.5625rem;  /* 89px */
  --s-144: 9rem;      /* 144px */

  /* layout --------------------------------------------------------------- */
  --measure: 34rem;                 /* max line length for body copy */
  --gutter: clamp(1.3125rem, 4vw, 3.4375rem);
  --band: calc(100% / 6.854);       /* width / phi^4: the right-hand column band */
  --rule-h: 3px;
}

/* dark surfaces: set data-theme="dark" on any wrapper ----------------------- */
[data-theme="dark"] {
  --paper: var(--nero);
  --ink: #FFFFFF;
  --muted: #B8B3C2;        /* 8.6:1 on Nero */
  --hairline: #3A393E;
  --ring: var(--ring-dark);
}

/* base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t-1);
  line-height: var(--leading-body);
  font-feature-settings: "kern", "liga", "ss01";
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;              /* Antic Didone has one weight. Never fake a bold. */
  line-height: var(--leading-tight);
  letter-spacing: -0.005em;
  margin: 0 0 var(--s-21);
}
h1 { font-size: clamp(2.5rem, 7vw, var(--t3)); }
h2 { font-size: clamp(1.75rem, 4.5vw, var(--t2)); }
h3 { font-size: var(--t1); }

p { margin: 0 0 var(--s-21); max-width: var(--measure); }
a { color: inherit; text-decoration: underline; text-decoration-color: var(--bougainvillea); text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--bougainvillea); }
a:focus-visible { outline: 2px solid var(--glicine); outline-offset: 3px; }

.label {
  font-size: var(--t0);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.accent { color: var(--bougainvillea); }   /* one word per page */

/* components ------------------------------------------------------------- */

/* The gradient rule. Full bleed, on a golden section or as a foot. Once per page. */
.rule {
  display: block;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: var(--rule-h);
  background: var(--gradient);
  border: 0;
}

/* The lockup. Inline the SVG; it inherits colour. */
.lockup { display: inline-block; color: var(--ink); }
.lockup svg { display: block; width: 100%; height: auto; }
.lockup--hero      { width: min(28rem, 78vw); }   /* circle version, large only */
.lockup--workhorse { width: 9rem; }               /* solid o, nav and footer */

/* The Fibonacci column, pinned to the right-hand band and bleeding off top and bottom. */
.column {
  position: absolute; top: 0; bottom: 0;
  right: calc(var(--band) / 2);
  transform: translateX(50%);
  width: 18vh;                 /* the pink anchor is 18% of the viewport height */
  pointer-events: none;
}
/* the run is 4.52x taller than it is wide, so it bleeds off top and bottom;
   the pink circle lands on the upper golden section of the viewport */
.column svg { position: absolute; left: 0; width: 100%; top: 38.2vh; transform: translateY(-50%); }
@media (max-width: 720px) { .column { display: none; } }

/* Buttons: quiet by default, Nero on white or white on Nero. */
.button {
  display: inline-block;
  padding: var(--s-13) var(--s-34);
  border: 1.5px solid currentColor;
  border-radius: 999px;
  font-size: var(--t-1);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.button:hover { background: var(--ink); color: var(--paper); }
[data-theme="dark"] .button:hover { background: #FFFFFF; color: var(--nero); }
