/* AETHERIEUM.TECH — AURIN
   Public experience layer
   Existing AETHERIEUM design tokens
*/

:root {
  --void: #080810;
  --void-mid: #0d0d18;
  --void-soft: #111120;
  --void-panel: #0f0f1c;
  --electric: #4a7fe8;
  --electric-dim: rgba(74,127,232,.25);
  --electric-sub: rgba(74,127,232,.10);
  --electric-grid: rgba(74,127,232,.035);
  --steel: #8ba4cc;
  --text-primary: #e8eaf2;
  --text-secondary: #7a8299;
  --text-muted: #3a3d52;
  --border: rgba(74,127,232,.12);
  --border-strong: rgba(74,127,232,.28);
  --gold: #c4a558;

  --ff-display: 'Cormorant Garamond', Georgia, serif;
  --ff-body: 'Inter', system-ui, sans-serif;
  --ff-mono: 'JetBrains Mono', 'Courier New', monospace;
  --max-w: 74rem;
  --nav-h: 68px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  background: var(--void);
  color: var(--text-primary);
  font-family: var(--ff-body);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

a:focus-visible {
  outline: 2px solid var(--steel);
  outline-offset: 5px;
}

h1, h2, h3 {
  font-family: var(--ff-display);
  font-weight: 300;
  line-height: 1.1;
}

em { color: var(--steel); }

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--void-mid);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  min-height: var(--nav-h);
  margin: auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  font-family: var(--ff-display);
  font-size: 1.4rem;
  letter-spacing: .06em;
}

.wordmark span { color: var(--electric); }

.nav-links {
  display: flex;
  gap: 2rem;
  font-family: var(--ff-mono);
  font-size: .68rem;
  color: var(--steel);
}

.nav-links a:hover { color: var(--text-primary); }

.hero {
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  text-align: center;
  background-image:
    linear-gradient(var(--electric-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--electric-grid) 1px, transparent 1px);
  background-size: 80px 80px;
}

.eyebrow, .index {
  font-family: var(--ff-mono);
  font-size: .68rem;
  letter-spacing: .16em;
  color: var(--steel);
}

.orbital {
  width: min(280px, 70vw);
  height: auto;
  color: var(--electric);
  margin: 1rem 0;
}

.core { fill: var(--gold); }

.hero h1 {
  font-size: clamp(4rem, 12vw, 8rem);
  letter-spacing: .16em;
  padding-left: .16em;
}

.hero h2 {
  font-size: clamp(1.5rem, 4vw, 2.6rem);
  font-style: italic;
  color: var(--steel);
  margin-top: .8rem;
}

.hero-description {
  margin-top: 1.5rem;
  color: var(--steel);
  font-size: .9rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  display: inline-block;
  padding: .9rem 1.6rem;
  border: 1px solid var(--electric);
  font-family: var(--ff-mono);
  font-size: .7rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  transition: background .2s, color .2s;
}

.primary {
  background: var(--electric);
  color: var(--void);
  font-weight: 500;
}

.primary:hover {
  background: var(--steel);
}

.secondary { color: var(--steel); }

.secondary:hover {
  background: var(--electric-sub);
}

.section {
  max-width: var(--max-w);
  margin: auto;
  padding: 6rem 2rem;
  border-top: 1px solid var(--border);
}

.section h2 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  margin: 1rem 0 2.5rem;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.5rem;
}

.pillars article, .identity {
  padding: 2rem;
  background: var(--void-panel);
  border: 1px solid var(--border);
}

.pillars h3 {
  font-size: 2rem;
  margin: 1rem 0;
}

.pillars p, .experience p {
  color: var(--steel);
  font-size: .9rem;
}

.experience { text-align: center; }

.identity:hover {
  border-color: var(--electric);
}

.identity.aura .index,
.identity.aura h3 {
  color: var(--gold);
}

.identity[aria-current="page"] {
  border-color: var(--border-strong);
}

footer {
  border-top: 1px solid var(--border);
  background: var(--void-mid);
}

.footer-inner {
  max-width: var(--max-w);
  margin: auto;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--ff-mono);
  font-size: .65rem;
  color: var(--steel);
}

@media (max-width: 760px) {
  .pillars { grid-template-columns: 1fr; }
  .nav-inner { flex-wrap: wrap; padding: 1rem; }
  .nav-links { gap: 1rem; flex-wrap: wrap; }
  .section { padding: 4rem 1.5rem; }
  .hero { padding: 3rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* AURIN — Identity Lock v1.0 */

.aurin-identity {
    display: block;
    width: clamp(120px, 18vw, 180px);
    height: auto;
    margin: 2.5rem auto;
}

/* Editorial typography trial */
:root {
    --ff-body: 'Cormorant Garamond', Georgia, serif;
}

/* Shared institutional editorial treatment */

.hero {
    position: relative;
}

.hero-description {
    font-family: var(--ff-body);
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 400;
    line-height: 1.65;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    top: 24px;
    width: 22px;
    height: 22px;
    border-top: 1px solid var(--text-primary);
    pointer-events: none;
}

.hero::before {
    left: clamp(24px, 5vw, 64px);
    border-left: 1px solid var(--text-primary);
}

.hero::after {
    right: clamp(24px, 5vw, 64px);
    border-right: 1px solid var(--text-primary);
}

/* ========================================
   INSTITUTIONAL APPEARANCE SYSTEM
   Light / Dark / Code
   ======================================== */

/* DARK / AETHER */

:root,
:root[data-skin="dark"] {
    color-scheme: dark;

    --void: #0c1319;
    --void-mid: #101a22;
    --void-soft: #121c23;
    --void-panel: #101a22;

    --electric: #7fa6b7;
    --electric-dim: rgba(127,166,183,.25);
    --electric-sub: rgba(127,166,183,.10);
    --electric-grid: rgba(127,166,183,.035);

    --steel: #7fa6b7;
    --text-primary: #edf0ef;
    --text-secondary: #9aa8ad;
    --text-muted: #697b83;

    --border: rgba(205,218,220,.14);
    --border-strong: rgba(127,166,183,.28);

    --gold: #b58b3d;
    --action-bg: #173f57;
    --action-text: #edf0ef;
    --grid-size: 80px;

    --ff-display: 'Cormorant Garamond', Georgia, serif;
    --ff-body: 'Cormorant Garamond', Georgia, serif;
}

/* LIGHT / DOJO */

:root[data-skin="light"] {
    color-scheme: light;

    --void: #f7f5f0;
    --void-mid: #f2f0ea;
    --void-soft: #ebe8e0;
    --void-panel: #f2f0ea;

    --electric: #0a2f4a;
    --electric-dim: rgba(10,47,74,.25);
    --electric-sub: rgba(10,47,74,.08);
    --electric-grid: rgba(10,47,74,.06);

    --steel: #527a90;
    --text-primary: #1e2428;
    --text-secondary: #46535a;
    --text-muted: #68747a;

    --border: rgba(30,36,40,.14);
    --border-strong: rgba(10,47,74,.28);

    --gold: #966d13;
    --action-bg: #0a2f4a;
    --action-text: #f7f5f0;
    --grid-size: 80px;
}

/* CODE / OPERATOR */

:root[data-skin="code"] {
    color-scheme: dark;

    --void: #10181b;
    --void-mid: #081013;
    --void-soft: #142024;
    --void-panel: #142024;

    --electric: #79aeb3;
    --electric-dim: rgba(121,174,179,.28);
    --electric-sub: rgba(121,174,179,.10);
    --electric-grid: rgba(121,174,179,.04);

    --steel: #79aeb3;
    --text-primary: #d9e4e3;
    --text-secondary: #91a3a4;
    --text-muted: #71888b;

    --border: rgba(120,173,177,.20);
    --border-strong: rgba(120,173,177,.35);

    --gold: #c09b52;
    --action-bg: #17434d;
    --action-text: #d9e4e3;
    --grid-size: 60px;

    --ff-display: 'JetBrains Mono', monospace;
    --ff-body: 'JetBrains Mono', monospace;
}

/* Shared appearance behavior */

.hero {
    background-size: var(--grid-size) var(--grid-size);
}

.btn.primary {
    background: var(--action-bg);
    color: var(--action-text);
    border-color: var(--action-bg);
}

[data-skin="code"] .hero-description {
    font-size: 1rem;
}

[data-skin="code"] .hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
}

.appearance-selector {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    background: var(--void);
}

.appearance-selector button {
    font-family: var(--ff-mono);
    font-size: .68rem;
    letter-spacing: .12em;
    padding: .7rem 1rem;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid var(--border);
    cursor: pointer;
}

.appearance-selector button[aria-pressed="true"] {
    color: var(--gold);
    border-color: var(--gold);
}

.appearance-selector button:focus-visible {
    outline: 2px solid var(--electric);
    outline-offset: 3px;
}

/* AURIN - Unified Navigation */

.nav-inner {
    flex-wrap: nowrap;
    min-height: var(--nav-h);
}

.aurin-menu {
    margin-left: auto;
}

.aurin-menu summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 50%;
}

.aurin-menu summary::-webkit-details-marker {
    display: none;
}

.aurin-menu summary span {
    display: block;
    width: 21px;
    height: 1px;
    background: var(--text-primary);
    transition: transform .2s, opacity .2s;
}

.aurin-menu[open] summary span:first-child {
    transform: translateY(6px) rotate(45deg);
}

.aurin-menu[open] summary span:nth-child(2) {
    opacity: 0;
}

.aurin-menu[open] summary span:last-child {
    transform: translateY(-6px) rotate(-45deg);
}

.aurin-menu-panel {
    position: absolute;
    top: 100%;
    right: 1rem;
    width: min(340px, calc(100vw - 2rem));
    max-height: calc(100dvh - var(--nav-h) - 1rem);
    overflow-y: auto;
    background: var(--void-mid);
    border: 1px solid var(--border-strong);
    padding: 1.5rem;
    box-shadow: 0 12px 40px rgba(0,0,0,.18);
}

.aurin-menu-panel .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.aurin-menu-panel .nav-links a {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    font-size: .85rem;
}

.appearance-heading {
    margin: 1.75rem 0 1rem;
    font-family: var(--ff-mono);
    font-size: .65rem;
    letter-spacing: .2em;
    color: var(--text-secondary);
}

.aurin-menu-panel .appearance-selector {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    gap: .65rem;
    background: transparent;
    border: none;
}

.aurin-menu-panel .appearance-selector button {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 54px;
    text-align: left;
}

.appearance-selector button::before {
    content: "";
    width: 34px;
    height: 26px;
    flex-shrink: 0;
    border: 1px solid var(--border-strong);
}

[data-appearance="light"]::before {
    background: linear-gradient(
        135deg, #f7f5f0 50%, #0a2f4a 50%
    );
}

[data-appearance="dark"]::before {
    background: linear-gradient(
        135deg, #0c1319 50%, #b58b3d 50%
    );
}

[data-appearance="code"]::before {
    background: repeating-linear-gradient(
        0deg, #10181b 0 5px, #17434d 5px 6px
    );
}

.aurin-menu-panel button[aria-pressed="true"] {
    border-color: var(--gold);
    box-shadow: inset 3px 0 var(--gold);
}

.aurin-menu summary:focus-visible {
    outline: 2px solid var(--electric);
    outline-offset: 3px;
}

@media (max-width: 760px) {
    .wordmark {
        font-size: clamp(1rem, 4vw, 1.4rem);
    }
}

