/* =====================================================================
   Anthemon Fellowship — BASE — token, reset, utility
   ---------------------------------------------------------------------
   Mobile-first: le regole base valgono per gli schermi piccoli, i blocchi
   @media (min-width: …) aggiungono quelle per i grandi.

   Contenuto:
     1. Design token (palette, font, raggi)
     2. Reset e base
     3. Utility condivise: .container, .eyebrow, .section-title, i bottoni,
        .arrow-link

   L'ORDINE DEI FILE CONTA. Questo foglio era uno solo e la cascata ne
   dipende: piu' di una regola vince per posizione, non per specificita'.
   I file vanno caricati nell'ordine del numero in testa al nome, ed e'
   quello che fa includes/header.php. Vedi css/README.md prima di
   aggiungerne, rinominarne o riordinarne uno.
   ===================================================================== */
/* ---------- 1. DESIGN TOKENS ---------- */
:root {
  /* The frame: neutral and elegant, constant across the site */
  --ivory:      #F7F3EA;  /* main light background */
  --warm-white: #FCF9F5;  /* alternate light background + text on dark */
  --ink:        #1F2E35;  /* body text on light backgrounds */
  --gold:       #B89868;  /* thin borders, filigree, hovers */
  --bronze:     #8A5A35;  /* eyebrows and details on light backgrounds */

  /* The worlds: saturated dark blocks, each with its own character */
  --epteka:        #2E4650;
  --epteka-azure:  #7FB8D8;
  --epteka-steel:  #4A6890;
  /* Riallineato alla revisione 8. Il vecchio #1C3A2B era un verde
     bottiglia caldo e saturo (hue 146) che nelle illustrazioni Dasos non
     esiste da nessuna parte: il quadro di Naos e' nebbia fredda grigio-teal
     (hue 175, sat 17%) con le ombre verdi scure, e nel quadro del pannello
     le ombre sono addirittura blu (hue 203-210). Questo e' tarato sui medi
     del quadro: piu' freddo e piu' profondo.
     Perche' non ancora piu' desaturato, che sarebbe piu' fedele: il fondo
     di Aetheria e' hue 194 sat 43%, e portando Dasos in basso i due blocchi
     scuri della pagina comincerebbero a somigliarsi. A hue 167 con sat 56%
     Dasos resta foresta e resta distinguibile da Epteka. */
  --dasos:         #15302A;
  --dasos-lime:    #B2CA6B;
  --dasos-teal:    #4D8098;
  /* L'azzurro del titoletto di Naos in home. E' --dasos-teal schiarito e
     basta (stessa hue 199, saturazione da 33% a 45%, luminosita' da 45% a
     70%): serviva un blu della famiglia Dasos abbastanza chiaro da reggere
     il contrasto su fondo scuro, e #4D8098 su quel fondo si ferma a 3,4:1.
     La saturazione e' salita di dodici punti dopo averlo guardato a schermo:
     alla luminosita' che serve al contrasto, e a corpo piccolo spaziato,
     il teal puro (#8BB3C6) leggeva grigio sul verde invece che azzurro.
     PERCHE' NON --epteka-azure, che sarebbe stato gratis: #7FB8D8 e'
     l'accento di un altro mondo, e per giunta con questo sono quasi
     indistinguibili a occhio (delta di hue 1, di saturazione 19 punti).
     Due mondi con lo stesso accento smettono di essere due mondi.
     Questo e' piu' spento, e sta bene cosi': il quadro di Naos e' nebbia
     grigio-teal, non cielo. */
  --dasos-azure:   #90BFD5;
  --mosses:        #31396E;
  --mosses-azure:  #87D6FC;
  --mosses-purple: #9058D1;
  --mosses-wine:   #8E4D66;

  --footer-dark: #1C2B33;
  /* Il fondo scuro del motto della revisione 11. NON PIU' IN USO: il motto
     e' tornato avorio (vedi il blocco 8 di 05-home-basso.css). Il token
     resta perche' e' un valore ragionato e ritrovarlo costa: neutro e senza
     tinta di proposito, perche' il motto sta fra Naos e Homefrost e non
     deve diventare un quarto mondo; e diverso da --footer-dark, che pure
     gli somiglia, perche' un fondo identico al piede a meta' pagina fa
     pensare che il sito sia finito. Due grigi vicini ma non uguali dicono
     "pausa" invece di "fine". */
  --motto-dark: #16232A;

  /* Third-party brand colors (used on purpose, see Revision 1) */
  --ks-green: #05CE78;   /* Kickstarter green: signals "this goes to Kickstarter" */
  --ks-ink:   #0B2A1E;   /* dark ink text on the green button */
  /* Darker green for GREEN TEXT on a light background: --ks-green itself is
     far too pale on ivory to read (about 1.9:1). This one clears 5:1. */
  --ks-green-deep: #0A7A4A;
  --discord:  #5865F2;   /* Discord blurple for the community button */

  /* Soft shapes (Revision 1): images and buttons are never sharp-cornered */
  --radius-card: 18px;   /* project tiles, dropdown panels, large surfaces */
  --radius-soft: 12px;   /* buttons and smaller elements */

  /* Projects-section texture overlay opacity — tune it here.
     The texture file is pending; until it exists this has no visible effect. */
  --texture-opacity: 0.06;

  /* Fonts (loaded in header.php from Google Fonts) */
  --font-display: "Cinzel", "Times New Roman", serif;
  --font-body:    "EB Garamond", Georgia, serif;
  --font-ui:      "Source Sans 3", "Helvetica Neue", Arial, sans-serif;

  /* Instagram's own brand gradient — used on the community button on purpose,
     the same way --ks-green and --discord are. */
  --instagram: radial-gradient(circle at 28% 108%,
                 #FDF497 0%, #FDF497 5%, #FD5949 45%, #D6249F 60%, #285AEB 90%);

  /* Rhythm and recurring measures */
  --section-pad: 5rem;   /* vertical breathing room of sections (mobile) */
  --header-h: 4.5rem;    /* navbar height */
  --title-size: clamp(1.75rem, 4vw, 2.5rem); /* the one section-title scale */

  /* Full-bleed place sections height (desktop) — tune these BY EYE.
     compact = the Revision 2 default for all three places;
     grand = hero-like presence, available via the .place--grand modifier. */
  --place-height-grand: 88vh;
  --place-height-compact: 58vh;
  --ease-soft: cubic-bezier(.22, .61, .36, 1); /* natural easing, never bouncy */
}

/* ---------- 2. RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }

/* Smooth anchor scrolling, guarded for older Safari (Revision 2 §6.7) */
@supports (scroll-behavior: smooth) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;        /* 18px on mobile… */
  line-height: 1.7;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 900px) {
  body { font-size: 1.1875rem; } /* …19px on desktop */
  :root { --section-pad: 7rem; }
}

img, svg, video { display: block; max-width: 100%; }

a { color: inherit; }

/* Keyboard focus ring: gold, consistent with the palette */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

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

/* Hides an element visually but keeps it for screen readers */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  -webkit-clip-path: inset(50%); /* Safari prefix */
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- 3. SHARED UTILITIES ---------- */
/* min(): never wider than 1120px, never more than 92% of the screen */
.container { width: min(1120px, 92%); margin-inline: auto; }

/* Eyebrow: the small letterspaced caps label above titles.
   Bronze on light backgrounds; dark sections recolor it below. */
.eyebrow {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--bronze);
  margin: 0 0 1rem;
}

/* Section titles in Cinzel with the engraved letter-spacing of the brief.
   The size lives in --title-size (declared in :root) so other headings can
   be brought onto the same scale by name instead of by copied numbers. */
.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--title-size);
  letter-spacing: 0.06em;
  line-height: 1.25;
  margin: 0 0 1.25rem;
}

/* Ornament separator — the line ◆ line motif from the Epteka logo,
   now the site's only graphic separator (Revision 2 §5).
   Markup:
     <div class="ornament" aria-hidden="true"><span class="ornament-diamond"></span></div>
   Gold filigree, centered. Use SPARINGLY: under section titles and at
   section transitions — never as a plain horizontal rule. */
.ornament {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: min(240px, 64%);
  margin: 1.75rem auto;
  color: var(--gold);
}
.ornament::before,
.ornament::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
}
.ornament--wide { width: min(420px, 80%); } /* for bigger section transitions */
.ornament-diamond {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  background: currentColor;
  transform: rotate(45deg); /* a square on its tip = the diamond */
}
/* Straight line piece for custom lockups.
   NON E' PIU' IN USO DA NESSUNA PARTE (rev. 15): stava nei lockup dell'hero di
   index.php ed epteka.php, dove il markup c'e' ancora ma 03-home.css la mette a
   display:none — le due righe restavano ferme a 12px a ogni larghezza e la coda
   finiva sul chiaro del dipinto. La classe resta qui perche' il markup la
   nomina ancora e perche' serve se un lockup futuro la vuole. */
.ornament-line {
  flex: 0 1 110px; /* can shrink on narrow screens, never grows */
  height: 1px;
  background: currentColor;
}

/* Buttons — rounded with generous padding (Revision 1: softer shapes). */
.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  text-decoration: none;
  padding: 0.95em 2em;
  border: 1px solid var(--gold);
  border-radius: var(--radius-soft);
  cursor: pointer; /* the class is also used on <button> elements (forms) */
  transition: background-color 0.4s var(--ease-soft), color 0.4s var(--ease-soft),
              transform 0.3s var(--ease-soft), box-shadow 0.3s var(--ease-soft);
}

/* Ghost gold button — the house CTA. Default is tuned for dark backgrounds;
   add .on-light when it sits on ivory/warm white. */
.btn-gold { color: var(--warm-white); background: transparent; }
.btn-gold:hover { background: var(--gold); color: var(--ink); }
.btn-gold.on-light { color: var(--ink); }

/* Kickstarter button — intentionally green: it signals "this goes to
   Kickstarter". Slightly larger than the ghost button (it is the primary CTA). */
.btn-kickstarter {
  font-size: 0.9375rem;
  padding: 1.05em 2.3em;
  background: var(--ks-green);
  border-color: var(--ks-green);
  color: var(--ks-ink);
}
.btn-kickstarter:hover {
  background: var(--ks-green);
  color: var(--ks-ink);
  transform: translateY(-2px);                       /* subtle hover lift */
  box-shadow: 0 12px 28px rgba(5, 206, 120, 0.28);
}

/* Kickstarter GHOST button — the same idea as .btn-gold, in Kickstarter
   green: outline at rest, fills with green on hover. Used where the green
   should signal the destination without shouting like the solid one.
   Add .on-light on ivory/warm backgrounds: the resting text switches to the
   darker green, since --ks-green is unreadable on a light ground. */
.btn-ks {
  color: var(--ks-green);
  background: transparent;
  border-color: var(--ks-green);
}
.btn-ks.on-light {
  color: var(--ks-green-deep);
  border-color: var(--ks-green-deep);
}
.btn-ks:hover,
.btn-ks.on-light:hover {
  background: var(--ks-green);
  border-color: var(--ks-green);
  color: var(--ks-ink);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(5, 206, 120, 0.28);
}

/* Discord button — filled blurple, the emphasised community CTA */
.btn-discord {
  background: var(--discord);
  border-color: var(--discord);
  color: #fff;
}
.btn-discord:hover {
  background: var(--discord);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(88, 101, 242, 0.3);
}

/* Text link with gold arrow (place sections, about).
   The arrow lives in its own span so it can slide on hover. */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  text-decoration: none;
  color: var(--warm-white);
}
.arrow-link .arrow {
  color: var(--gold);
  transition: transform 0.3s var(--ease-soft);
}
.arrow-link:hover .arrow { transform: translateX(6px); }
.arrow-link.on-light { color: var(--ink); }
