@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/playfair-regular.ttf") format("truetype");
}

@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/playfair-italic.ttf") format("truetype");
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/inter-medium.ttf") format("truetype");
}

:root {
  color-scheme: light;
  background: #fdfcf9;
  color: #061d4e;
  font-family: Inter, Arial, sans-serif;
  font-synthesis: none;
  --navy: #061d4e;
  --navy-deep: #021638;
  --gold: #d99a23;
  --paper: #fdfcf9;
}

* { box-sizing: border-box; }

html { background: var(--paper); }

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 51% 36%, rgb(219 154 35 / 7%), transparent 26%),
    radial-gradient(circle at 9% 90%, rgb(255 255 255 / 90%), transparent 38%),
    var(--paper);
  color: var(--navy);
}

.pixel-image { display: none; }

.navbar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  padding: 28px 3.75%;
}

.brand-lockup { display: inline-flex; flex-direction: column; }

.logo {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(30px, 3.25vw, 53px);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.brand-line,
.title-accent {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 18px;
}

.brand-line {
  width: min(100%, 315px);
  margin-top: 8px;
}

.brand-line::before,
.brand-line::after,
.title-accent::before,
.title-accent::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.brand-line::after,
.title-accent::after { transform: rotate(180deg); }

.brand-line i,
.title-accent i {
  position: relative;
  width: 14px;
  height: 14px;
  margin: 0 2px;
  transform: rotate(45deg);
  border: 2px solid var(--gold);
}

.brand-line i::before,
.title-accent i::before {
  content: "";
  position: absolute;
  inset: 3px;
  background: var(--gold);
}

.gold-threads {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("/assets/gold-threads.svg") center / cover no-repeat;
  opacity: 0.14;
  filter: sepia(1) saturate(2.2) hue-rotate(350deg);
}

.hero {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 118px 4.5% 62px;
  text-align: center;
}

.hero-content {
  width: 100%;
  max-width: 1260px;
}

.photo-wrapper {
  width: clamp(170px, 16vw, 242px);
  aspect-ratio: 1;
  margin: 0 auto clamp(24px, 3vh, 38px);
  overflow: hidden;
  border: 3px solid var(--gold);
  border-radius: 50%;
  background: var(--navy-deep);
  box-shadow:
    0 0 0 2px rgb(255 255 255 / 80%),
    0 15px 38px rgb(24 32 58 / 15%);
}

.profile-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 43%;
}

.hero-title {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(45px, 6.15vw, 92px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.042em;
  text-wrap: balance;
}

.title-accent {
  width: min(365px, 40vw);
  margin: clamp(18px, 2.5vh, 28px) auto 0;
}

.title-accent i { width: 17px; height: 17px; }

.hero-subtitle {
  max-width: 860px;
  margin: clamp(14px, 2vh, 22px) auto clamp(24px, 3.2vh, 34px);
  color: var(--navy);
  font-size: clamp(16px, 1.45vw, 23px);
  font-weight: 500;
  line-height: 1.5;
  text-wrap: balance;
}

.connect-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(440px, 88vw);
  min-height: 62px;
  padding: 14px 36px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: linear-gradient(135deg, #09285e, #031b45);
  color: #fff;
  font-size: clamp(16px, 1.35vw, 21px);
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  box-shadow:
    inset 0 0 0 3px var(--navy-deep),
    inset 0 0 0 4px rgb(217 154 35 / 85%),
    0 10px 24px rgb(6 29 78 / 16%);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.connect-button:hover {
  background: linear-gradient(135deg, #0d3474, #041d49);
  box-shadow:
    inset 0 0 0 3px var(--navy-deep),
    inset 0 0 0 4px var(--gold),
    0 14px 30px rgb(6 29 78 / 22%);
  transform: translateY(-2px);
}

.connect-button:active { transform: translateY(0); }
.connect-button:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }

@media (max-width: 700px) {
  .navbar { padding: 20px 6%; }
  .logo { font-size: clamp(28px, 9vw, 39px); }
  .brand-line { width: min(100%, 250px); margin-top: 6px; }
  .hero { padding: 126px 6% 48px; }
  .photo-wrapper { width: 158px; margin-bottom: 28px; border-width: 2px; }
  .hero-title { font-size: clamp(40px, 12.2vw, 58px); line-height: 1.02; }
  .title-accent { width: min(260px, 66vw); margin-top: 20px; }
  .hero-subtitle { margin: 15px auto 26px; font-size: 15px; line-height: 1.5; }
  .connect-button { min-width: min(330px, 90vw); min-height: 56px; padding-inline: 28px; }
  .gold-threads { background-size: auto 100%; opacity: 0.1; }
}

@media (max-height: 730px) and (min-width: 701px) {
  .navbar { padding-top: 18px; }
  .hero { padding-block: 96px 34px; }
  .photo-wrapper { width: 150px; margin-bottom: 18px; }
  .hero-title { font-size: clamp(42px, 5vw, 68px); }
  .title-accent { margin-top: 14px; }
  .hero-subtitle { margin-block: 9px 17px; }
  .connect-button { min-height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  .connect-button { transition: none; }
  .connect-button:hover { transform: none; }
}
