/* Visimake website: the cutting mat. The green mat is the ground every craft shares; each app brings its material
   color. One family, Archivo: bold for headings, regular for reading. Archivo is served from /fonts (SIL Open Font
   License): one variable file per character set covers every weight and width used here. */

@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 800; font-stretch: 62% 125%; font-display: swap; src: url("fonts/archivo-latin-variable.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-weight: 400 800; font-stretch: 62% 125%; font-display: swap; src: url("fonts/archivo-latin-ext-variable.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --mat: #3e6b5a;
  --mat-deep: #33594a;
  --mat-line: #5e8a78;
  --mat-line-strong: #79a391;
  --thread: #f3ead7;
  --thread-soft: #d3dccf;
  --paper: #eef0ec;
  --paper-edge: #d9ddd6;
  --ink: #1e2321;
  --ink-soft: #4a524e;
  --marker: #c8372d;
  --leather: #c8955e;
  --leather-deep: #7a4527;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  /* Archivo's width for headings: 100 is its normal width (62 narrowest, 125 widest). */
  --head-stretch: 100%;
  --head-weight: 750;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.55; font-variant-numeric: tabular-nums; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--marker); outline-offset: 3px; border-radius: 2px; }
/* On the dark green and ink sections the red outline all but disappears, so use the cream thread color there. */
.on-mat :focus-visible, .site-head :focus-visible, .site-foot :focus-visible, .hero :focus-visible { outline-color: var(--thread); }
/* The skip link waits off screen until the keyboard reaches it. */
.skip { position: absolute; left: 12px; top: -100px; z-index: 10; padding: 12px 18px; background: var(--thread); color: var(--ink); font-weight: 700; border-radius: 3px; text-decoration: none; }
.skip:focus { top: 12px; }
main:focus { outline: none; }
img, svg { display: block; max-width: 100%; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* Headings: Archivo, bold, at the width set by --head-stretch. */
.display { font-stretch: var(--head-stretch); font-weight: var(--head-weight); letter-spacing: -0.015em; line-height: 1.04; text-wrap: balance; }
h1.display { font-size: clamp(40px, 5.8vw, 78px); }
h2.display { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.08; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; max-width: 34em; }

/* Buttons: a solid thread-colored tab on the mat, ink on paper. */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 3px; border: 2px solid currentColor; font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; background: transparent; color: inherit; }
.btn-solid { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--leather-deep); border-color: var(--leather-deep); }
.on-mat .btn-solid, .site-head .btn-solid { background: var(--thread); border-color: var(--thread); color: var(--ink); }
.on-mat .btn-solid:hover, .site-head .btn-solid:hover { background: #fff; border-color: #fff; }
.btn:not(.btn-solid):hover { background: rgba(0, 0, 0, 0.06); }
.on-mat .btn:not(.btn-solid):hover { background: rgba(255, 255, 255, 0.1); }

/* ---- Header ---- */
.site-head { background: var(--mat-deep); color: var(--thread); }
.site-head .wrap { display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: var(--head-weight); font-stretch: var(--head-stretch); font-size: 21px; }
.brand svg, .brand img { flex: none; }
.brand .app { font-weight: 500; font-stretch: 100%; opacity: 0.85; }
.nav { display: flex; gap: 4px 22px; flex: 1 1 auto; flex-wrap: wrap; font-size: 16px; }
.nav a { text-decoration: none; padding: 8px 0; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; }
.site-head .btn { min-height: 42px; padding: 0 16px; font-size: 15px; }

/* ---- The mat: green ground with a 10 mm grid, heavier every 50 mm ---- */
.on-mat { background: var(--mat); color: var(--thread); }
.hero { position: relative; overflow: hidden; background: var(--mat-deep); border-top: 1px solid var(--mat); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 40px; padding-top: 64px; padding-bottom: 56px; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.hero-copy .lead { color: var(--thread-soft); }
/* "make": in leather, with a line of stitching under it. */
.hero h1 .make { font-style: normal; color: var(--leather); text-decoration: underline dashed var(--thread); text-decoration-thickness: 0.05em; text-underline-offset: 0.14em; text-decoration-skip-ink: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { font-size: 14px; color: var(--thread-soft); }

/* The fold: the real sample wallet, from cut pieces to closed. */
.fold { display: flex; flex-direction: column; gap: 14px; }
.fold svg { width: 100%; height: auto; aspect-ratio: 5 / 4; border-radius: 4px; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 18px 40px rgba(0, 0, 0, 0.25); }
.fold .piece { transition: none; }
.fold .holes { fill: none; stroke: var(--ink); stroke-opacity: 0.55; stroke-linecap: round; }
.fold .edge { fill: none; stroke: rgba(30, 35, 33, 0.55); stroke-width: 0.5; }
.fold-ui { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; font-size: 15px; color: var(--thread-soft); }
.fold-ui input[type="range"] { width: 100%; accent-color: var(--thread); min-height: 32px; }
.fold-ui .stops { grid-column: 1 / -1; display: flex; justify-content: space-between; }
.fold-ui .stops button { background: none; border: 0; padding: 4px 0; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: transparent; }
.fold-ui .stops button:hover, .fold-ui .stops button[aria-pressed="true"] { color: var(--thread); text-decoration-color: currentColor; }
.fold-caption { font-size: 15px; color: var(--thread); min-height: 1.5em; }

/* ---- Paper sections ---- */
.section { padding: 88px 0; }
.section + .section { padding-top: 0; }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 46em; margin-bottom: 40px; }
.section-head p { color: var(--ink-soft); }

/* The apps: each open app as a swatch of its material, then one wide panel for what's planned (no names yet). */
.materials { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 0; border-top: 2px solid var(--ink); }
.material { padding: 22px 22px 26px 0; display: flex; flex-direction: column; gap: 12px; }
.material + .material { padding-left: 22px; border-left: 1px solid var(--paper-edge); }
.material .swatch { height: 92px; border-radius: 2px; position: relative; overflow: hidden; }
.material .swatch svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.material h3 { font-size: 22px; font-weight: var(--head-weight); font-stretch: var(--head-stretch); }
.material p { color: var(--ink-soft); font-size: 16px; }
.material .state { font-size: 14px; font-weight: 700; }
.material .state.open { color: var(--mat-deep); }
.material .state.soon { color: var(--ink-soft); font-weight: 500; }
.material .go { margin-top: auto; font-weight: 700; }
.leather .swatch { background: var(--leather); }
.planned .swatch { background: var(--mat); }
.planned-intro { max-width: 46em; }
.planned-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px 28px; margin: 4px 0 8px; }
.planned-list li { color: var(--ink-soft); font-size: 15px; border-top: 1px solid var(--paper-edge); padding-top: 10px; }
.planned-list strong { display: block; color: var(--ink); font-weight: 700; margin-bottom: 2px; }

/* How every app works: a real sequence, so it is numbered. */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 1px solid var(--ink); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.steps li::before { content: counter(step); font-weight: var(--head-weight); font-stretch: var(--head-stretch); font-size: 30px; line-height: 1; color: var(--marker); }
.steps h3 { font-size: 20px; font-weight: 700; }
.steps p { color: var(--ink-soft); font-size: 16px; }

/* Promises every app keeps: short, plain, side by side. */
.promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.promises h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.promises p { color: var(--ink-soft); font-size: 16px; }

/* What's new: dated entries, newest first. */
.shipped { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 40px; align-items: start; }
.log { border-top: 2px solid var(--ink); }
.log li { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 4px 20px; padding: 14px 0; border-bottom: 1px solid var(--paper-edge); }
.log .ver { font-weight: 700; }
.log .date { color: var(--ink-soft); font-size: 14px; }
.log p { color: var(--ink-soft); font-size: 16px; }
.log strong { color: var(--ink); font-weight: 700; display: block; }

/* Sign-up on the mat. */
.signup .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 40px; align-items: end; padding-top: 72px; padding-bottom: 72px; }
.signup h2 { margin-bottom: 16px; }
.signup p { color: var(--thread-soft); }
.signup .fine { font-size: 14px; margin-top: 12px; }
.signup .fine a { color: var(--thread); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; }
.field.wide, .form .btn { grid-column: 1 / -1; }
.field input, .field select { font: inherit; font-size: 16px; font-weight: 400; min-height: 48px; padding: 0 12px; border-radius: 3px; border: 2px solid var(--mat-line-strong); background: var(--mat-deep); color: var(--thread); }
.field input::placeholder { color: var(--mat-line-strong); }
.hidden { display: none; }
/* Out of sight but still read by screen readers (unlike .hidden). */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---- Footer ---- */
.site-foot { background: var(--ink); color: #c9cfca; font-size: 15px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; padding-top: 40px; padding-bottom: 40px; }
.site-foot .brand { color: var(--paper); font-size: 18px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; flex: 1 1 auto; justify-content: flex-end; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }

/* ---- Leather page ---- */
.app-hero .wrap { padding-top: 56px; padding-bottom: 56px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: end; }
.app-hero .lead { color: var(--thread-soft); }
.app-hero .facts { display: flex; flex-direction: column; gap: 10px; font-size: 16px; color: var(--thread-soft); border-left: 2px solid var(--leather); padding-left: 18px; }
.app-hero .facts strong { color: var(--thread); }

.group-name { font-size: 15px; font-weight: 700; color: var(--ink-soft); margin: 40px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--paper-edge); }
.group-name:first-of-type { margin-top: 0; }
.templates { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px 24px; }
.template { display: flex; flex-direction: column; gap: 10px; }
.template .sheet { position: relative; background: var(--mat); border-radius: 2px; aspect-ratio: 4 / 3; background-image: linear-gradient(var(--mat-line) 1px, transparent 1px), linear-gradient(90deg, var(--mat-line) 1px, transparent 1px); background-size: 16px 16px; background-position: -1px -1px; }
.template .sheet svg { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); }
.template h3 { font-size: 17px; font-weight: 700; }
.template p { color: var(--ink-soft); font-size: 15px; }
.template .size { font-size: 14px; color: #b8322a; } /* a shade darker than --marker: 5.2:1 on paper, over the 4.5:1 small text needs */
.sheet .cut { fill: var(--leather); stroke: var(--leather-deep); stroke-width: 0.6; }
.sheet .holes { fill: none; stroke: var(--leather-deep); stroke-linecap: round; }

/* What it does: each feature with a small drawing on the mat, in the app's own marks (thread, holes, red sizes). */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 40px; }
.feature { display: flex; flex-direction: column; gap: 8px; }
.feature .diagram { aspect-ratio: 16 / 7; background: var(--mat); border-radius: 2px; overflow: hidden; margin-bottom: 8px; }
.feature .diagram svg { width: 100%; height: 100%; }
.feature h3 { font-size: 19px; font-weight: 700; }
.feature p { color: var(--ink-soft); font-size: 16px; }
.diagram .leather-fill { fill: var(--leather); stroke: var(--leather-deep); stroke-width: 1; }
.diagram .leather-fill.alt { fill: #b37b45; }
.diagram .dim { fill: none; stroke: var(--marker); stroke-width: 1.4; }
.diagram .dim text, .diagram .dimtext { fill: #ffd9d4; stroke: none; font: 600 13px var(--font); }
.diagram .dim text { fill: #ffe1dc; }
.diagram .snap { fill: var(--thread); stroke: var(--ink); stroke-width: 1; }
.diagram .slits path, .diagram .slits { stroke: var(--leather-deep); stroke-width: 2.2; stroke-linecap: round; fill: none; }
.diagram .holes { stroke: var(--leather-deep); stroke-width: 4; stroke-linecap: round; fill: none; }
.diagram .hw circle { fill: none; stroke: var(--thread); stroke-width: 2.2; }
.diagram .through { stroke: var(--thread); stroke-width: 1.4; stroke-dasharray: 3 3; }
.diagram .fold { stroke: var(--thread); stroke-width: 1.4; stroke-dasharray: 4 4; }
.diagram .photo { fill: #5b7f70; stroke: var(--thread); stroke-width: 1; stroke-opacity: 0.5; }
.diagram .trace { fill: none; stroke: var(--thread); stroke-width: 2; stroke-dasharray: 6 4; }
.diagram.grains { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
/* The catalog's grain maps are greyscale: laid over a leather color, as the app does in 3D. */
.diagram.grains span { background: var(--c); overflow: hidden; }
.diagram.grains img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: soft-light; filter: contrast(1.2); }

.outputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 48px; }
.outputs h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.outputs p { color: var(--ink-soft); }

.guides { border-top: 2px solid var(--ink); }
.guides li { border-bottom: 1px solid var(--paper-edge); }
.guides a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding: 16px 0; text-decoration: none; }
.guides a:hover strong { text-decoration: underline; }
.guides strong { font-size: 18px; }
.guides span { color: var(--ink-soft); }

/* ---- Reading pages: guides, privacy, thanks ---- */
.doc { max-width: 720px; margin: 0 auto; padding: 56px 24px 88px; display: flex; flex-direction: column; gap: 16px; }
.doc .crumb { font-size: 15px; }
.doc .crumb a { color: var(--ink-soft); }
.doc h1 { font-size: clamp(34px, 4.6vw, 52px); margin-bottom: 4px; }
.doc h2 { font-size: 22px; font-weight: 700; margin-top: 20px; }
.doc p, .doc li { color: var(--ink-soft); }
.doc strong { color: var(--ink); }
.doc ul { list-style: disc; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.doc a:not(.btn) { color: var(--ink); }
.doc kbd { font: inherit; font-size: 0.85em; font-weight: 700; padding: 1px 6px; border: 1px solid var(--paper-edge); border-bottom-width: 2px; border-radius: 4px; background: #fff; color: var(--ink); }
.doc code { font: inherit; font-weight: 700; color: var(--ink); }
.doc h3 { font-size: 18px; font-weight: 700; margin-top: 8px; }
.doc h2[id], .doc h3[id] { scroll-margin-top: 80px; }
.doc .toc { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--paper-edge); padding: 16px 0; }
.doc .toc ol { margin: 0; padding-left: 22px; columns: 2 240px; column-gap: 32px; }
.doc .toc li { break-inside: avoid; padding: 2px 0; }
.doc .table-wrap { overflow-x: auto; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--paper-edge); color: var(--ink-soft); }
.doc th { color: var(--ink); border-bottom: 2px solid var(--ink); }
.doc td:first-child { white-space: nowrap; }
.doc .cta-row { margin-top: 16px; }
.doc .after { font-size: 15px; }

/* ---- Small screens ---- */
@media (max-width: 900px) {
  .hero .wrap, .app-hero .wrap, .shipped, .signup .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero .wrap { padding-top: 40px; gap: 28px; }
  .materials { grid-template-columns: minmax(0, 1fr); }
  .material + .material { padding-left: 0; border-left: 0; border-top: 1px solid var(--paper-edge); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .promises, .outputs, .features { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .features { gap: 32px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .form { grid-template-columns: minmax(0, 1fr); }
  .log li { grid-template-columns: minmax(0, 1fr); }
  .site-head .wrap { padding-top: 10px; padding-bottom: 6px; }
  /* Keeps the five links on one line on a phone. */
  .nav { column-gap: 16px; }
  /* The hero right below has the same button. */
  .site-head .btn { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
