/* ---------- Fonts ----------
   Brand: Times (serif) for headlines and longer editorial text;
   Gotham (sans) for labels, information, wayfinding and digital UI.
   'Brand Times' uses the visitor's installed Times / Times New Roman, and falls
   back to self-hosted Tinos (metric-compatible Times clone, Apache 2.0).
   Gotham is a paid Hoefler&Co licence: used if installed, otherwise the
   self-hosted Montserrat stand-in (OFL). TODO: add Gotham webfont files once licensed. */
@font-face {
  font-family: 'Brand Times';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Times New Roman'), local('TimesNewRomanPSMT'), local('Times-Roman'), local('Times'), url(/assets/fonts/tinos-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Brand Times';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: local('Times New Roman Italic'), local('TimesNewRomanPS-ItalicMT'), local('Times-Italic'), url(/assets/fonts/tinos-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Brand Times';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Times New Roman'), local('TimesNewRomanPSMT'), local('Times-Roman'), local('Times'), url(/assets/fonts/tinos-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Brand Times';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: local('Times New Roman Italic'), local('TimesNewRomanPS-ItalicMT'), local('Times-Italic'), url(/assets/fonts/tinos-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/assets/fonts/montserrat-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/assets/fonts/montserrat-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens (Brand Book v6) ---------- */
:root {
  --boka-deep:      #1F3A3D;
  --boka-deeper:    #142A2C;
  --limestone:      #ECE5D8;
  --kotor-stone:    #D9CFBD;
  --light-bronze:   #C4A988;
  --combed-bronze:  #A9855A;
  --bay-grey:       #4E6268;
  --bay-mist:       #8FA1A4;
  --ink:            #1C1E1C;
  --text-soft:      #D2D8D4;
  --text-note:      #AEBBB8;

  --serif: 'Brand Times', 'Times New Roman', Times, serif;
  --sans:  Gotham, 'Gotham SSm', Montserrat, system-ui, sans-serif;
}

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

/* The hidden attribute must win over display rules (e.g. .form { display: flex }) */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--boka-deep);
  color: var(--limestone);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--limestone); text-underline-offset: 3px; }
a:hover { color: var(--light-bronze); }

:focus-visible { outline: 2px solid var(--light-bronze); outline-offset: 3px; }

/* ---------- Page / texture ---------- */
.page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background-color: var(--boka-deep);
  background-image: url(/assets/water-texture.jpg);
  background-image: image-set(
    url(/assets/water-texture.avif) type('image/avif'),
    url(/assets/water-texture.webp) type('image/webp'),
    url(/assets/water-texture.jpg) type('image/jpeg')
  );
  background-position: center;
  background-size: cover;
}

@media (max-width: 760px) {
  .page {
    background-image: url(/assets/water-texture-960.jpg);
    background-image: image-set(
      url(/assets/water-texture-960.webp) type('image/webp'),
      url(/assets/water-texture-960.jpg) type('image/jpeg')
    );
  }
}

/* Small tracked caps — header, labels, button, investor line.
   Text stays sentence case in the HTML; the caps are presentation only. */
.site-header,
.field label,
.cta,
.investor-label {
  font-family: var(--sans);
  text-transform: uppercase;
  font-feature-settings: 'kern' 1;
}

/* ---------- Header ---------- */
.site-header {
  padding: 36px 5vw 0;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--light-bronze);
}
.site-header span { padding-left: 0.2em; } /* optical centring of tracked caps */

/* ---------- Hero ---------- */
.hero {
  flex: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 12vh 5vw 8vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(46px, 6vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 i { color: var(--light-bronze); }

/* ---------- Sign-up ---------- */
.signup {
  margin-top: clamp(48px, 8vh, 80px);
  width: 100%;
  max-width: 760px;
}

.form { display: flex; flex-direction: column; gap: 18px; text-align: left; }

.fields {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
}

.field {
  flex: 1 1 200px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.field--contact { flex-grow: 1.2; }

.field label {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.16em;
  color: var(--light-bronze);
}

.field input {
  height: 54px;
  width: 100%;
  padding: 0 16px;
  background: rgba(15, 32, 34, 0.55);
  border: 1px solid rgba(236, 229, 216, 0.4);
  border-radius: 2px;
  color: var(--limestone);
  font: 400 16px var(--sans);
  caret-color: var(--light-bronze);
  transition: border-color .2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.field input::placeholder { color: var(--bay-mist); opacity: 1; }
.field input:hover { border-color: rgba(236, 229, 216, 0.6); }
.field input:focus { border-color: var(--light-bronze); }
.field input[aria-invalid="true"] { border-color: var(--light-bronze); }

/* Keep browser autofill from painting the fields white/yellow */
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--limestone);
  -webkit-box-shadow: 0 0 0 100px #1A3133 inset;
  caret-color: var(--light-bronze);
}

.field-error {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--limestone);
}

.cta {
  flex: 1 1 260px;
  /* align with the inputs (label 12px*1.2 + 10px gap) */
  margin-top: calc(12px * 1.2 + 10px);
  height: 54px;
  padding: 0 24px 0 calc(24px + 0.24em);
  white-space: nowrap;
  background: var(--light-bronze);
  color: var(--boka-deeper);
  border: none;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.24em;
  cursor: pointer;
  transition: background-color .25s ease;
}
.cta:hover { background: var(--kotor-stone); }
.cta:disabled { cursor: progress; opacity: 0.85; }

.form-error {
  margin: 0;
  font-size: 14px;
  text-align: center;
  color: var(--limestone);
}

.consent {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-note);
  text-align: center;
}
.consent a { color: var(--text-note); }
.consent a:hover { color: var(--light-bronze); }

.success {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.35;
  text-align: center;
  color: var(--limestone);
}
.success:focus { outline: none; }

.visually-hidden,
.hp {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.hp { left: -10000px; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 32px 5vw 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.investor-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  padding-left: 0.2em;
  color: var(--light-bronze);
}
.investor-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.investor-logo img { display: block; width: 130px; height: auto; }
.investor-logo span {
  font-weight: 500;
  font-size: 9.4px;
  letter-spacing: 0.24em;
  line-height: 1;
  color: var(--limestone);
  padding-left: 0.24em;
}

/* ---------- Motion ---------- */
.rise {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 1.4s cubic-bezier(.2, .6, .2, 1) .2s forwards;
}
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; opacity: 1; transform: none; }
  .field input, .cta { transition: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
  .site-header { padding: 28px 20px 0; font-size: 12px; }
  .hero { padding: 10vh 20px 6vh; }
  .signup { margin-top: 48px; }
  .fields { flex-direction: column; align-items: stretch; gap: 16px; }
  .field, .cta { flex: none; width: 100%; }
  .cta { margin-top: 4px; }
}

/* ---------- Document pages (privacy) ---------- */
.site-header a { color: inherit; text-decoration: none; }
.site-header a:hover { color: var(--limestone); }

.page--doc { background-attachment: fixed; }

.doc {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 10vh 20px 12vh;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-soft);
}
.doc h1 {
  font-size: clamp(38px, 5vw, 60px);
  color: var(--limestone);
  margin-bottom: 8px;
}
.doc h2 {
  margin: 44px 0 10px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.25;
  color: var(--limestone);
}
.doc p, .doc ul { margin: 0 0 14px; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 4px; }
.doc a { color: var(--limestone); }
.doc a:hover { color: var(--light-bronze); }
.doc-meta { font-size: 13px; color: var(--text-note); }
.doc-address { padding-left: 16px; border-left: 1px solid rgba(196, 169, 136, 0.5); color: var(--limestone); }
.doc-address strong { font-weight: 600; }
.doc-back { margin-top: 48px !important; font-size: 14px; }

/* Unfilled placeholders — must be gone before launch */
.todo { background: rgba(196, 169, 136, 0.25); color: var(--limestone); padding: 0 4px; border-radius: 2px; }

@media (max-width: 760px) {
  .page--doc { background-attachment: scroll; }
}
