/* Carlo brand centre. Fonts are the static files from marketing/print/fonts, copied in by build.sh. */

@font-face { font-family: "Plus Jakarta Sans"; font-weight: 400; font-display: swap; src: url("assets/fonts/plus-jakarta-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 500; font-display: swap; src: url("assets/fonts/plus-jakarta-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 600; font-display: swap; src: url("assets/fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 700; font-display: swap; src: url("assets/fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 800; font-display: swap; src: url("assets/fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2"); }

:root {
  /* The Atlantic palette, as in the website's globals.css */
  --teal: #0b4f5c;
  --teal-deep: #083b45;
  --aqua: #19b3a6;
  --aqua-ink: #0e8c82;
  --lime: #c8e86b;
  --lime-deep: #b6d94f;
  --ground: #eef6f5;
  --ground-deep: #e1ecea;
  --paper: #ffffff;
  --ink: #0b2f36;
  --muted: #4f6b70;
  --line: #cfe0de;

  --sidebar: 264px;
  --gutter: clamp(16px, 5vw, 72px);
  --measure: 46rem;
  --radius: 16px;
  color-scheme: light;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--aqua-ink); }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { margin: 0; line-height: 1.15; color: var(--teal); }
p { margin: 0; }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.88em; background: var(--ground); padding: 0.1em 0.35em; border-radius: 4px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--lime); color: var(--ink); padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 8px; }

/* Sidebar */

.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar);
  background: var(--ground); border-right: 1px solid var(--line);
  padding: 28px 20px 40px; overflow-y: auto; z-index: 20;
}
.sidebar-logo { display: block; width: 120px; margin: 4px 0 24px 10px; }
.search input {
  width: 100%; font: inherit; font-size: 14px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--aqua); box-shadow: 0 0 0 3px rgba(25, 179, 166, 0.2); }
.nav-group { margin-top: 26px; }
.nav-title { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px 10px; }
.sidebar nav a {
  display: block; padding: 6px 10px; border-radius: 8px;
  font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none;
}
.sidebar nav a:hover { background: var(--ground-deep); color: var(--ink); }
.sidebar nav a[aria-current="true"] { background: var(--teal); color: var(--paper); }
.sidebar nav a[hidden], .nav-group[hidden] { display: none; }
.nav-empty { margin: 20px 10px 0; font-size: 14px; color: var(--muted); }

.topbar { display: none; }

/* Main */

main { margin-left: var(--sidebar); min-width: 0; }

.block { padding: 96px var(--gutter); border-top: 1px solid var(--line); }
.block > .lede, .block > h2 { max-width: var(--measure); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--aqua-ink); margin-bottom: 14px; }
h2 { font-size: clamp(34px, 4.5vw, 52px); font-weight: 800; letter-spacing: -0.03em; }
.lede { font-size: 19px; line-height: 1.6; color: var(--muted); margin-top: 18px; }
.lede strong { color: var(--ink); }
h3.sub { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 56px 0 18px; }
.caption { font-size: 13px; font-weight: 500; color: var(--muted); margin-top: 12px; }

/* Buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 15px; text-decoration: none;
  padding: 13px 22px; border-radius: 999px; border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: var(--lime-deep); color: var(--ink); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.4); color: var(--paper); }
.btn-ghost:hover { border-color: var(--paper); color: var(--paper); }
.btn-block { display: flex; width: 100%; }

/* Cover */

.cover {
  display: grid;
  background: var(--teal-deep); color: var(--paper); min-height: min(88vh, 760px);
}
.cover-inner { padding: 96px var(--gutter); display: flex; flex-direction: column; justify-content: center; }
.cover-mark { width: 150px; margin-bottom: 48px; }
.cover h1 { color: var(--paper); font-size: clamp(48px, 7vw, 96px); font-weight: 800; letter-spacing: -0.04em; line-height: 0.95; }
.cover .lede { color: rgba(255, 255, 255, 0.78); max-width: 32rem; }
.cover-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* How it works */

.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.steps li { background: var(--ground); border-radius: var(--radius); padding: 24px; }
.step-n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--teal); color: var(--lime); font-weight: 800; font-size: 15px; margin-bottom: 18px; }
.steps h3 { font-size: 18px; margin-bottom: 8px; }
.steps p { font-size: 15px; color: var(--muted); }

.two-up { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 16px; }
.audience { border-radius: var(--radius); padding: 32px; }
.audience h3 { font-size: 24px; letter-spacing: -0.02em; margin-bottom: 12px; }
.audience p:last-child { font-size: 15px; }
.audience-light { background: var(--paper); border: 1px solid var(--line); }
.audience-light p:last-child { color: var(--muted); }
.audience-dark { background: var(--teal-deep); color: rgba(255, 255, 255, 0.8); }
.audience-dark h3 { color: var(--paper); }
.audience-dark .eyebrow { color: var(--aqua); }

/* Personality and voice */

.traits { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 48px; }
.trait { border-top: 3px solid var(--teal); padding-top: 20px; }
.trait h3 { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; }
.trait p { font-size: 15px; color: var(--muted); }
.trait .trait-not { margin-top: 12px; font-weight: 700; color: var(--ink); }

.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; margin-top: 48px; }
.principles h3 { font-size: 19px; margin-bottom: 8px; }
.principles p { font-size: 15px; color: var(--muted); }

.dodont { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 40px; }
.dodont > div { border-radius: var(--radius); padding: 24px 28px; }
.dodont ul { margin: 0; padding-left: 1.1em; }
.dodont li { margin: 8px 0; font-size: 15px; }
.dodont .label { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.do { background: var(--ground); }
.do .label { color: var(--aqua-ink); }
.do .label::before { content: "✓  "; }
.dont { background: #fbf0ef; }
.dont .label { color: #a3392e; }
.dont .label::before { content: "✕  "; }
.dont li { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(163, 57, 46, 0.45); }

/* Tables */

.table-wrap { overflow-x: auto; margin-top: 40px; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); background: var(--ground); }
th, td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
.words td:first-child { font-weight: 700; color: var(--teal); }
.words td:nth-child(2) { color: #a3392e; text-decoration: line-through; text-decoration-color: rgba(163, 57, 46, 0.45); }
.words td:last-child { color: var(--muted); }
td.dl { text-align: right; white-space: nowrap; }
td.dl a { font-weight: 700; margin-left: 10px; }

.callout { margin-top: 32px; background: var(--ground); border-left: 4px solid var(--aqua); border-radius: 0 var(--radius) var(--radius) 0; padding: 22px 28px; max-width: var(--measure); }
.callout h3 { font-size: 16px; margin-bottom: 6px; }
.callout ul { margin: 0; padding-left: 1.1em; }
.callout li { font-size: 15px; margin: 6px 0; }

/* Logo */

.logo-hero { margin-top: 48px; background: var(--ground); border-radius: var(--radius); display: grid; place-items: center; padding: clamp(48px, 10vw, 120px) 24px; }
.logo-hero img { width: min(420px, 70%); }

.logo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-top: 16px; }
.logo-tile, .icon-grid figure, .misuse figure { margin: 0; }
.logo-stage { background: var(--tile); border: 1px solid var(--line); border-radius: var(--radius); aspect-ratio: 16 / 10; display: grid; place-items: center; }
.logo-stage img { width: 52%; }
figcaption { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-top: 10px; font-size: 14px; color: var(--muted); }
figcaption strong { display: block; color: var(--ink); }
figcaption a { font-weight: 700; font-size: 13px; text-decoration: none; background: var(--ground); padding: 4px 10px; border-radius: 999px; flex-shrink: 0; }
figcaption a:hover { background: var(--teal); color: var(--paper); }

.spec-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.spec-card p { font-size: 15px; color: var(--muted); margin-top: 20px; }
.clearspace { display: grid; place-items: center; background: var(--ground); border-radius: 10px; padding: 32px 16px; }
.clearspace img { width: 180px; padding: 30px; outline: 1.5px dashed var(--aqua-ink); outline-offset: -1px; background: repeating-linear-gradient(45deg, rgba(25, 179, 166, 0.12) 0 6px, transparent 6px 12px); box-sizing: content-box; }
.clearspace img { background-clip: border-box; }
.minsize { display: flex; align-items: center; justify-content: center; gap: 24px; background: var(--ground); border-radius: 10px; padding: 60px 16px; min-height: 186px; }
.minsize img { width: 96px; }
.minsize span { font-size: 13px; font-weight: 700; color: var(--teal); border-left: 2px solid var(--aqua); padding-left: 12px; line-height: 1.5; }

.misuse { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.misuse-stage { position: relative; aspect-ratio: 16 / 10; border: 1px solid var(--line); border-radius: var(--radius); display: grid; place-items: center; overflow: hidden; background: var(--paper); }
.misuse-stage img { width: 50%; }
.misuse-stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top right, transparent calc(50% - 1.5px), #c2463a calc(50% - 1.5px), #c2463a calc(50% + 1.5px), transparent calc(50% + 1.5px)); opacity: 0.85; }
.misuse figcaption { display: block; }
.live-text { font-family: Georgia, serif; font-size: 34px; color: var(--teal); }

/* Icon */

.icon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; margin-top: 48px; }
.icon-stage { aspect-ratio: 1; border: 1px solid var(--line); border-radius: var(--radius); display: grid; place-items: center; background: var(--paper); }
.icon-stage img { width: 46%; }
.icon-stage.photo-bg { background: url("assets/photos/1.jpg") center / cover; }

/* Colour */

.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.swatch {
  all: unset; box-sizing: border-box; cursor: pointer;
  background: var(--c); color: var(--on);
  border-radius: var(--radius); box-shadow: inset 0 0 0 1px rgba(11, 47, 54, 0.1);
  aspect-ratio: 4 / 3; padding: 18px 20px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.swatch:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(11, 47, 54, 0.1), 0 10px 24px -12px rgba(11, 47, 54, 0.35); }
.swatch:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; }
.swatch-name { font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
.swatch-codes { font-size: 13px; font-weight: 500; line-height: 1.55; opacity: 0.85; font-variant-numeric: tabular-nums; }
.swatches-lg { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.swatches-lg .swatch { aspect-ratio: 3 / 4; }
.swatches-lg .swatch-name { font-size: 24px; }
.swatches-sm .swatch { aspect-ratio: 16 / 9; }

.balance { display: flex; height: 64px; border-radius: var(--radius); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.balance span { display: block; }
.balance span:first-child { box-shadow: inset 1px 1px 0 var(--line), inset 0 -1px 0 var(--line); }

.pairs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.pair { border-radius: var(--radius); padding: 24px; box-shadow: inset 0 0 0 1px rgba(11, 47, 54, 0.1); min-height: 120px; display: flex; flex-direction: column; justify-content: space-between; }
.pair strong { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.pair span { font-size: 13px; font-weight: 500; opacity: 0.85; }

/* Typography */

.specimen { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; margin-top: 48px; background: var(--teal); color: var(--paper); border-radius: var(--radius); padding: clamp(28px, 5vw, 56px); }
.specimen-big { font-size: clamp(96px, 16vw, 200px); font-weight: 800; letter-spacing: -0.05em; line-height: 0.9; color: var(--lime); }
.specimen-name { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.specimen-glyphs { font-size: 18px; line-height: 1.6; margin-top: 12px; color: rgba(255, 255, 255, 0.85); overflow-wrap: anywhere; }
.specimen-meta { font-size: 13px; margin-top: 14px; color: var(--aqua); font-weight: 600; }

.weights { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; margin-top: 16px; }
.weights p { background: var(--ground); border-radius: 12px; padding: 18px 20px; font-size: 20px; color: var(--teal); }

.scale { border-top: 1px solid var(--line); }
.scale-row { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); }
.scale-meta { font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.t-display { font-size: clamp(36px, 5vw, 56px); line-height: 1.07; font-weight: 800; letter-spacing: -0.03em; color: var(--teal); }
.t-h2 { font-size: 32px; line-height: 1.19; font-weight: 700; letter-spacing: -0.02em; color: var(--teal); }
.t-h3 { font-size: 20px; line-height: 1.4; font-weight: 700; color: var(--teal); }
.t-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--aqua-ink); }
.t-body { font-size: 17px; line-height: 1.65; max-width: 36rem; }
.t-small { font-size: 13px; line-height: 1.55; font-weight: 500; color: var(--muted); }

/* Photography */

.photo-grid { display: grid; grid-template-columns: 2fr 1fr 0.75fr; grid-template-rows: 1fr 1fr; gap: 12px; height: clamp(360px, 38vw, 560px); margin-top: 48px; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.photo-grid img:first-child { grid-row: span 2; }
.photo-grid img:nth-child(4) { grid-column: 3; grid-row: 1 / span 2; }

/* Listing card */

.listing-demo { display: grid; grid-template-columns: minmax(0, 340px) 1fr; grid-template-rows: auto 1fr; column-gap: clamp(24px, 5vw, 64px); margin-top: 48px; background: var(--teal-deep); border-radius: var(--radius); padding: clamp(24px, 5vw, 56px); }
.listing { background: var(--paper); border-radius: 18px; overflow: hidden; box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.5); }
.listing-photo { position: relative; }
.listing-photo img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.listing-badge { position: absolute; left: 12px; top: 12px; background: var(--teal); color: var(--paper); font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.listing-body { padding: 18px 20px 20px; }
.listing-title { font-weight: 800; font-size: 18px; color: var(--teal); line-height: 1.3; }
.listing-meta { font-size: 13px; color: var(--muted); margin-top: 4px; }
.listing-field { display: block; margin: 16px 0 12px; }
.listing-field span:first-child { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.listing-input { display: block; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 14px; font-weight: 700; font-size: 18px; color: var(--ink); }
.listing-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 10px; }
.listing-demo .caption { grid-column: 1; color: rgba(255, 255, 255, 0.65); }
.listing-notes { grid-column: 2; grid-row: 1 / span 2; align-self: center; margin: 0; padding-left: 1.1em; color: rgba(255, 255, 255, 0.85); }
.listing-notes li { margin: 12px 0; font-size: 15px; }
.listing-notes li::marker { color: var(--lime); }

/* Downloads */

.downloads { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 48px; }
.download { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color 0.15s ease, transform 0.15s ease; }
.download:hover { border-color: var(--teal); color: var(--ink); transform: translateY(-1px); }
.download-name { font-weight: 700; }
.download-meta { font-size: 13px; color: var(--muted); }
.download::after { content: "↓"; font-weight: 800; color: var(--aqua-ink); margin-top: 10px; }
.download[rel]::after { content: none; }
.download-main { grid-column: 1 / -1; background: var(--teal); border-color: var(--teal); padding: 32px; }
.download-main .download-name { color: var(--paper); font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.download-main .download-meta { color: rgba(255, 255, 255, 0.75); }
.download-main::after { content: "Download ↓"; align-self: flex-start; background: var(--lime); color: var(--ink); padding: 10px 18px; border-radius: 999px; font-size: 14px; margin-top: 18px; }
.download-main:hover { border-color: var(--teal-deep); background: var(--teal-deep); }

.block-last { padding-bottom: 120px; }

.footer { background: var(--teal-deep); color: rgba(255, 255, 255, 0.7); padding: 40px var(--gutter); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.footer img { width: 98px; }

/* Copy toast */

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 600;
  padding: 10px 18px; border-radius: 999px; opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease; z-index: 40;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Small screens: the sidebar becomes a drawer under a top bar */

@media (max-width: 900px) {
  .topbar {
    display: flex; justify-content: space-between; align-items: center;
    position: sticky; top: 0; z-index: 30; background: var(--paper);
    border-bottom: 1px solid var(--line); padding: 12px 16px;
  }
  .topbar-logo img { width: 88px; }
  .menu-btn { font: inherit; font-size: 14px; font-weight: 700; color: var(--ink); background: var(--ground); border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; cursor: pointer; }
  .sidebar { top: 58px; transform: translateX(-100%); transition: transform 0.2s ease; width: min(300px, 85vw); box-shadow: 0 0 40px rgba(0, 0, 0, 0.15); }
  .sidebar.open { transform: none; }
  .sidebar-logo { display: none; }
  main { margin-left: 0; }
  html { scroll-padding-top: 72px; }
  .cover { min-height: 0; }
  .cover-inner { padding: 40px 16px 56px; }
  .cover-mark { width: 110px; margin-bottom: 28px; }
  .block { padding: 64px 16px; }
  .scale-row { grid-template-columns: 1fr; gap: 6px; }
  .logo-grid, .misuse, .icon-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .logo-grid figcaption, .icon-grid figcaption { flex-direction: column; gap: 6px; font-size: 13px; }
  .misuse figcaption { font-size: 13px; }
  .specimen { grid-template-columns: 1fr; }
  .listing-demo { grid-template-columns: 1fr; }
  .listing-demo .caption, .listing-notes { grid-column: 1; grid-row: auto; }
  .listing-notes { margin-top: 20px; }
  .photo-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 140px 140px; height: auto; }
  .photo-grid img:first-child { grid-column: span 2; grid-row: auto; }
  .photo-grid img:nth-child(4) { grid-column: 2; grid-row: 2 / span 2; }
}
