@font-face {
  font-family: "Brito Tri";
  src: url("fonts/BritoTri-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Brito Tri";
  src: url("fonts/BritoTri-Du.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1a1412;
  --muted: #8c827e;
  --line: #e8e2df;
  --soft: #faf9f8;
  --accent: #3d2b1f;
  --gold: #a68549;
  --focus: #c5a059;
  --radius-sm: 8px;
  --radius-md: 12px;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: #fff; }
body {
  min-height: 100vh;
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Brito Tri", Georgia, serif;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70vw;
  height: 70vh;
  background: url("logo-cone.png") no-repeat center/contain;
  opacity: 0.035;
  filter: grayscale(1);
  pointer-events: none;
  z-index: -1;
}
a, button, input { font: inherit; }
a { color: inherit; text-underline-offset: 4px; }

.page-shell {
  width: min(100% - 48px, 1000px);
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(60px, 12vw, 100px) 0;
  display: grid;
  align-content: center;
  gap: clamp(48px, 10vw, 80px);
}

.brand { display: flex; justify-content: center; }
.brand__logo {
  width: clamp(150px, 27vw, 240px);
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.02));
}
.hero { text-align: center; }
.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
h1 {
  margin-bottom: clamp(24px, 4vw, 32px);
  font-size: clamp(3.5rem, 12vw, 8rem);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.04em;
}
.hero__text {
  max-width: 850px;
  margin: 0 auto;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.social-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.social-links a, button {
  min-height: 48px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.social-links a:hover, button:hover {
  background: var(--ink);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 20, 18, 0.1);
}
.newsletter {
  width: min(100%, 720px);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 20px 40px rgba(26, 20, 18, 0.03);
  overflow: hidden;
  position: relative;
}
.newsletter__initial {
  display: grid;
  transition: opacity 0.6s ease;
}
.newsletter__initial.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.newsletter__header {
  padding: clamp(32px, 6vw, 56px) clamp(32px, 6vw, 56px) 0;
  text-align: center;
}
.newsletter__body {
  padding: 32px clamp(32px, 6vw, 56px) clamp(32px, 6vw, 56px);
  display: grid;
  gap: 32px;
}
.newsletter h2 {
  margin-bottom: 12px;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.newsletter p {
  margin-bottom: 0;
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 1.1rem;
  line-height: 1.6;
}
.newsletter__form { display: grid; gap: 24px; }
.newsletter__field { display: grid; gap: 12px; }
.newsletter__form label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink);
}
.newsletter__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.newsletter__footer altcha-widget {
  margin-top: 0;
  flex: 1;
}
.newsletter__footer button {
  height: 52px;
}
.social-links a svg {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  color: var(--gold);
  vertical-align: middle;
  margin-top: -2px;
}
input {
  min-width: 0;
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--soft);
  color: var(--ink);
  padding: 14px 20px;
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
input:focus { border-color: var(--gold); background: #fff; }
input::placeholder { color: #b0a4a0; }
button {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
}
button:disabled { cursor: wait; opacity: 0.6; }
button:hover { border-color: var(--ink); background: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
altcha-widget {
  --altcha-border-radius: var(--radius-sm);
  --altcha-color-border: var(--line);
  --altcha-color-base: var(--soft);
  --altcha-color-text: var(--ink);
  --altcha-color-accent: var(--gold);
  max-width: 100%;
}
.newsletter .newsletter__note { color: var(--ink); font-size: 0.9rem; font-style: italic; }
.newsletter .newsletter__note[data-type="error"] { color: #a62d24; font-style: normal; }
.newsletter .newsletter__note[data-type="success"] { color: #2d6a3e; font-style: normal; }

.newsletter__success {
  position: absolute;
  inset: 0;
  background: #2d4a3e;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  z-index: 10;
}
.newsletter__success.is-visible {
  opacity: 1;
  visibility: visible;
}
.newsletter__success:not([hidden]).is-visible {
  animation: fadeIn 0.6s ease forwards;
}
.newsletter__success h3 {
  font-size: 2.5rem;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.newsletter__success p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
}
.newsletter__success-icon {
  margin-bottom: 24px;
  color: var(--gold);
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1), 
              transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal--visible { opacity: 1; transform: translateY(0); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 620px) {
  .page-shell { width: min(100% - 48px, 1000px); align-content: start; }
  .newsletter__header { padding: 32px 24px 0; }
  .newsletter__body { padding: 24px; }
  .newsletter__footer { flex-direction: column; align-items: stretch; }
  .newsletter__footer button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
