/* Arca — shared styles for the hand-written account pages (/sign-in/, /product/).
   Same tokens, type and chrome as the rest of arcaring.com, which is built from
   the arca-neo project. Cormorant Garamond for display, Albert Sans for text,
   white paper, ink, and one iOS light blue for light. */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../assets/fonts/cormorant-garamond-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/cormorant-garamond-italic-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Albert Sans";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../assets/fonts/albert-sans-latin.woff2") format("woff2");
}

:root {
  --paper: #ffffff;
  --paper-2: #f6f7f8;
  --line: #e7e9ec;
  --line-strong: #d3d7dc;
  --ink: #0b0c0e;
  --ink-2: #454a52;
  --ink-3: #82878f;
  --sky: #5ac8fa;
  --sky-deep: #0071e3;
  --error: #b4432f;

  --display: "Cormorant Garamond", Georgia, serif;
  --text: "Albert Sans", system-ui, sans-serif;

  --gutter: clamp(20px, 4vw, 56px);
  --header-h: 72px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: light; background: var(--paper); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
::selection { background: rgba(90, 200, 250, 0.28); }
:focus-visible { outline: 2px solid var(--sky-deep); outline-offset: 3px; border-radius: 6px; }

a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); }
a:hover { text-decoration-color: currentColor; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1400px; margin-inline: auto; padding-inline: var(--gutter); }

/* ── Type ─────────────────────────────────────────────────────────────── */

.eyebrow { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink-3); }
.display { font-family: var(--display); font-weight: 300; font-size: clamp(2.7rem, 5.6vw, 5.4rem); line-height: 0.98; letter-spacing: -0.015em; }
.title { font-family: var(--display); font-weight: 400; font-size: clamp(1.7rem, 2.6vw, 2.4rem); line-height: 1.05; letter-spacing: -0.01em; }
.lead { font-weight: 300; font-size: clamp(1.1rem, 1.35vw, 1.3rem); line-height: 1.55; color: var(--ink-2); }
.italic { font-family: var(--display); font-style: italic; font-weight: 400; }
.numeral { font-family: var(--display); font-style: italic; font-weight: 400; color: var(--ink-3); }

/* ── Header ───────────────────────────────────────────────────────────── */

.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(231, 233, 236, 0.8); background: rgba(255, 255, 255, 0.82); -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.header-left { display: flex; align-items: center; gap: 22px; }
.wordmark { display: inline-flex; align-items: center; gap: 0.55em; font-size: 15px; color: var(--ink); text-decoration: none; }
.wordmark .mark { width: 1.15em; height: 1.15em; }
.wordmark span { font-family: var(--display); font-weight: 500; font-size: 1.05em; letter-spacing: 0.34em; margin-right: -0.34em; }
.header-back { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-3); text-decoration: none; }
.header-back[hidden] { display: none; }
.header-back:hover { color: var(--ink); }
.header-nav { display: flex; align-items: center; gap: 36px; }
.header-nav a { font-size: 14px; color: var(--ink); text-decoration: none; opacity: 0.85; }
.header-nav a:hover { opacity: 1; }
.header-nav a[aria-current="page"] { opacity: 1; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.header-nav .pill { opacity: 1; padding: 9px 18px; border-radius: 999px; background: var(--sky-deep); color: #fff; font-size: 13.5px; font-weight: 500; }
.header-nav .pill:hover { background: #0077ed; }
/* Sign in / Sign out follows the page's account state (body[data-state], set by the page script). */
.header-nav .account-out { display: none; padding: 0; border: 0; background: none; font: inherit; font-size: 14px; color: var(--ink); opacity: 0.85; cursor: pointer; }
.header-nav .account-out:hover { opacity: 1; }
body[data-state="loading"] .header-nav .account-in { visibility: hidden; }
body[data-state="signed_in"] .header-nav .account-in,
body[data-state="checking"] .header-nav .account-in,
body[data-state="paid"] .header-nav .account-in { display: none; }
body[data-state="signed_in"] .header-nav .account-out,
body[data-state="checking"] .header-nav .account-out,
body[data-state="paid"] .header-nav .account-out { display: inline; }
@media (max-width: 767px) { .header-nav .text-link, body[data-state] .header-nav .account-out { display: none; } }

/* ── Controls ─────────────────────────────────────────────────────────── */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 3.25rem; padding-inline: 1.6rem; border: 1px solid transparent; border-radius: 999px; font-size: 0.975rem; font-weight: 500; line-height: 1; text-decoration: none; cursor: pointer; transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.btn-primary { background: var(--sky-deep); color: #fff; box-shadow: 0 10px 30px -14px rgba(0, 113, 227, 0.6); }
.btn-primary:hover { background: #0077ed; }
.btn-secondary { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; }
.btn[disabled] { opacity: 0.45; cursor: default; box-shadow: none; }
.btn-google { width: 100%; background: #fff; color: #1f1f1f; border-color: var(--line-strong); }
.btn-google:hover { background: var(--paper-2); }
.btn-google .g { flex: none; }

.field-label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.field { display: block; width: 100%; height: 3.5rem; padding-inline: 1.5rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: 16px; outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.field::placeholder { color: var(--ink-3); }
.field:focus { border-color: var(--sky-deep); box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12); }

.msg { min-height: 1.4em; margin-top: 12px; font-size: 13.5px; color: var(--ink-3); }
.msg.is-error { color: var(--error); }

/* ── Footer ───────────────────────────────────────────────────────────── */

.site-footer { border-top: 1px solid var(--line); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 28px; font-size: 12.5px; color: var(--ink-3); }
.footer-row .motto { font-family: var(--display); font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; font-size: 12px; color: var(--ink-2); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--ink-3); }
