/* Ryse 21 — draft site styles. Plain CSS, no build step. */

@font-face {
  font-family: "Outfit";
  src: url("fonts/Outfit-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Crimson Pro";
  src: url("fonts/CrimsonPro-Variable.ttf") format("truetype");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Crimson Pro";
  src: url("fonts/CrimsonPro-Italic-Variable.ttf") format("truetype");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #0b0b0c;
  --bg-elev: #141416;
  --bg-elev-hover: #1b1b1e;
  --ink: #f3f1ec;
  --ink-muted: #9a978f;
  --ink-soft: #6e6b64;
  --line: rgba(243, 241, 236, 0.1);
  --line-strong: rgba(243, 241, 236, 0.18);
  --gold: #c6a36a;
  --gold-text: #d4b27c;
  --tile: #f3f0e8;
  --tile-dark: #0c0c0e;
  --max: 1120px;
  --pad: clamp(1.15rem, 4.5vw, 2.5rem);
  --font-display: "Crimson Pro", "Instrument Serif", Georgia, serif;
  --font-body: "Outfit", "Geist", "Instrument Sans", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  min-width: 0;
}

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

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

.wrap {
  width: min(var(--max), calc(100% - var(--pad) * 2));
  margin-inline: auto;
  min-width: 0;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(11, 11, 12, 0.86);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.25rem;
  gap: 1rem;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.03em;
  min-height: 44px;
  flex-shrink: 0;
}

.brand-mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 0;
  flex-shrink: 0;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 1px;
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.site-header.is-nav-open .nav-toggle-bars { background: transparent; }
.site-header.is-nav-open .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}
.site-header.is-nav-open .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 0.35rem;
}

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.35rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
}

.nav-cta {
  color: var(--gold-text) !important;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 10vh, 7.25rem) 0 clamp(3.25rem, 9vh, 6.5rem);
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% 10% auto -10%;
  height: 70%;
  background: radial-gradient(ellipse at 30% 40%, rgba(198, 163, 106, 0.09), transparent 62%);
  pointer-events: none;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-text);
}

.hero-kicker::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3.15rem, 14vw, 8.25rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.wordmark .num {
  color: var(--gold-text);
  font-style: italic;
  font-weight: 500;
}

.tagline {
  margin-top: 1.5rem;
  max-width: 22em;
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.25rem, 3.6vw, 1.85rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--ink-muted);
}

/* Sections */

.section {
  padding: clamp(3.15rem, 7vw, 5.75rem) 0;
  border-bottom: 1px solid var(--line);
}

.section-label {
  margin-bottom: 1.15rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-text);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.7rem, 4.2vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  overflow-wrap: break-word;
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(1.5rem, 6vw, 5rem);
  align-items: start;
}

.about-copy p {
  color: var(--ink-muted);
  font-size: 1.0625rem;
  max-width: 38em;
}

.about-copy p + p {
  margin-top: 1.1rem;
}

.about-copy strong {
  color: var(--ink);
  font-weight: 550;
}

/* Criteria */

.criteria-lede {
  margin-top: 1rem;
  max-width: 38em;
  color: var(--ink-muted);
  font-size: 1.0625rem;
}

.criteria-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.criteria-item {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.35rem 1.35rem 1.45rem;
  min-width: 0;
}

.criteria-item h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 0.45rem;
}

.criteria-item p {
  color: var(--ink-muted);
  font-size: 0.98rem;
}

.sell-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-top: 2rem;
  padding: 1.4rem 1.5rem;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.sell-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.sell-block p {
  color: var(--ink-muted);
  font-size: 0.98rem;
  max-width: 36em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.25rem;
  border: 1px solid var(--gold);
  border-radius: 8px;
  color: var(--gold-text);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--gold);
  color: #16140f;
}

/* Portfolio */

.portfolio-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.25rem 2rem;
  margin-bottom: 2.15rem;
}

.portfolio-lede {
  max-width: 26em;
  color: var(--ink-muted);
  font-size: 1rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1rem 1.35rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

a.card:hover,
a.card:focus-visible {
  background: var(--bg-elev-hover);
  border-color: var(--line-strong);
}

.card-logo,
.card-logo.is-dark {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 5.75rem;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  background: #f3f0e8;
  overflow: hidden;
}

.card-logo img {
  max-width: 100%;
  max-height: 4.15rem;
  width: auto;
  height: auto;
  object-fit: contain;
}

.card-index {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

.card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.card p {
  margin-top: 0.4rem;
  color: var(--ink-muted);
  font-size: 0.98rem;
  overflow-wrap: break-word;
}

.card-link {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.7rem;
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-text);
  overflow-wrap: anywhere;
}

/* Focus */

.focus-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 2.15rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.focus-item {
  padding: 1.55rem 1.25rem 1.65rem;
  border-right: 1px solid var(--line);
  min-width: 0;
}

.focus-item:last-child {
  border-right: none;
}

.focus-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 1.1rem;
  color: var(--gold);
}

.focus-item h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.focus-item p {
  color: var(--ink-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Contact */

.contact-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 6vw, 5rem);
  align-items: end;
}

.contact-lede {
  margin-top: 0.85rem;
  color: var(--ink-muted);
  max-width: 32em;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  min-width: 0;
}

.email-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.35rem, 5.5vw, 2.45rem);
  letter-spacing: -0.03em;
  color: var(--ink);
  border-bottom: 1px solid var(--gold);
  padding: 0.15rem 0;
  transition: color 0.2s ease;
  overflow-wrap: anywhere;
  max-width: 100%;
}

.email-link:hover,
.email-link:focus-visible {
  color: var(--gold-text);
}

/* Footer */

.site-footer {
  padding: 1.6rem 0 2rem;
}

.footer-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
}

.footer-logo-tile,
.footer-logo-tile.is-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  min-width: 72px;
  padding: 0.35rem 0.55rem;
  background: #f3f0e8;
  border-radius: 8px;
}

.footer-logo-tile img {
  max-height: 28px;
  max-width: 92px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.footer-brand {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink-muted);
}

/* Responsive */

@media (max-width: 900px) {
  .about-grid,
  .contact-block,
  .criteria-grid,
  .portfolio-head {
    grid-template-columns: 1fr;
  }

  .portfolio-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .focus-grid {
    grid-template-columns: 1fr 1fr;
  }

  .focus-item:nth-child(2n) {
    border-right: none;
  }

  .focus-item:nth-child(1),
  .focus-item:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .sell-block {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--pad) 0.85rem;
    background: #101012;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
    z-index: 30;
  }

  .site-header.is-nav-open .nav {
    display: flex;
  }

  .site-header.is-nav-open {
    background: #0b0b0c;
  }

  .nav a {
    justify-content: flex-start;
    min-height: 48px;
    width: 100%;
    padding: 0.75rem 0.15rem;
    border-bottom: 1px solid var(--line);
    font-size: 0.85rem;
  }

  .nav a:last-child {
    border-bottom: none;
  }
}

@media (max-width: 700px) {
  .cards,
  .focus-grid,
  .criteria-grid {
    grid-template-columns: 1fr;
  }

  .focus-item {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .focus-item:last-child {
    border-bottom: none;
  }

  .wordmark {
    font-size: clamp(3rem, 17vw, 4.75rem);
  }

  .tagline {
    max-width: none;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn {
    width: 100%;
  }
}

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