/* Inkline website, Notebook design direction. No external requests: fonts are self-hosted. */
@import url("fonts.css");

:root {
  --paper: #FBFBF8;
  --surface: #FFFFFF;
  --grid: #E7EBF2;
  --ink: #1F2B47;
  --pencil: #5E687C;
  --line: #DCE1EA;
  --hl: #FFE45C;
  --hl-ink: #1F2B47;
  --lab: #23797A;
  --btn-bg: #1F2B47;
  --btn-fg: #FFFFFF;
  --f-ui: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Atkinson Hyperlegible Mono", ui-monospace, "Cascadia Mono", monospace;
  --f-hand: "Caveat", "Segoe Print", cursive;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #14171D; --surface: #1B1F27; --grid: #20252F; --ink: #E8EBF2; --pencil: #A3ABBB;
    --line: #2C323D; --hl: #FFE45C; --hl-ink: #14171D; --lab: #5EC2BF; --btn-bg: #FFE45C; --btn-fg: #14171D;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #14171D; --surface: #1B1F27; --grid: #20252F; --ink: #E8EBF2; --pencil: #A3ABBB;
  --line: #2C323D; --hl: #FFE45C; --hl-ink: #14171D; --lab: #5EC2BF; --btn-bg: #FFE45C; --btn-fg: #14171D;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--ink);
  font: 17px/1.6 var(--f-ui);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--lab); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 16px; }

.wrap { max-width: 1080px; margin: 0 auto; padding-inline: 16px; }
.narrow { max-width: 760px; }

/* header */
.site-header { background: color-mix(in srgb, var(--paper) 92%, transparent); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(6px); }
.site-header .wrap { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-left: auto; font-size: .97rem; }
.site-nav a { text-decoration: none; color: var(--pencil); padding: 4px 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -6px 0 var(--hl); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--hl); } }
.lang { font-size: .9rem; border: 1px solid var(--line); border-radius: 99px; padding: 2px 10px; text-decoration: none; color: var(--pencil); }
@media (max-width: 640px) {
  .site-nav { margin-left: 0; width: 100%; order: 3; gap: 2px 14px; }
  .lang { margin-left: auto; }
}

/* type */
h1, h2, h3 { line-height: 1.2; text-wrap: balance; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); letter-spacing: -.01em; margin-top: 1.6em; }
h3 { font-size: 1.15rem; margin-top: 1.4em; }
p, ul, ol { margin: 0 0 1em; }
li { margin-bottom: .35em; }
mark, .hl { background: linear-gradient(transparent 12%, var(--hl) 12%, var(--hl) 88%, transparent 88%); color: var(--hl-ink); padding: 0 .15em; }
.hand { font-family: var(--f-hand); font-size: 1.5em; line-height: 1.2; color: var(--pencil); }
.lead { font-size: 1.2rem; color: var(--pencil); max-width: 60ch; }
.muted { color: var(--pencil); }
code, .mono { font-family: var(--f-mono); font-size: .92em; }
.path { font-family: var(--f-ui); font-weight: 600; white-space: nowrap; }

/* hero */
.hero { padding-block: 56px 32px; display: grid; gap: 40px; grid-template-columns: 1.15fr .85fr; align-items: center; }
.hero .hand { margin-bottom: 8px; }
.hero-phones { display: flex; gap: 16px; justify-content: center; align-items: flex-start; }
.hero-phones img { min-width: 0; flex: 0 1 220px; }
.hero-phones img:nth-child(2) { margin-top: 48px; }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; padding-top: 32px; } .hero-phones img { width: 44%; } }

.phone { border-radius: 22px; border: 6px solid var(--ink); background: var(--surface); box-shadow: 0 10px 30px rgba(20, 30, 50, .14); width: 220px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--btn-bg); color: var(--btn-fg); text-decoration: none; font-weight: 700; border-radius: 99px; padding: 12px 22px; }
.btn.secondary { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn[aria-disabled="true"] { opacity: .85; cursor: default; }
.soon { font-size: .9rem; color: var(--pencil); }

.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; padding: 0; list-style: none; }
.badges li { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 4px 12px; font-size: .92rem; }

/* sections and cards */
section.block { padding-block: 32px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; min-width: 0; }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card .icon { width: 28px; height: 28px; color: var(--lab); margin-bottom: 8px; }

.quote { background: var(--surface); border-left: 6px solid var(--hl); border-radius: 0 14px 14px 0; padding: 20px 24px; font-size: 1.2rem; max-width: 62ch; }

.shots { display: flex; gap: 18px; overflow-x: auto; padding: 8px 4px 20px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.shots::-webkit-scrollbar { display: none; }
.shots.js-drag { cursor: grab; user-select: none; }
.shots.dragging { cursor: grabbing; scroll-snap-type: none; }
.shots img { pointer-events: none; }
.shots-nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: 4px; }
.shots-btn { width: 44px; height: 44px; border-radius: 99px; border: 1.5px solid var(--ink); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.shots-btn:disabled { opacity: .3; cursor: default; }
.shots figure { margin: 0; flex: 0 0 auto; scroll-snap-align: start; }
.shots figcaption { font-size: .92rem; color: var(--pencil); margin-top: 8px; max-width: 220px; }

/* article pages */
.page-head { padding-block: 40px 8px; }
article { padding-bottom: 32px; }
article h2 { scroll-margin-top: 90px; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 20px; margin: 16px 0 8px; }
.toc ol { margin: 0; padding-left: 1.2em; columns: 2 220px; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps > li { counter-increment: s; position: relative; padding-left: 44px; margin-bottom: 14px; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--hl); color: var(--hl-ink); font-weight: 700; display: grid; place-items: center; font-family: var(--f-mono); }
.note { background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--lab); border-radius: 0 12px 12px 0; padding: 14px 18px; margin: 0 0 1em; }
.note.warn { border-left-color: var(--hl); }
.note p:last-child { margin-bottom: 0; }
.figure-row { display: flex; flex-wrap: wrap; gap: 18px; margin: 8px 0 20px; }
.figure-row .phone { width: 200px; }
table { border-collapse: collapse; width: 100%; background: var(--surface); border-radius: 12px; overflow: hidden; margin-bottom: 1em; font-size: .97rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 700; }
.table-wrap { overflow-x: auto; }
.placeholder { background: var(--hl); color: var(--hl-ink); padding: 0 .3em; border-radius: 3px; font-weight: 600; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--paper); margin-top: 40px; padding-block: 28px 40px; font-size: .93rem; color: var(--pencil); }
.site-footer .wrap { display: grid; gap: 12px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer a { color: var(--ink); }
.mono { overflow-wrap: anywhere; }
@media (max-width: 480px) { .path { white-space: normal; } }
.cards.four { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.brand img { box-shadow: 0 0 0 1px var(--line); }
