/* Premicy start page. Mobile first; colours are token roles only (tokens.css), light and dark by
   prefers-color-scheme through light-dark(). Fonts are self-hosted (SIL OFL 1.1, see /fonts/). */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  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: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond-latin-wght-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
  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: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond-latin-ext-wght-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  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: "Plus Jakarta Sans";
  src: url("/fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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: "Archivo";
  src: url("/fonts/archivo-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Base */
:root {
  color-scheme: light dark;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--text-md);
  line-height: 1.6;
  font-variant-numeric: lining-nums;
  overflow-wrap: break-word;
  hyphens: auto;
}
main {
  flex: 1;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
  margin: 0 0 var(--space-4);
  text-wrap: balance;
  hyphens: manual;
}
h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(1.875rem, 4.5vw, 2.5rem);
  letter-spacing: -0.01em;
}
h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-2);
}
p,
ul,
ol {
  margin: 0 0 var(--space-4);
}
a {
  color: var(--color-link);
  hyphens: manual;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}
.wrap {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: var(--space-4);
}
.skip {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 10;
  padding: var(--space-2) var(--space-4);
  background: var(--color-surface-raised);
  border-radius: var(--radius-control);
}
.skip:focus {
  top: var(--space-2);
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: var(--target-min);
  color: var(--color-text);
  text-decoration: none;
}
.brand__ring {
  width: 28px;
  height: 28px;
  flex: none;
}
.brand__name {
  font-family: var(--font-wordmark);
  font-weight: 600;
  font-size: 1.375rem;
  letter-spacing: -0.015em;
}
.ring {
  stroke: var(--color-action);
}
.dot {
  fill: var(--color-gold);
}
.lang {
  display: inline-flex;
  align-items: center;
  min-height: var(--target-min);
  padding-inline: var(--space-3);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-control);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  text-decoration: none;
}

/* Hero */
.hero {
  padding-block: var(--space-7) var(--space-8);
  border-bottom: 1px solid var(--color-border);
}
.hero__grid {
  display: grid;
  gap: var(--space-6);
  align-items: center;
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--color-action);
}
.hero__ring {
  display: none;
}
.lead {
  max-width: 38rem;
  hyphens: manual;
  font-size: var(--text-lg);
  color: var(--color-text-muted);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-control);
  background: var(--color-pending-bg);
  color: var(--color-pending);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
}
/* Half circle: the brand's mark for "waiting", so the state never rests on colour alone. */
.badge__mark {
  width: 10px;
  height: 10px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--control-height);
  padding: var(--space-2) var(--space-5);
  border: 1px solid var(--color-action);
  border-radius: var(--radius-control);
  background: var(--color-action);
  color: var(--color-on-action);
  font: inherit;
  font-weight: var(--weight-semibold);
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--duration-base) var(--ease-out), border-color var(--duration-base) var(--ease-out);
}
.button:hover {
  background: var(--color-action-hover);
  border-color: var(--color-action-hover);
}
.button:disabled {
  background: transparent;
  border: 1px dashed var(--color-border-strong);
  color: var(--color-text-muted);
  cursor: not-allowed;
}

/* Sections */
.section {
  padding-block: var(--space-8);
}
.section--sunken {
  background: var(--color-surface);
  border-block: 1px solid var(--color-border);
}
.cards {
  display: grid;
  gap: var(--space-4);
  padding: 0;
  list-style: none;
}
.card {
  padding: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
}
.card p {
  margin: 0;
}
.steps {
  display: grid;
  gap: var(--space-5);
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding-left: 3.5rem;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.1em;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--color-action);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: var(--weight-semibold);
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--color-action);
}
.steps p {
  margin: 0;
  color: var(--color-text-muted);
}
.note {
  margin: var(--space-6) 0 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Contact */
.contact {
  display: grid;
  gap: var(--space-6);
}
.contact > div > p {
  max-width: 34rem;
}
.form {
  padding: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
}
.field {
  margin-bottom: var(--space-4);
}
label {
  display: block;
  margin-bottom: var(--space-1);
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
}
input,
select,
textarea {
  display: block;
  width: 100%;
  min-height: var(--control-height);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-control);
  background: var(--color-field);
  color: var(--color-text);
  font: inherit;
}
textarea {
  resize: vertical;
  min-height: 8rem;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: var(--color-focus);
}
[aria-invalid="true"] {
  border: 2px solid var(--color-danger);
}
.hint {
  margin: var(--space-1) 0 var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
/* Honeypot: off screen for people, still in the DOM for form-filling bots. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status:empty {
  display: none;
}
.form-status {
  margin: 0;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-control);
  border-left: 4px solid currentColor;
}
.form-status[data-tone="ok"] {
  background: var(--color-assure-bg);
  color: var(--color-assure);
}
.form-status[data-tone="error"] {
  background: var(--color-danger-bg);
  color: var(--color-danger);
}
.form-status[data-tone="busy"] {
  background: var(--color-surface-sunken);
  color: var(--color-text);
}
.notice {
  padding: var(--space-3) var(--space-4);
  border-left: 4px solid var(--color-pending);
  border-radius: var(--radius-control);
  background: var(--color-pending-bg);
  color: var(--color-text);
}

/* Legal pages */
.prose {
  max-width: 46rem;
  padding-block: var(--space-7) var(--space-8);
}
.prose h1 {
  font-size: clamp(2.25rem, 6vw, 3rem);
}
.prose h2 {
  font-size: 1.625rem;
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
}
.prose li {
  margin-bottom: var(--space-2);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-surface-sunken);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-5);
  padding-block: var(--space-5);
}
.site-footer p {
  margin: 0;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--target-min);
  color: var(--color-text);
}

/* Wider screens */
@media (min-width: 48rem) {
  .wrap {
    padding-inline: var(--space-6);
  }
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
  }
  .contact {
    grid-template-columns: 1fr 1.2fr;
    align-items: start;
  }
  .form {
    padding: var(--space-6);
  }
}
@media (min-width: 64rem) {
  .hero__grid {
    grid-template-columns: 1.6fr 1fr;
  }
  .hero__ring {
    display: block;
    width: min(100%, 20rem);
    justify-self: end;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

@media (forced-colors: active) {
  .ring {
    stroke: CanvasText;
  }
  .dot {
    fill: CanvasText;
  }
}
