/* Colours, logo and fonts follow the Square Harness notebook interface. */
@font-face { font-family: "Square Concrete"; src: url("/assets/fonts/square-concrete-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Square Concrete"; src: url("/assets/fonts/square-concrete-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("/assets/fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  color-scheme: light;
  --paper: #f6f7fb;
  --grid: rgba(47, 62, 181, 0.07);
  --text: #1e2233;
  --text-2: #484f69;
  --ink: #2f3eb5;
  --margin: rgba(214, 64, 78, 0.5);
  --selection: rgba(47, 62, 181, 0.22);
  --line: #d6dae9;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--text);
  background-color: var(--paper);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 20px 20px;
  font: 20px/1.65 "Square Concrete", Georgia, serif;
}
.page { position: relative; max-width: 820px; min-height: 100svh; margin: auto; padding: 60px 28px 48px 76px; }
.page::before { position: absolute; top: 0; bottom: 0; left: 38px; border-left: 1px solid var(--margin); content: ""; }
header { display: flex; align-items: center; gap: 18px; }
.logo { display: block; flex: 0 0 auto; }
h1 { margin: 0; font-size: clamp(30px, 5vw, 42px); font-weight: 700; line-height: 1.2; }
.intro { max-width: 580px; margin: 26px 0 18px; font-size: 23px; line-height: 1.5; }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 28px; font: 17px/1.5 "Atkinson Hyperlegible Next", system-ui, sans-serif; }
a { color: var(--ink); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
.app-open { display: inline-flex; align-items: center; padding: 9px 18px; border: 1px solid var(--ink); border-radius: 3px; background: var(--ink); color: var(--paper); text-decoration: none; }
.app-open:hover { text-decoration: underline; }
section { margin-top: 46px; }
h2 { margin: 0 0 18px; font-size: 27px; line-height: 1.3; }
p { margin: 0 0 20px; }
.interface { width: 100%; max-width: 100%; min-width: 0; margin: 36px 0 0; }
.interface a { display: block; }
.interface img { display: block; width: 100%; max-width: 100%; height: auto; border: 1px solid var(--ink); border-radius: 4px; }
figcaption { margin-top: 8px; color: var(--text-2); font: 15px/1.5 "Atkinson Hyperlegible Next", system-ui, sans-serif; text-align: center; }
.team h2 { font-size: 22px; margin-bottom: 12px; }
.members { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; font: 17px/1.5 "Atkinson Hyperlegible Next", system-ui, sans-serif; }
.project-footer { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 20px; font: 17px/1.5 "Atkinson Hyperlegible Next", system-ui, sans-serif; text-align: center; }
.members a { color: var(--text-2); text-decoration: none; }
.members a:hover { color: var(--ink); text-decoration: underline; }
.contact-open { padding: 8px 18px; border: 1px solid var(--ink); border-radius: 3px; background: transparent; color: var(--ink); font: inherit; cursor: pointer; }
.contact-dialog { width: min(460px, calc(100% - 32px)); max-width: none; max-height: calc(100svh - 32px); padding: 24px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--text); box-shadow: 0 12px 48px rgba(0, 0, 0, 0.25); }
.contact-dialog::backdrop { background: rgba(10, 14, 25, 0.6); }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.dialog-header h2 { margin: 0; }
.contact-close { padding: 0 5px; border: 0; background: transparent; color: var(--text-2); font: 28px/1 "Atkinson Hyperlegible Next", system-ui, sans-serif; cursor: pointer; }
.contact-open:focus-visible, .contact-close:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
html:has(dialog[open]) { overflow: hidden; }
.contact-form { display: grid; gap: 14px; margin: 0; font: 17px/1.5 "Atkinson Hyperlegible Next", system-ui, sans-serif; }
.contact-form label { display: grid; gap: 6px; }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid var(--text-2); border-radius: 3px; padding: 10px 12px; background: var(--paper); color: var(--text); font: inherit; }
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form button { justify-self: start; border: 1px solid var(--ink); border-radius: 3px; padding: 9px 20px; background: var(--ink); color: var(--paper); font: inherit; cursor: pointer; }
.contact-form :focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.contact-form .service-note { margin: 0; color: var(--text-2); font-size: 14px; }
.contact-form .honeypot { display: none; }
::selection { background: var(--selection); }
@media (max-width: 560px) {
  body { font-size: 18px; }
  .page { padding: 36px 22px 36px 42px; }
  .page::before { left: 22px; }
  header { gap: 12px; }
  .logo { width: 44px; height: 44px; }
  h1 { font-size: clamp(26px, 7vw, 34px); }
  .intro { margin-top: 24px; font-size: 21px; }
  section { margin-top: 34px; }
  h2 { font-size: 24px; }
  .members { gap: 8px 18px; }
  .contact-dialog { padding: 20px; }
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #1a2033;
    --grid: rgba(143, 160, 255, 0.055);
    --text: #e6e8f2;
    --text-2: #b3b9d0;
    --ink: #97a4ff;
    --margin: rgba(255, 123, 132, 0.4);
    --selection: rgba(151, 164, 255, 0.28);
    --line: #2d3552;
  }
}
