/* swarf.au, the landing page (2026-10-07, Adam). The brand kit's tokens
   (.documents/swarf-brand-kit.zip, tokens.css), and its rules: yellow is a
   surface with navy on it and never text on a light ground; the mark is
   never rounded; BY ADJTECH sits under the wordmark, never beside it. */

@font-face { font-family: Poppins; font-weight: 400; font-display: swap; src: url("fonts/poppins-400-latin.woff2") format("woff2"); }
@font-face { font-family: Poppins; font-weight: 500; font-display: swap; src: url("fonts/poppins-500-latin.woff2") format("woff2"); }
@font-face { font-family: Poppins; font-weight: 600; font-display: swap; src: url("fonts/poppins-600-latin.woff2") format("woff2"); }
@font-face { font-family: Poppins; font-weight: 700; font-display: swap; src: url("fonts/poppins-700-latin.woff2") format("woff2"); }

:root {
  --navy: #0d1329;
  --yellow: #fab700;
  --deep: #080c1a;
  --paper: #f9f9ff;
  --ink: #222222;
  --grey: #6f7791;
  --grey-on-dark: #8189a4;
  --line: #e4e5ee;
  --line-dark: #222a47;
  --radius: 3px;
  --width: 72rem;
  --font: Poppins, "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.2; font-weight: 600; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--width); margin: 0 auto; padding: 0 1.25rem; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; padding: .5rem .75rem; background: var(--yellow); color: var(--navy); }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }

/* --- the lockup, coloured by where it sits ------------------------------------- */
/* The square is yellow on every ground; the seam matches the ground, navy on
   light and paper on dark (the kit's third edition, 2026-10-08), as the
   wordmark does. */
.lockup .square { fill: var(--yellow); }
.lockup .seam, .lockup .word { fill: var(--navy); }
.lockup .by { fill: var(--grey); }
.on-dark .lockup .seam, .on-dark .lockup .word { fill: var(--paper); }
.on-dark .lockup .by { fill: var(--grey-on-dark); }

/* --- buttons -------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.15rem;
  border: 1px solid transparent; border-radius: var(--radius);
  font: 600 .95rem/1 var(--font); text-decoration: none; white-space: nowrap;
  transition: background-color 120ms linear, border-color 120ms linear;
}
.btn svg { width: 1.05rem; height: 1.05rem; }
.btn-primary { background: var(--yellow); color: var(--navy); }
.btn-primary:hover { background: #ffc626; }
.btn-ghost { border-color: rgb(249 249 255 / .35); color: var(--paper); }
.btn-ghost:hover { border-color: var(--paper); }
.btn-small { padding: .5rem .85rem; font-size: .875rem; }

/* --- the header ------------------------------------------------------------------- */
.top { background: var(--deep); border-bottom: 1px solid var(--line-dark); position: sticky; top: 0; z-index: 5; }
.top .wrap { display: flex; align-items: center; gap: 1.5rem; height: 4rem; }
.top .home { display: block; flex-shrink: 0; }
.top .lockup { display: block; height: 30px; width: 148px; }
.top nav { display: flex; gap: 1.5rem; margin-left: auto; }
.top nav a { color: var(--grey-on-dark); font-size: .925rem; font-weight: 500; text-decoration: none; }
.top nav a:hover { color: var(--paper); }
.top .actions { display: flex; gap: .6rem; }
@media (max-width: 52rem) { .top nav { display: none; } .top .actions { margin-left: auto; } }
/* **Sign in is never hidden** (2026-11-17, Adam: "the swarf home page doesn't
   even have a link to the app? ... it should be always visible"). It was
   taken off below 26rem to make room, which is every phone. Now the lockup
   gives way instead: on a phone the header shows the square mark alone
   (its first 30px), and both buttons stay. */
@media (max-width: 26rem) {
  .top .wrap { gap: .75rem; }
  .top .home { width: 30px; overflow: hidden; }
  .top .actions { gap: .45rem; }
}

/* --- the hero --------------------------------------------------------------------- */
.hero { background: var(--navy); color: var(--paper); padding: 4.5rem 0 0; overflow: hidden; }
.hero .wrap { text-align: center; }
.hero .lockup { display: block; width: min(30rem, 86%); height: auto; margin: 0 auto 2.25rem; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
.hero .lead { max-width: 44rem; margin: 1.25rem auto 0; color: #c9cddc; font-size: 1.075rem; }
.hero .ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2rem; }
.hero .note { display: inline-flex; align-items: center; gap: .45rem; margin-top: 1.25rem; color: var(--grey-on-dark); font-size: .875rem; }
.hero .note svg { width: 1rem; height: 1rem; }
.hero .shot { margin: 3.5rem auto 0; max-width: 64rem; }
.hero .shot img { border: 1px solid var(--line-dark); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; box-shadow: 0 -10px 60px rgb(0 0 0 / .45); }

/* --- sections --------------------------------------------------------------------- */
section { padding: 5rem 0; }
.eyebrow { font-size: .75rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--grey); }
.on-dark .eyebrow { color: var(--grey-on-dark); }
section h2 { margin-top: .6rem; font-size: clamp(1.6rem, 3.4vw, 2.25rem); }
.intro { max-width: 46rem; }
.intro p { margin-top: 1rem; color: #4a4f63; font-size: 1.05rem; }
.on-dark .intro p { color: #c9cddc; }


/* why: what it is for, by the part of the workshop it serves (2026-10-10).
   A rule across the top of each, in navy, rather than a card: these are
   reasons, read in a line, and the cards below are the features. */
.why { background: #fff; border-bottom: 1px solid var(--line); }
.why .cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 3rem; margin-top: 2.75rem; }
.why .case { padding-top: 1.25rem; border-top: 3px solid var(--navy); }
.why .role { font-size: .75rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--grey); }
.why .case h3 { margin-top: .5rem; font-size: 1.2rem; }
.why .case p:last-child { margin-top: .5rem; color: #4a4f63; font-size: .975rem; }
@media (max-width: 46rem) { .why .cases { grid-template-columns: 1fr; } }

/* what it does */
.features .grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2.75rem; }
.card { padding: 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.card .icon { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: var(--radius); background: var(--navy); color: var(--yellow); }
.card .icon svg { width: 1.25rem; height: 1.25rem; }
.card h3 { margin-top: 1rem; font-size: 1.075rem; }
.card p { margin-top: .5rem; color: #4a4f63; font-size: .95rem; }
@media (max-width: 60rem) { .features .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 38rem) { .features .grid { grid-template-columns: 1fr; } }

/* the overview: what SWARF shows */
.answers { background: var(--navy); color: var(--paper); }
.ov-list { display: grid; gap: .75rem; margin-top: 2.25rem; max-width: 60rem; }
.ov { border: 1px solid var(--line-dark); border-left: 3px solid var(--yellow); border-radius: var(--radius); background: var(--deep); }
.ov summary { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.4rem; cursor: pointer; list-style: none; }
.ov summary::-webkit-details-marker { display: none; }
.ov summary::after {
  content: ""; flex: none; width: .6rem; height: .6rem; margin-left: auto;
  border-right: 2px solid var(--grey-on-dark); border-bottom: 2px solid var(--grey-on-dark);
  transform: rotate(45deg); transition: transform .15s ease;
}
.ov[open] summary::after { transform: rotate(-135deg); border-color: var(--yellow); }
.ov summary:hover .ov-title { color: var(--yellow); }
.ov summary:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; border-radius: var(--radius); }
.ov-head { display: grid; gap: .25rem; }
.ov-title { color: var(--paper); font-weight: 600; font-size: 1.1rem; }
.ov-line { color: var(--grey-on-dark); font-size: .95rem; }
.ov-body { padding: 0 1.4rem 1.3rem; }
.ov-body ul { display: grid; gap: .45rem; margin: 0; padding-left: 1.1rem; color: #c9cddc; font-size: .95rem; }
.ov-body li::marker { color: var(--yellow); }
.ov-link { display: inline-block; margin-top: 1rem; color: var(--yellow); font-weight: 600; font-size: .95rem; }
.ov-link::after { content: " \2192"; }

/* the screens */
.screens .grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; margin-top: 2.75rem; }
.screens figure { margin: 0; }
.shot-open {
  display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--navy); cursor: zoom-in; font: inherit;
}
.shot-open:hover { border-color: var(--navy); }
.shot-open:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.shot-open img { display: block; width: 100%; height: auto; }

/* a screenshot enlarged: the page's target, so links open, step and close it
   with no script (2026-10-10). The shade under the panel is a link back too,
   so a click outside closes it. */
.screens figure { scroll-margin-top: 5.5rem; }
.zoom { display: none; }
.zoom:target { display: grid; place-items: center; position: fixed; inset: 0; z-index: 100; padding: 3vh 3vw; }
.zoom-shade { position: absolute; inset: 0; background: rgb(8 12 26 / .82); cursor: zoom-out; }
.zoom-panel {
  position: relative; display: flex; flex-direction: column; width: min(94vw, 90rem); max-height: 94vh;
  border: 1px solid var(--line-dark); border-radius: var(--radius); background: var(--deep); color: var(--paper);
  overflow: hidden;
}
.zoom-bar { display: flex; align-items: center; gap: .4rem; padding: .5rem .5rem .5rem 1.1rem; }
.zoom-bar b { font-weight: 600; font-size: .95rem; margin-right: auto; }
.zoom-step { margin-right: .6rem; color: var(--grey-on-dark); font-size: .85rem; font-variant-numeric: tabular-nums; }
.zoom-btn {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 2.5rem; height: 2.5rem; padding: 0; border: 1px solid var(--line-dark); border-radius: var(--radius);
  background: transparent; color: var(--paper); text-decoration: none;
}
.zoom-btn:hover { border-color: var(--yellow); color: var(--yellow); }
.zoom-btn:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.zoom-btn svg { width: 1.25rem; height: 1.25rem; }
.zoom-panel > img { display: block; width: 100%; height: auto; min-height: 0; max-height: calc(94vh - 3.6rem); object-fit: contain; }
body:has(.zoom:target) { overflow: hidden; }
@media (max-width: 30rem) { .zoom-step { display: none; } }
.screens figure.wide { grid-column: 1 / -1; }
.screens figcaption { margin-top: .75rem; color: #4a4f63; font-size: .925rem; }
.screens figcaption b { color: var(--ink); font-weight: 600; }
.screens .aside { margin-top: 1.5rem; color: var(--grey); font-size: .85rem; }
@media (max-width: 46rem) { .screens .grid { grid-template-columns: 1fr; } }

/* on site */
.site { background: #fff; border-top: 1px solid var(--line); }
.site .points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 2.5rem; margin-top: 2.75rem; }
.site .point { display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem; align-items: start; }
.site .point .icon { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); color: var(--navy); }
.site .point .icon svg { width: 1.25rem; height: 1.25rem; }
.site .point h3 { font-size: 1.05rem; }
.site .point p { margin-top: .35rem; color: #4a4f63; font-size: .95rem; }
@media (max-width: 46rem) { .site .points { grid-template-columns: 1fr; } }

/* the last word */
.cta { background: var(--navy); color: var(--paper); text-align: center; }
.cta h2 { margin-top: 0; }
.cta p { max-width: 38rem; margin: 1rem auto 0; color: #c9cddc; }
.cta .ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2rem; }

/* --- the footer --------------------------------------------------------------------- */
.bottom { background: var(--deep); color: var(--grey-on-dark); padding: 2.5rem 0; font-size: .875rem; }
.bottom .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.bottom .lockup { display: block; height: 40px; width: 198px; }
.bottom nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-left: auto; }
.bottom a { color: var(--grey-on-dark); text-decoration: none; }
.bottom a:hover { color: var(--paper); }
.bottom .legal { flex-basis: 100%; }

/* --- the page that is not there ------------------------------------------------------ */
.missing { min-height: calc(100vh - 4rem); display: grid; place-items: center; text-align: center; padding: 4rem 1.25rem; }
.missing h1 { font-size: 2rem; }
.missing p { margin-top: .75rem; color: #c9cddc; }
.missing .ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2rem; }

/* The 404 page is navy from top to bottom. */
body.page-missing { background: var(--navy); color: var(--paper); }
