/* ᛉ.com Elder Futhark presentation layer. */
:root {
  --runic-font: "Segoe UI Historic", "Noto Sans Runic", "Noto Sans Symbols 2", "Arial Unicode MS", sans-serif;
}

html[data-rune-site="ᛉ"] body,
html[data-rune-site="ᛉ"] button,
html[data-rune-site="ᛉ"] input,
html[data-rune-site="ᛉ"] select,
html[data-rune-site="ᛉ"] textarea {
  font-family: var(--runic-font);
}

html[data-rune-site="ᛉ"] .mono,
html[data-rune-site="ᛉ"] code,
html[data-rune-site="ᛉ"] kbd,
html[data-rune-site="ᛉ"] pre {
  font-family: var(--runic-font);
  font-variant-ligatures: none;
}

html[data-rune-site="ᛉ"] .brand-word {
  display: inline-block;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 900;
  letter-spacing: 0.045em;
  line-height: 1;
  white-space: nowrap;
}

html[data-rune-site="ᛉ"] .primary-nav a,
html[data-rune-site="ᛉ"] .button,
html[data-rune-site="ᛉ"] button,
html[data-rune-site="ᛉ"] label,
html[data-rune-site="ᛉ"] .eyebrow,
html[data-rune-site="ᛉ"] .overline {
  letter-spacing: 0.045em;
}

html[data-rune-site="ᛉ"] h1,
html[data-rune-site="ᛉ"] h2,
html[data-rune-site="ᛉ"] h3,
html[data-rune-site="ᛉ"] h4 {
  overflow-wrap: anywhere;
  text-wrap: balance;
}

html[data-rune-site="ᛉ"] p,
html[data-rune-site="ᛉ"] li,
html[data-rune-site="ᛉ"] td,
html[data-rune-site="ᛉ"] th,
html[data-rune-site="ᛉ"] dd,
html[data-rune-site="ᛉ"] dt {
  overflow-wrap: anywhere;
}

.runic-language-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid currentColor;
  text-decoration: none;
}

.runic-domain-mark {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(110, 208, 219, 0.5);
  border-radius: 0.35rem;
  font-size: 1.8rem;
  line-height: 1;
}

@media (max-width: 72rem) {
  html[data-rune-site="ᛉ"] .primary-nav a {
    white-space: normal;
  }
}

.runic-identity-section {
  padding-block: clamp(2.75rem, 5vw, 5rem);
  background: #f3f2ed;
  color: #101820;
}

.runic-identity-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

.runic-identity-grid h2 {
  max-width: 20ch;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 1.05;
}

.runic-identity-grid p { max-width: 68ch; }
.runic-identity-cards { display: grid; gap: 0.85rem; }
.runic-identity-cards a {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 0.15rem 0.85rem;
  align-items: center;
  min-height: 5.25rem;
  padding: 1rem;
  border: 1px solid #36616a;
  background: #ffffff;
  color: #101820;
  text-decoration: none;
}
.runic-identity-cards strong {
  grid-row: span 2;
  font-size: 2.4rem;
  line-height: 1;
  text-align: center;
}
.runic-identity-cards span { font-weight: 800; }
.runic-identity-cards code { font-size: 0.8rem; color: #31515a; }
.runic-identity-cards a:hover,
.runic-identity-cards a:focus-visible { border-color: #126d79; box-shadow: 0 0 0 3px rgba(18,109,121,.22); }

.runic-site-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-block: 1.1rem;
  border-top: 1px solid rgba(243,242,237,.18);
}

@media (max-width: 760px) {
  .runic-identity-grid { grid-template-columns: 1fr; }
}


/* RC2 textual identity: navigation and footer branding are text-only. */
html[data-rune-site="ᛉ"] .site-header .brand,
html[data-rune-site="ᛉ"] .site-footer .brand {
  gap: 0;
  min-height: 2.75rem;
}
html[data-rune-site="ᛉ"] .site-header .brand img,
html[data-rune-site="ᛉ"] .site-footer .brand img {
  display: none !important;
}

/* RC3 exact domain wordmark and prominent home-hero rune. */
html[data-rune-site="ᛉ"] .brand-domain {
  min-width: max-content;
  overflow: visible;
}

html[data-rune-site="ᛉ"] .brand-domain .brand-word {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  min-width: max-content;
  overflow: visible;
  white-space: nowrap;
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  line-height: 1;
  letter-spacing: 0;
}

html[data-rune-site="ᛉ"] .brand-domain .brand-rune {
  flex: 0 0 auto;
  font-family: var(--runic-font);
  font-size: 1em;
  font-weight: 900;
  letter-spacing: 0;
}

html[data-rune-site="ᛉ"] .brand-domain .brand-domain-suffix {
  flex: 0 0 auto;
  margin-left: 0.07em;
  color: inherit;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8em;
  font-weight: 850;
  letter-spacing: 0.01em;
  line-height: 1;
  text-transform: lowercase;
}

html[data-rune-site="ᛉ"] .hero-copy h1 .hero-brand-rune {
  display: block;
  width: fit-content;
  margin: 0 0 0.16em;
  color: var(--cyan);
  font-family: var(--runic-font);
  font-size: clamp(7rem, 14vw, 12rem);
  font-weight: 900;
  line-height: 0.72;
  letter-spacing: 0;
  overflow-wrap: normal;
  text-wrap: nowrap;
}

@media (max-width: 46rem) {
  html[data-rune-site="ᛉ"] .brand-domain .brand-word {
    font-size: 1.4rem;
  }

  html[data-rune-site="ᛉ"] .hero-copy h1 .hero-brand-rune {
    font-size: clamp(6rem, 26vw, 9rem);
    line-height: 0.78;
  }
}


/* RC7 — user-supplied ᛉ identity artwork.
   The complete supplied composition is now preserved. The lower in-image
   ᛉ.com plaque is part of the identity artwork and must never be cropped. */
html[data-rune-site="ᛉ"] .algiz-identity-art {
  position: relative;
  margin: 0;
  padding: clamp(.45rem, .8vw, .72rem);
  isolation: isolate;
  width: min(100%, 42rem);
  max-width: 42rem;
  justify-self: end;
  border: 1px solid rgba(226, 169, 60, .58);
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 187, 52, .18), transparent 42%),
    #070b0e;
  box-shadow:
    0 1.35rem 4rem rgba(0,0,0,.38),
    0 0 0 1px rgba(255,255,255,.03) inset,
    0 0 3.5rem rgba(232, 155, 37, .08);
  overflow: visible;
}

html[data-rune-site="ᛉ"] .algiz-identity-art::before {
  content: "";
  position: absolute;
  inset: .7rem;
  z-index: 2;
  pointer-events: none;
  border: 1px solid rgba(245, 189, 69, .28);
  box-shadow: 0 0 2rem rgba(255, 169, 36, .07) inset;
}

html[data-rune-site="ᛉ"] .algiz-identity-art picture,
html[data-rune-site="ᛉ"] .algiz-identity-art img {
  display: block;
  width: 100%;
}

html[data-rune-site="ᛉ"] .algiz-identity-art picture {
  position: relative;
  z-index: 1;
  background: #05080a;
}

html[data-rune-site="ᛉ"] .algiz-identity-art img {
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: 50% 50%;
}

html[data-rune-site="ᛉ"] .algiz-identity-art figcaption {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: .72rem;
  min-height: 2.8rem;
  margin-top: .55rem;
  padding: .58rem .72rem;
  color: #fff2d0;
  background: #090d10;
  border: 1px solid rgba(236, 180, 57, .42);
  font-family: var(--runic-font);
  font-size: clamp(.7rem, .9vw, .82rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: .055em;
}

html[data-rune-site="ᛉ"] .algiz-art-rune {
  flex: 0 0 auto;
  color: #ffd063;
  font-size: 1.55rem;
  line-height: 1;
}

@media (max-width: 72rem) {
  html[data-rune-site="ᛉ"] .algiz-identity-art {
    justify-self: center;
    width: min(100%, 38rem);
    max-width: 38rem;
  }
}

@media (max-width: 46rem) {
  html[data-rune-site="ᛉ"] .algiz-identity-art {
    width: min(100%, 32rem);
    padding: .35rem;
  }

  html[data-rune-site="ᛉ"] .algiz-identity-art figcaption {
    align-items: flex-start;
    font-size: .68rem;
  }
}
