/* Navspaces pages (lefkona.com/navspaces). Shares the look of the home page:
   its fonts, palette, header, buttons and footer are copied from index.html.
   Paths are root-absolute so the pages work at /navspaces and /navspaces/. */

/* Fonts are self-hosted on purpose: no requests to third parties. */
@font-face {
  font-family: "Commissioner";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/commissioner-latin-wght-normal.woff2") format("woff2-variations");
  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: "Commissioner";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/commissioner-latin-ext-wght-normal.woff2") format("woff2-variations");
  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";
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url("/fonts/archivo-latin-800-normal.woff2") format("woff2");
  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";
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url("/fonts/archivo-latin-ext-800-normal.woff2") format("woff2");
  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;
}

:root {
  /* Logo D v2 palette, as on the home page */
  --navy: #1C1B33;
  --amber: #FF9E1B;
  --coral: #FF6F61;
  --pink: #F2559A;
  --violet: #A64AC9;
  --indigo: #5B4BC4;

  --paper: #F6F5F1;
  --mist: #ECEBF1;
  --rule: #DCDAE5;
  --muted: #55536C;
  --ink: #1C1B33;

  --gutter: clamp(16px, 4.5vw, 64px);
  --measure: 60ch;
  --stripes: linear-gradient(90deg,
    var(--amber) 0 20%, var(--coral) 20% 40%, var(--pink) 40% 60%,
    var(--violet) 60% 80%, var(--indigo) 80% 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Commissioner", system-ui, sans-serif;
  font-weight: 380;
  font-size: clamp(1rem, 0.94rem + 0.3vw, 1.125rem);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: 3px; }
code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.875em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: var(--mist);
  overflow-wrap: anywhere;
}

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

/* The five logo stripes, used as a thin band */
.stripes { height: 6px; background: var(--stripes); }

/* Header */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-top: 22px; padding-bottom: 22px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.logo { display: inline-flex; text-decoration: none; }
/* The app icon next to the logo. Its artwork fills about 80% of its box,
   so the box is a little taller than the logo and the margin evens it out. */
.product-mark { display: inline-flex; margin: -5px; border-radius: 12px; }
.product-mark img { width: 54px; }
.logo svg { width: 168px; height: auto; }
.wordmark { font-family: "Archivo", "Commissioner", sans-serif; font-weight: 800; }
.nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.25rem clamp(0.9rem, 2.5vw, 2rem); font-size: 0.9375rem; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--navy); text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* Buttons and links */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }
.button {
  display: inline-block;
  padding: 0.8em 1.35em;
  border-radius: 6px;
  background: var(--amber);
  color: var(--navy);
  text-decoration: none;
  font-weight: 620;
  font-size: 1rem;
  line-height: 1.3;
  transition: background-color 120ms ease;
}
.button:hover { background: #FFB24D; }
/* Not available yet: a dashed outline, like the app's dashed full-screen tile */
.button[aria-disabled="true"] {
  padding: calc(0.8em - 1.5px) calc(1.35em - 1.5px);
  border: 1.5px dashed #A9A7BA;
  background: transparent;
  color: var(--muted);
  cursor: default;
}
.quiet-link { color: var(--muted); text-underline-offset: 4px; font-size: 1rem; }
.quiet-link:hover { color: var(--navy); text-decoration-color: var(--amber); }
.note { margin-top: 1rem; font-size: 0.9375rem; color: var(--muted); }

/* Headings */
h1, h2, h3 { color: var(--navy); }
h2 {
  margin: 0 0 clamp(24px, 3.5vw, 40px);
  font-weight: 520;
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}
h3 { margin: 0 0 0.35rem; font-size: 1.1875rem; font-weight: 620; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0; }

/* Pictures: each SVG draws its own white rounded card */
.figure { margin: 0; }
.figure img { width: 100%; }

/* Product page */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  padding-top: clamp(24px, 5vw, 56px);
  padding-bottom: clamp(16px, 3vw, 40px);
}
/* The heading is sized to its own column (container units), so "Navspaces"
   always fits on one line; the font is about 5.4 em wide. */
.hero > div:first-child { container-type: inline-size; }
.hero h1 {
  margin: 0 0 0.3em -0.03em;
  font-family: "Archivo", "Commissioner", sans-serif;
  font-weight: 800;
  font-size: clamp(2.5rem, 17cqi, 6rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.hero .lede {
  margin: 0 0 2rem;
  max-width: 30ch;
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.625rem);
  line-height: 1.38;
  font-weight: 360;
}
.showcase {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 6vw, 72px) clamp(20px, 4vw, 48px);
  border-radius: 18px;
  background: var(--navy);
}
.showcase::after {
  content: "";
  position: absolute; right: -30px; bottom: -40px; width: 150px; height: 90px;
  background: var(--stripes);
  transform: skewX(-30deg);
}
/* The menu bar picture's captions are grey on transparent: give it a white card */
.showcase .figure { position: relative; z-index: 1; padding: clamp(12px, 2vw, 20px); border-radius: 12px; background: #FFFFFF; }

section.wrap { padding-top: clamp(56px, 8vw, 104px); }

.features { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--rule); }
.features > li {
  display: grid;
  grid-template-columns: minmax(0, 17rem) minmax(0, var(--measure));
  gap: 0.6rem 3rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--rule);
}
.features h3 { margin: 0; display: flex; align-items: baseline; gap: 0.7rem; }
.features h3::before {
  content: "";
  flex: none;
  width: 10px; height: 10px; border-radius: 2px;
  background: var(--dot, var(--amber));
  transform: translateY(-1px) skewX(-30deg);
}
.features > li:nth-child(2) { --dot: var(--coral); }
.features > li:nth-child(3) { --dot: var(--pink); }
.features > li:nth-child(4) { --dot: var(--violet); }
.features .figure { margin-top: 1.25rem; max-width: 520px; }

.principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 48px) clamp(32px, 6vw, 96px);
  max-width: 1000px;
}
.principles p { color: var(--muted); max-width: 44ch; }

.ways { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)); gap: 20px; max-width: 1000px; }
.ways > li {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem;
  padding: 28px 96px 28px 28px;
  border-radius: 14px; background: var(--mist);
}
.ways > li::after {
  content: ""; position: absolute; top: 0; right: -36px; bottom: 0; width: 96px;
  background: var(--stripes);
  transform: skewX(-30deg);
}
/* Keep text and buttons above the stripes, which reach further left on narrow cards */
.ways > li > * { position: relative; z-index: 1; }
.ways h3 { font-size: 1.375rem; }
.ways p { max-width: 34ch; }
.ways .button { margin-top: auto; }

.manual-link p { max-width: var(--measure); margin-bottom: 1.5rem; }

/* Manual page */
.manual {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 44rem);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
  padding-top: clamp(16px, 3vw, 32px);
}
.toc {
  position: sticky; top: 24px;
  max-height: calc(100vh - 48px); overflow-y: auto;
  font-size: 0.9375rem;
}
.toc h2 { margin: 0 0 0.75rem; font-size: 0.8125rem; font-weight: 620; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--rule); }
.toc a { display: block; padding: 0.3rem 0 0.3rem 1rem; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--navy); border-left-color: var(--amber); }

.prose { max-width: 44rem; }
.prose h1 {
  margin: 0 0 1rem;
  font-family: "Archivo", "Commissioner", sans-serif;
  font-weight: 800;
  font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.prose h2 {
  margin: clamp(48px, 6vw, 72px) 0 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
  scroll-margin-top: 16px;
}
.prose h1 + p { font-size: 1.125em; }
.prose p, .prose li { overflow-wrap: break-word; }
.prose p + p, .prose p + ol, .prose p + ul, .prose ol + ul { margin-top: 1rem; }
.prose ul, .prose ol { margin: 0; padding-left: 1.4rem; }
.prose li + li { margin-top: 0.55rem; }
.prose li::marker { color: var(--muted); }
.prose ul > li::marker { color: var(--amber); }
.prose strong { font-weight: 620; color: var(--navy); }
.prose .figure { margin: 1.5rem 0; }
.prose li > .figure { margin: 1rem 0 1.25rem; }

/* Footer */
.site-footer {
  margin-top: clamp(72px, 10vw, 128px);
  background: var(--navy);
  color: #C9C7D9;
  font-size: 0.875rem;
  line-height: 1.55;
}
.site-footer .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 3rem;
  padding-top: 32px; padding-bottom: 44px;
}
.site-footer strong { color: #FFFFFF; font-weight: 560; }
.site-footer a { color: #FFFFFF; text-decoration-color: var(--amber); text-underline-offset: 4px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .showcase { margin: 0 calc(var(--gutter) * -1); border-radius: 0; }
  .features > li { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .manual { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; overflow: visible; padding: 1.25rem; border-radius: 14px; background: var(--mist); }
  .toc ol { border-left: 0; }
  .toc a { padding-left: 0; border-left: 0; margin-left: 0; }
}
@media (max-width: 420px) {
  .logo svg { width: 110px; }
  .brand { gap: 6px; }
  .product-mark { margin: -3px; }
  .product-mark img { width: 36px; }
  .nav { gap: 0.25rem 0.75rem; font-size: 0.875rem; }
  .showcase { padding: 24px 12px; }
  .showcase .figure { padding: 8px; }
  .ways > li { padding-right: 64px; }
  .ways > li::after { width: 64px; right: -30px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
