/* arksec.io
 *
 * Editorial rather than SaaS: a serif for display, a sans for reading, one
 * restrained accent, and whitespace doing the work that borders usually do.
 * No webfonts — the system serif stack renders instantly and cannot flash,
 * and a carrier reviewer on a slow connection sees a finished page.
 */

:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --fg: #14161a;
  --muted: #5d6672;
  --faint: #8a93a0;
  --rule: #e4e2dd;
  --rule-strong: #cfccc5;
  --accent: #1b4f8f;
  --accent-soft: #eef2f8;
  --focus: #1b4f8f;
  --shadow: 0 1px 2px rgba(20, 22, 26, 0.04), 0 8px 24px -16px rgba(20, 22, 26, 0.25);

  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1114;
    --surface: #171a1f;
    --fg: #e9eaec;
    --muted: #a2aab6;
    --faint: #7b838f;
    --rule: #262a31;
    --rule-strong: #363c45;
    --accent: #7fb0f0;
    --accent-soft: #1a2431;
    --focus: #7fb0f0;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px -16px rgba(0, 0, 0, 0.8);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}

/* ---------- header ---------- */

header.site {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 0.3rem 1.5rem;
  padding: 2.25rem 0 1.25rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--rule);
}

.brand {
  grid-column: 1;
  grid-row: 1;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-decoration: none;
  color: var(--fg);
}

.brand:hover { color: var(--accent); }

.tagline {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0;
  color: var(--faint);
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

header.site nav {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  gap: 1.25rem;
  font-size: 0.875rem;
}

header.site nav a {
  color: var(--muted);
  text-decoration: none;
}

header.site nav a:hover {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* ---------- type ---------- */

h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 1.5rem + 2.2vw, 2.85rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 1.25rem;
  max-width: 20ch;
}

h2 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: 3rem 0 0.75rem;
}

h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 2rem 0 0.5rem;
}

p { margin: 0 0 1.1rem; }

.lede {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 2rem;
}

.updated {
  margin-top: -0.5rem;
  color: var(--faint);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }

strong { font-weight: 620; }

ul {
  padding-left: 0;
  list-style: none;
  margin: 0 0 1.25rem;
}

ul li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.6rem;
}

ul li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.72em;
  width: 0.35rem;
  height: 1px;
  background: var(--rule-strong);
}

/* ---------- contact block ---------- */

dl.contact {
  margin: 1rem 0 0;
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.4rem 1rem;
  font-size: 0.95rem;
}

dl.contact dt {
  color: var(--faint);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding-top: 0.25em;
}

dl.contact dd { margin: 0; }

/* ---------- enquiry form — the opt-in flow screenshotted for carrier verification ---------- */

form.enquiry {
  margin: 1.75rem 0 0;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.field { margin-bottom: 1.1rem; }

.field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 0.35rem;
}

.req { color: var(--accent); font-weight: 400; }

.opt {
  color: var(--faint);
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--rule-strong);
  border-radius: 7px;
  padding: 0.6rem 0.75rem;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.field textarea { resize: vertical; min-height: 5.5rem; }

.field input::placeholder,
.field textarea::placeholder { color: var(--faint); }

.field input:focus,
.field textarea:focus,
button:focus-visible,
input[type="checkbox"]:focus-visible {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

label.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  margin: 1.5rem 0 0;
  padding: 1rem;
  background: var(--accent-soft);
  border-radius: 8px;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted);
  cursor: pointer;
}

/* Only the opening line is a block; STOP and HELP stay inline, mid-sentence.
   This block is the artifact screenshotted for carrier verification, so it has
   to read as prose. */
label.consent strong { color: var(--fg); }
label.consent > span > strong:first-child { display: block; margin-bottom: 0.2rem; }

label.consent input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.2rem 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.disclaim {
  font-size: 0.8rem;
  color: var(--faint);
  line-height: 1.5;
  margin: 1rem 0 0;
}

button[type="submit"] {
  margin-top: 1.25rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 7px;
  padding: 0.7rem 1.5rem;
  cursor: pointer;
  transition: filter 0.12s ease, transform 0.06s ease;
}

button[type="submit"]:hover { filter: brightness(1.12); }
button[type="submit"]:active { transform: translateY(1px); }

@media (prefers-color-scheme: dark) {
  button[type="submit"] { color: #0f1114; }
}

/* ---------- confirmation and error pages ---------- */

.notice {
  margin: 0 0 2rem;
  padding: 1.5rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
}

.notice p:last-child { margin-bottom: 0; }

/* ---------- footer ---------- */

footer.site {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--faint);
  font-size: 0.85rem;
}

footer.site p { margin: 0; }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--accent); text-decoration: underline; }

@media (max-width: 34rem) {
  body { font-size: 16px; }
  .wrap { padding: 0 1.15rem 3.5rem; }
  header.site { grid-template-columns: 1fr; }
  header.site nav { grid-column: 1; grid-row: 3; margin-top: 0.6rem; gap: 1rem; }
  form.enquiry { padding: 1.25rem; }
  dl.contact { grid-template-columns: 1fr; gap: 0.1rem; }
  dl.contact dt { margin-top: 0.75rem; }
}

@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  header.site nav, form.enquiry { display: none; }

  /* ...except on /contact, whose entire reason to exist is being captured as
     the opt-in proof filed with Twilio. Printing that page to PDF with the
     form hidden yields a consent artifact containing no consent flow. */
  body.optin form.enquiry { display: block; box-shadow: none; }
}

/* Honeypot. Positioned off-canvas from the stylesheet rather than a style=""
   attribute, because the Content-Security-Policy sets `style-src 'self'` with
   no 'unsafe-inline' — an inline style attribute would be blocked and the trap
   field would render visibly on the form, in the middle of the opt-in
   screenshot filed with Twilio. Not display:none: some bots skip those. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
