@font-face { font-family: "Free Serif"; src: url("../fonts/FreeSerif.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Free Serif"; src: url("../fonts/FreeSerifBold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  /* palette */
  --oxblood: #802828;
  --ash: #a29992;
  --gold: #c67e4a;
  --blood-bright: #b84545;   /* lighter oxblood, only for error states (readable on black) */

  --bg: #0a0a0a;
  --bg-alt: #110b0b;
  --fg: #eeeae4;
  --body: #d9d4ce;
  --mute: var(--ash);
  --line: rgba(162, 153, 146, .20);
  --line-strong: rgba(162, 153, 146, .45);
  --gold-line: rgba(198, 126, 74, .55);
  --serif: "Free Serif", Georgia, "Times New Roman", serif;
  --max: 1120px;
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--serif); font-size: 1.15rem; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--oxblood); color: var(--fg); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--fg); color: var(--bg); padding: 10px 16px; z-index: 100; }
.skip:focus { top: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.wrap { width: min(var(--max), 100% - 48px); margin-inline: auto; }
.wrap--narrow { width: min(680px, 100% - 48px); }

/* ---------- NAV ---------- */
.nav { position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.is-scrolled, .nav.is-open { background: rgba(10, 8, 8, .92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom-color: var(--line); }
.nav__inner { width: min(1280px, 100% - 40px); height: 100%; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { width: 44px; height: 44px; }
.brand__name { font-weight: 700; font-size: .8rem; letter-spacing: .3em; text-transform: uppercase; }
.menu { display: flex; gap: 34px; }
.menu a { font-weight: 700; font-size: .8rem; letter-spacing: .26em; text-transform: uppercase; text-decoration: none; padding: 8px 0; border-bottom: 1px solid transparent; }
.menu a:hover { color: var(--gold); border-bottom-color: var(--gold); }
.nav__toggle { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; color: var(--fg); }
.nav__toggle span { position: absolute; left: 10px; right: 10px; height: 1px; background: currentColor; transition: transform .25s, top .25s; }
.nav__toggle span:nth-child(1) { top: 18px; }
.nav__toggle span:nth-child(2) { top: 26px; }
.nav.is-open .nav__toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

/* ---------- HERO ---------- */
.hero { background: radial-gradient(ellipse 60% 55% at 50% 46%, rgba(128, 40, 40, .26), transparent 70%); position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: calc(var(--nav-h) + 20px) 0 60px; overflow: hidden; text-align: center; }
.hero__seal { position: absolute; left: 50%; top: 50%; width: min(88vh, 980px, 150vw); max-width: none; height: auto; opacity: .5; transform: translate(-50%, -50%); animation: spin 360s linear infinite; pointer-events: none; user-select: none; }
.hero__content { position: relative; z-index: 1; width: min(1100px, 100% - 32px); }
.hero__logo { margin: 0; line-height: 0; }
.hero__logo img { width: 100%; height: auto; }
.hero__tag { margin: 38px 0 0; font-weight: 700; font-size: clamp(.8rem, 1.6vw, 1rem); letter-spacing: .5em; text-transform: uppercase; padding-left: .5em; }
.hero__actions { margin: 44px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* ---------- BUTTONS ---------- */
.btn { display: inline-block; font-family: var(--serif); font-weight: 700; font-size: .82rem; letter-spacing: .26em; text-transform: uppercase; text-decoration: none; color: var(--fg); background: var(--oxblood); border: 1px solid var(--oxblood); padding: 16px 30px; cursor: pointer; transition: background .2s, color .2s; }
.btn:hover { background: var(--gold); border-color: var(--gold); color: var(--bg); text-decoration: none; }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--line-strong); }
.btn--ghost:hover { background: transparent; color: var(--gold); border-color: var(--gold); }
.btn[disabled] { opacity: .5; cursor: wait; }

/* ---------- SECTIONS ---------- */
.section { padding: clamp(80px, 11vw, 150px) 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.eyebrow { margin: 0 0 10px; font-weight: 700; font-size: .78rem; letter-spacing: .4em; text-transform: uppercase; color: var(--gold); }
h2 { margin: 0; font-weight: 700; font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.15; letter-spacing: .06em; text-transform: uppercase; }
h3 { margin: 0; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
p { margin: 0 0 1.1em; }
.section__head { margin-bottom: 56px; }
.section__head--center { text-align: center; }
.section__head--center .rule { margin-inline: auto; }

/* art-deco divider: two hairlines with a diamond in the middle */
.rule { position: relative; width: 150px; height: 11px; margin: 26px 0 34px;
  background:
    linear-gradient(var(--gold-line), var(--gold-line)) left center / calc(50% - 14px) 1px no-repeat,
    linear-gradient(var(--gold-line), var(--gold-line)) right center / calc(50% - 14px) 1px no-repeat; }
.rule::before { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; background: var(--gold); transform: rotate(45deg); }

/* ---------- ABOUT ---------- */
.about { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(36px, 7vw, 100px); align-items: center; }
.about__text p { color: var(--body); max-width: 36em; }
.about__seal img { width: 100%; max-width: 460px; margin-inline: auto; }

/* ---------- ROSTER ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 28px; }
.card { position: relative; border: 1px solid var(--line); padding: 16px 16px 30px; text-align: center; transition: border-color .25s, transform .25s; background: var(--bg); }
.card::before { content: ""; position: absolute; inset: 7px; border: 1px solid var(--line); pointer-events: none; transition: border-color .25s; }
.card:hover { border-color: var(--gold-line); transform: translateY(-3px); }
.card:hover::before { border-color: var(--gold-line); }
.card__media { aspect-ratio: 4 / 5; display: grid; place-items: center; margin-bottom: 26px; background: radial-gradient(circle at 50% 38%, #251414 0%, #0e0909 72%); overflow: hidden; }
.card__media span { font-weight: 700; font-size: clamp(7rem, 16vw, 11rem); line-height: 1; color: rgba(128, 40, 40, .6); }
.card__photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; margin-bottom: 26px; }
.card h3 { font-size: 1.7rem; }
.card__note { margin: 8px 0 18px; color: var(--mute); font-size: 1rem; }
.card__link { font-weight: 700; font-size: .78rem; letter-spacing: .26em; text-transform: uppercase; text-decoration: none; color: var(--gold); border-bottom: 1px solid var(--gold-line); padding-bottom: 4px; }
.card__link:hover { color: var(--fg); border-bottom-color: var(--fg); }

/* ---------- FORMS ---------- */
.form { margin-top: 10px; }
.field { margin-bottom: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
label { display: block; font-weight: 700; font-size: .74rem; letter-spacing: .3em; text-transform: uppercase; color: var(--mute); margin-bottom: 8px; }
input[type="text"], input[type="email"], select, textarea { width: 100%; font-family: var(--serif); font-size: 1.1rem; color: var(--fg); background: transparent; border: 1px solid var(--line-strong); border-radius: 0; padding: 14px 16px; -webkit-appearance: none; appearance: none; }
textarea { resize: vertical; min-height: 150px; }
select { background-image: linear-gradient(45deg, transparent 50%, var(--fg) 50%), linear-gradient(135deg, var(--fg) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
select option { background: #151515; color: var(--fg); }
input::placeholder, textarea::placeholder { color: #707070; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--blood-bright); box-shadow: 0 0 0 1px var(--blood-bright); }

.form--news .form__row { display: flex; gap: 14px; }
.form--news .form__row input { flex: 1; }
.check { display: flex; gap: 14px; align-items: flex-start; margin: 22px 0 0; font-weight: 400; font-size: .95rem; letter-spacing: 0; text-transform: none; color: var(--mute); line-height: 1.55; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: #c67e4a; }
.check a { color: var(--gold); }
.form__fine { font-size: .92rem; color: var(--mute); margin: 4px 0 26px; line-height: 1.55; }
.form__fine a { color: var(--gold); }
.form__status { min-height: 1.6em; margin: 20px 0 0; font-size: 1rem; }
.form__status.is-ok { color: var(--gold); }
.form__status.is-ok::before { content: "✓ "; }
.form__status.is-error { color: var(--fg); border-left: 3px solid var(--blood-bright); padding-left: 14px; }

/* ---------- CONTACT ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 7vw, 100px); align-items: start; }
.contact__info p { color: var(--body); }
.contact__mail { font-size: 1.25rem; }
.contact__mail a { font-weight: 700; color: var(--gold); overflow-wrap: anywhere; }
.contact__mail a:hover { color: var(--fg); }

/* ---------- FOOTER ---------- */
.footer { padding: 46px 0; border-top: 1px solid var(--line); }
.footer__inner { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.footer__brand { display: flex; align-items: center; gap: 18px; }
.footer__brand p { margin: 0; color: var(--mute); font-size: .95rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 30px; font-size: .95rem; color: var(--mute); }
.footer__links a { text-decoration: none; }
.footer__links a:hover { color: var(--gold); text-decoration: underline; }

/* ---------- LEGAL / 404 PAGES ---------- */
.page { padding: calc(var(--nav-h) + 70px) 0 100px; }
.page h1 { margin: 0 0 8px; font-weight: 700; font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: .06em; text-transform: uppercase; line-height: 1.15; }
.page h2 { font-size: 1.35rem; letter-spacing: .12em; margin: 48px 0 12px; }
.page p, .page li { color: var(--body); }
.page a { color: var(--gold); }
.page ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.page .updated { color: var(--mute); font-size: .95rem; }
.page--center { min-height: 100vh; display: grid; place-items: center; text-align: center; padding-bottom: 60px; }
.page--center img { width: 220px; margin: 0 auto 30px; }

/* ---------- REVEAL (only when JS is on) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
  html.js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__seal { animation: none; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .menu { position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; gap: 0; background: rgba(10, 10, 10, .97); border-bottom: 1px solid var(--line); padding: 8px 24px 20px; display: none; }
  .nav.is-open .menu { display: flex; }
  .menu a { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .about, .contact { grid-template-columns: 1fr; }
  .about__seal { order: -1; }
  .about__seal img { max-width: 300px; }
}
@media (max-width: 560px) {
  body { font-size: 1.08rem; }
  .brand__name { display: none; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .form--news .form__row { flex-direction: column; }
  .hero__tag { letter-spacing: .32em; }
  .btn { width: 100%; text-align: center; }
  .hero__actions { flex-direction: column; align-items: stretch; width: min(320px, 100%); margin-inline: auto; }
}
