/* Ebone Digital — site styles. No external requests. */
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #141414;
  --bg-elevated: #1c1b19;
  --bg-card: #1a1917;
  --text: #f3eee3;
  --text-muted: #c4bcae;
  --gold: #d4a73a;
  --gold-bright: #e8be55;
  --gold-deep: #8a6918;
  --bone: #f3eee3;
  --line: rgba(243, 238, 227, 0.1);
  --line-strong: rgba(243, 238, 227, 0.16);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --radius: 1.15rem;
  --wrap: 68rem;
  --header-h: 4.25rem;
  --focus: 0 0 0 2px var(--bg), 0 0 0 4px var(--gold);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
}

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

html {
  color-scheme: dark;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--gold-bright);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 0.25rem;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 100;
  background: var(--gold);
  color: var(--bg);
  font-weight: 700;
  padding: 0.55rem 0.9rem;
  border-radius: 0.4rem;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 0.75rem;
  color: var(--bg);
  box-shadow: var(--focus);
}

.wrap {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  min-height: var(--header-h);
  flex-wrap: wrap;
  padding: 0.6rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  line-height: 1;
}

.brand:hover {
  color: var(--text);
}

.brand:focus-visible {
  box-shadow: var(--focus);
  border-radius: 0.4rem;
}

.brand-mark {
  width: 1.65rem;
  height: 1.65rem;
  flex: none;
}

.brand-name {
  white-space: nowrap;
}

.nav-primary ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.15rem 0.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-primary a {
  display: inline-block;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.4rem 0.75rem;
  border-bottom: 2px solid transparent;
}

.nav-primary a:hover {
  color: var(--gold-bright);
}

.nav-primary a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--gold);
  font-weight: 600;
}

.nav-primary a:focus-visible {
  box-shadow: var(--focus);
  border-radius: 0.35rem;
}

/* Main */
main {
  flex: 1 0 auto;
}

/* Home hero */
.hero {
  text-align: center;
  padding: 3.25rem 0 3.5rem;
}

.wordmark {
  width: min(100%, 46rem);
  margin: 0 auto 0.35rem;
}

.wordmark svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.wordmark-sub {
  margin: 0.15rem 0 0;
  font-weight: 650;
  font-size: clamp(0.95rem, 2.8vw, 1.45rem);
  letter-spacing: 0.72em;
  text-transform: uppercase;
  text-align: center;
  padding-left: 0.72em;
  color: var(--text);
}

.tagline {
  margin: 1.35rem auto 0;
  max-width: 46rem;
  color: var(--text);
  font-size: clamp(0.95rem, 2vw, 1.12rem);
  font-weight: 400;
  line-height: 1.55;
}

/* Brand cards */
.brand-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  width: min(100%, 44rem);
  margin: 2.35rem auto 0;
}

.brand-card {
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 1.7rem 1.4rem 1.45rem;
  text-align: center;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.brand-card:hover {
  color: inherit;
  border-color: rgba(212, 167, 58, 0.45);
}

.brand-card:focus-visible {
  box-shadow: var(--focus);
}

.card-icon {
  width: 5.5rem;
  height: 5.5rem;
  margin-bottom: 0.45rem;
}

.card-icon svg {
  width: 100%;
  height: 100%;
}

.card-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card-desc {
  margin: 0 0 0.85rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 16rem;
  line-height: 1.45;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 8.5rem;
  padding: 0.62rem 1.5rem;
  border: 0;
  border-radius: 0.5rem;
  background: linear-gradient(180deg, #e8be55 0%, #d4a73a 48%, #c4962e 100%);
  color: #141414;
  font: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 1px 0 var(--gold-deep);
  cursor: pointer;
}

.btn:hover {
  color: #141414;
  background: linear-gradient(180deg, #f0cc68 0%, #e0b84a 48%, #d4a73a 100%);
}

.btn:focus-visible {
  box-shadow: var(--focus), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* Inner pages */
.page {
  padding: 2.6rem 0 4rem;
}

.page-title {
  margin: 0 0 1.5rem;
  font-size: clamp(2rem, 5vw, 3.15rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-align: center;
}

.lede,
.effective {
  text-align: center;
  color: var(--text-muted);
  margin: -0.7rem auto 2rem;
  max-width: 36rem;
}

/* About */
.about-grid {
  display: grid;
  gap: 2.25rem 3.5rem;
  align-items: start;
  max-width: 56rem;
  margin: 0 auto;
}

.about-copy {
  margin: 0;
}

.about-copy p {
  margin: 0 0 1.15rem;
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--text);
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.principles {
  list-style: none;
  margin: 0.3rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
}

.principle {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.principle .mini-coin {
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
}

.brand-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2.5rem;
  margin: 3.25rem auto 0;
  padding-top: 0.5rem;
}

.brand-row a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
}

.brand-row a:hover {
  color: var(--gold-bright);
}

.brand-row .row-bone {
  width: 1.7rem;
  height: 0.75rem;
  flex: none;
}

/* Prose (privacy, terms) */
.prose {
  max-width: 40rem;
  margin: 0 auto;
}

.prose h2 {
  margin: 2rem 0 0.6rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--text);
  margin: 0 0 0.9rem;
  line-height: 1.65;
}

.prose ul {
  margin: 0 0 0.9rem;
  padding-left: 1.2rem;
}

/* Contact + 404 */
.contact-block,
.error-page {
  text-align: center;
  max-width: 32rem;
  margin: 0 auto;
  padding: 0.5rem 0 1rem;
}

.contact-block .page-title,
.error-page .page-title {
  margin-bottom: 0.85rem;
}

.contact-email {
  display: inline-block;
  margin: 0.15rem 0 0;
  font-size: clamp(1.05rem, 3vw, 1.45rem);
  font-weight: 700;
  word-break: break-word;
}

.contact-item {
  margin: 1.35rem 0 0;
}

.contact-item p {
  margin: 0 0 0.2rem;
  color: var(--text-muted);
}

.contact-note,
.error-page p {
  color: var(--text-muted);
  margin: 0 auto 1.5rem;
  max-width: 28rem;
}

.error-page p {
  margin-bottom: 1.6rem;
}

.decor {
  width: 4.25rem;
  height: 4.25rem;
  margin: 0 auto 1.25rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.15rem 0 1.3rem;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
}

.site-footer p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-nav {
  display: flex;
  gap: 1.15rem;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: var(--gold-bright);
}

/* Responsive */
@media (min-width: 720px) {
  .brand-cards {
    grid-template-columns: 1fr 1fr;
    width: min(100%, 48rem);
  }

  .hero {
    padding: 4rem 0 4.25rem;
  }

  .about-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(16rem, 0.8fr);
    padding-top: 0.4rem;
  }

}

@media (max-width: 639px) {
  .header-inner {
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    padding: 0.7rem 0 0.55rem;
  }

  .nav-primary ul {
    justify-content: center;
    gap: 0;
  }

  .nav-primary a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.45rem 0.6rem;
    font-size: 0.88rem;
  }

  .footer-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.45rem 0.55rem;
  }

  .wordmark-sub {
    letter-spacing: 0.48em;
    padding-left: 0.48em;
  }

  .hero {
    padding: 2.1rem 0 2.75rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .brand-card,
  .btn {
    transition: none;
  }
}
