/* protonook — brand tokens and the logo review page.
   Schibsted Grotesk: SIL Open Font License 1.1, see /fonts/OFL.txt */
@font-face { font-family: "Schibsted Grotesk"; src: url("/fonts/schibsted-grotesk-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("/fonts/schibsted-grotesk-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("/fonts/schibsted-grotesk-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --ink: #0f1114;
  --orange: #fb542a;
  --paper: #f3f4f2;
  --white: #ffffff;
  --grey: #5e6166;      /* secondary text, 6.1:1 on paper */
  --line: #d8dad6;
  --gutter: clamp(20px, 5vw, 64px);
  --measure: 34rem;
  --font: "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--font);
  font-feature-settings: "ss01" 0;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--orange); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 2px; }

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

/* ---- top bar ---- */
.bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem;
       padding-block: 1.25rem; font-size: 0.9375rem; color: var(--grey); }
.bar img { height: 22px; width: auto; }

/* ---- hero ---- */
.hero { min-height: min(86vh, 900px); display: grid; align-content: center; padding-block: 4rem 6rem; }
.hero .lockup { width: min(100%, 60rem); height: auto; }
.hero p { margin: 2.5rem 0 0; max-width: var(--measure); color: var(--grey); }

.lockup .ring { transform-box: fill-box; transform-origin: 50% 50%; }
@media (prefers-reduced-motion: no-preference) {
  .hero .lockup .ring { animation: seat 1100ms cubic-bezier(0.25, 1.3, 0.45, 1) 300ms both; }
  @keyframes seat {
    from { transform: translate(38%, 38%); opacity: 0; }
    40% { opacity: 1; }
    to { transform: none; opacity: 1; }
  }
}

/* ---- sections ---- */
section { padding-block: clamp(4rem, 10vw, 8rem); border-top: 1px solid var(--line); }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.125rem); line-height: 1.15; font-weight: 600;
     letter-spacing: -0.01em; margin: 0 0 1.25rem; }
h3 { font-size: 1.0625rem; font-weight: 600; margin: 0 0 0.35rem; }
p { margin: 0 0 1rem; max-width: var(--measure); }
.muted { color: var(--grey); }

.split { display: grid; gap: clamp(2rem, 6vw, 6rem); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 52rem) { .split { grid-template-columns: 1.1fr 1fr; } }

.construction { width: min(100%, 34rem); height: auto; font-family: var(--font); }

dl.ratios { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1.5rem; margin: 1.75rem 0 0; }
dl.ratios dt { font-weight: 600; }
dl.ratios dd { margin: 0; color: var(--grey); }

/* ---- dark panel ---- */
.dark { background: var(--ink); color: var(--white); border-top: 0; }
.dark .muted { color: #a9adb3; }
.dark .lockup { width: min(100%, 44rem); height: auto; margin-block: 1rem 4rem; }
.marks { display: flex; flex-wrap: wrap; align-items: end; gap: 2.5rem 3.5rem; }
.marks figure { margin: 0; }
.marks figcaption { margin-top: 0.75rem; font-size: 0.875rem; color: var(--grey); }
.dark .marks figcaption { color: #a9adb3; }
.app-icon { border-radius: 22.5%; }

/* browser tab mock, to judge the favicon at real size */
.tab { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.55rem 1.1rem 0.55rem 0.8rem;
       background: var(--white); border: 1px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0;
       font-size: 0.8125rem; color: #3b3e42; min-width: 15rem; }
.tab img { width: 16px; height: 16px; }

/* ---- wordmark alone ---- */
.wordmark-alone { width: min(100%, 40rem); height: auto; margin-block: 2rem 2.5rem; }

/* ---- colour ---- */
.swatches { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); margin-top: 2rem; }
.swatch { margin: 0; }
.swatch .chip { height: 9rem; border-radius: 6px; border: 1px solid rgb(0 0 0 / 0.06); }
.swatch figcaption { margin-top: 0.75rem; }
.swatch code { font: inherit; color: var(--grey); font-variant-numeric: tabular-nums; }

/* ---- taglines ---- */
ol.taglines { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.75rem; }
ol.taglines li { font-size: clamp(1.4rem, 1rem + 1.6vw, 2.25rem); line-height: 1.2; font-weight: 500;
                 letter-spacing: -0.01em; }
ol.taglines li span { display: block; margin-top: 0.4rem; font-size: 0.9375rem; font-weight: 400;
                      letter-spacing: 0; color: var(--grey); }

/* ---- files ---- */
ul.files { list-style: none; padding: 0; margin: 1.5rem 0 0; columns: 2 16rem; column-gap: 3rem; }
ul.files li { padding-block: 0.45rem; border-bottom: 1px solid var(--line); break-inside: avoid; }

footer { padding-block: 3rem 4rem; color: var(--grey); font-size: 0.9375rem; border-top: 1px solid var(--line); }
