/* =====================================================================
   Asher Inland Tech Support: styles for every page (version 4)
   asherinland.com

   The idea: a short, plain letter, set well. Plain white, near-black
   ink, one blue for things you can press, and lots of room to breathe.
   No boxes or badges; spacing and type do the work.

   Type: Charter, a sturdy book face that stays clear at any size.
   (Converted from Bitstream Charter; see assets/fonts/LICENSE-Charter.txt)

   Colors are set once below, with dark mode just after.
   ===================================================================== */

@font-face { font-family: "Charter Web"; src: url("fonts/charter-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Charter Web"; src: url("fonts/charter-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Charter Web"; src: url("fonts/charter-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  color-scheme: light dark;
  --paper: #ffffff;
  --ink: #1f1f1f;
  --ink-2: #5a5a5a;
  --rule: #e3e3e3;
  --accent: #1f4e79;
  --accent-hover: #163a5c;
  --on-accent: #ffffff;
  --field-line: #8a8a8a;
  --placeholder: #eef0f2;
  --tile: #f1f4f7;
  --tile-hover: #e7edf3;
  --error: #b42318;
  --ok: #2e6b3a;
  --focus: #22201d;
  --halo: #f0b429;

  --serif: "Charter Web", Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --fs: clamp(1.1875rem, 1.13rem + .25vw, 1.3125rem);
  --fs-small: 1.0625rem;
  --fs-h1: clamp(2.25rem, 1.7rem + 2.3vw, 3.375rem);
  --fs-h2: clamp(1.375rem, 1.3rem + .4vw, 1.625rem);
  --measure: 34em;
  --max: 1040px;
  --gutter: max(6vw, 20px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #161718; --ink: #ececec; --ink-2: #b8b8b8; --rule: #333436;
    --accent: #9cc3e8; --accent-hover: #bcd7f0; --on-accent: #10202f;
    --field-line: #7a7a7a; --placeholder: #242628; --tile: #202326; --tile-hover: #2a2e32; --error: #ff8a80; --ok: #8fd19e; --focus: #edeae4;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #161718; --ink: #ececec; --ink-2: #b8b8b8; --rule: #333436;
  --accent: #9cc3e8; --accent-hover: #bcd7f0; --on-accent: #10202f;
  --field-line: #7a7a7a; --placeholder: #242628; --tile: #202326; --tile-hover: #2a2e32; --error: #ff8a80; --ok: #8fd19e; --focus: #edeae4;
}
:root[data-theme="light"] { color-scheme: light; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--fs)/1.6 var(--serif); font-kerning: normal; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-weight: 400; line-height: 1.1; letter-spacing: -.012em; max-width: 15em; margin-bottom: .45em; }
h2 { font-size: var(--fs-h2); font-weight: 700; line-height: 1.25; margin-bottom: .55em; }
h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.3; margin-bottom: .3em; }
p { margin: 0 0 1em; max-width: var(--measure); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol, dl { margin: 0; padding: 0; }
strong, b { font-weight: 700; }
a { color: var(--accent); text-decoration-thickness: .07em; text-underline-offset: .2em; }
a:hover { color: var(--accent-hover); text-decoration-thickness: .13em; }
:focus { outline: 3px solid var(--focus); outline-offset: 3px; box-shadow: 0 0 0 7px var(--halo); }
:focus:not(:focus-visible) { outline: none; box-shadow: none; }
.nw { white-space: nowrap; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -200px; z-index: 50; padding: 12px 18px; border-radius: 6px; background: var(--halo); color: #1f1f1f; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
main { padding-block: clamp(28px, 5vw, 64px) clamp(56px, 8vw, 104px); }
.lead { font-size: clamp(1.25rem, 1.16rem + .45vw, 1.45rem); line-height: 1.55; max-width: 30em; }
.quiet { color: var(--ink-2); }
.small { font-size: var(--fs-small); }
section + section { margin-top: clamp(44px, 6vw, 72px); }
.lead + section, .lead + .contact { margin-top: clamp(28px, 4vw, 44px); }

/* ---------- Header ---------- */
.site-head { position: relative; border-bottom: 1px solid var(--rule); }
.site-head .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding-block: 14px; }
.menu-btn { justify-self: start; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px 0 10px; margin-left: -10px; border: 0; border-radius: 6px; background: transparent; color: var(--ink); font: 400 1.0625rem/1 var(--serif); cursor: pointer; }
.menu-btn:hover { background: var(--tile); }
.menu-btn svg { width: 22px; height: 22px; }
.menu-btn .x { display: none; }
.menu-btn[aria-expanded="true"] .bars { display: none; }
.menu-btn[aria-expanded="true"] .x { display: block; }
.wordmark { grid-column: 2; display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; line-height: 1.15; padding-block: 4px; }
.wordmark .mark { width: 40px; height: auto; flex: none; color: var(--accent); }
.wordmark b { display: block; font-size: 1.25rem; letter-spacing: .005em; }
.wordmark .words span { display: block; margin-top: 1px; font-size: .9rem; color: var(--ink-2); }
.wordmark:hover { color: var(--ink); }
.site-menu { position: absolute; z-index: 20; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--rule); box-shadow: 0 14px 28px -20px rgba(0, 0, 0, .35); }
.site-menu[hidden] { display: none; }
.site-menu ul { list-style: none; max-width: var(--max); margin-inline: auto; padding: 10px var(--gutter) 22px; }
.site-menu a { display: flex; align-items: center; min-height: 56px; color: var(--ink); font-size: 1.375rem; text-decoration: none; border-bottom: 1px solid var(--rule); }
.site-menu li:last-child a { border-bottom: 0; }
.site-menu a:hover { color: var(--accent); }
.site-menu a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .35em; }

/* ---------- Buttons and links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3.1rem; padding: .5em 1.25em; border: 2px solid var(--accent); border-radius: 6px; background: var(--accent); color: var(--on-accent); font: 700 1.0625rem/1.2 var(--serif); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btn[disabled] { opacity: .65; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 30px; }
.actions .or { color: var(--ink-2); }
.actions > a:not(.btn) { display: inline-block; padding-block: 10px; }

/* ---------- Home ---------- */
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 290px); gap: clamp(32px, 6vw, 88px); align-items: start; }
.photo { margin: 0; }
.photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; background: var(--placeholder); }
.photo.square img { aspect-ratio: 1; }
.photo figcaption { margin-top: 8px; font-size: 1rem; font-style: italic; color: var(--ink-2); }
.story-break { margin-top: clamp(56px, 8vw, 96px); padding-top: clamp(40px, 6vw, 64px); border-top: 1px solid var(--rule); }
.photo-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); max-width: 560px; margin-top: 2em; }
.photo-row .photo { max-width: none; }

/* Prices: plain numbers, said up front */
.price-card { max-width: 34rem; padding: clamp(28px, 5vw, 44px) clamp(22px, 5vw, 40px); border: 1px solid var(--rule); border-radius: 12px; text-align: center; }
.price-plans { list-style: none; }
.price-plans li + li { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--rule); }
.price-icon { display: block; width: 44px; height: 44px; margin: 0 auto 14px; color: var(--accent); }
.price-card p { max-width: none; margin: 0; }
.price-plans h3 { margin-bottom: .35em; }
.price-plans .amount { margin-bottom: .45em; font-size: 2.75rem; line-height: 1.05; letter-spacing: -.01em; }
.price-plans .price { position: relative; display: inline-block; }
.price-plans .tax { position: absolute; left: 100%; top: .2em; margin-left: .2em; font-size: .9rem; line-height: 1; letter-spacing: 0; color: var(--ink-2); white-space: nowrap; }
.price-plans .unit { display: block; margin-top: .4em; font-size: var(--fs-small); letter-spacing: 0; color: var(--ink-2); }
.price-free { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--rule); }
.free-title { font-size: 1.3rem; font-weight: 700; line-height: 1.3; }
.price-card .price-note { margin-top: 12px; font-size: var(--fs-small); color: var(--ink-2); }
.price-help { max-width: var(--measure); margin-top: clamp(32px, 5vw, 48px); }
.price-help h3 { font-size: 1.35rem; margin-bottom: .5em; }
.price-help > p { margin-bottom: .8em; }
.after-list { margin-top: 1.1em; }

/* ---------- Home: introduction and picture tiles ---------- */
.hero { text-align: center; padding-block: clamp(20px, 4vw, 48px) 0; }
.hero h1 { font-size: clamp(2rem, 1.55rem + 1.9vw, 3rem); max-width: 14em; margin-inline: auto; }
.hero .lead { max-width: 31em; margin-inline: auto; font-size: clamp(1.15rem, 1.1rem + .3vw, 1.3rem); }
.hero .actions { justify-content: center; }
.hero-pic { margin: clamp(36px, 5vw, 56px) 0 0; }
.hero-pic img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: 10px; background: var(--placeholder); }
.tiles-wrap { margin-top: clamp(48px, 7vw, 88px); }
.tiles-wrap h2 { text-align: center; margin-bottom: 1em; }
.tiles { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.tile { display: block; color: var(--ink); text-decoration: none; }
.tile .pic { display: grid; place-items: center; aspect-ratio: 1; border-radius: 8px; background: var(--tile); color: var(--accent); transition: background-color .15s; }
.tile svg { width: 52%; height: auto; overflow: visible; }
.tile svg .cut { fill: var(--tile); transition: fill .15s; }
.tile svg .soft { fill: currentColor; opacity: .12; stroke: none; }
.tile .name { display: block; margin-top: 10px; font-size: 1.0625rem; line-height: 1.35; }
.tiles-more { margin: 1.6em auto 0; text-align: center; max-width: none; }
.tiles-more a { display: inline-block; padding-block: 10px; }
.tile:hover { color: var(--ink); }
.tile:hover .pic { background: var(--tile-hover); }
.tile:hover svg .cut { fill: var(--tile-hover); }
.tile:hover .name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }

/* ---------- Help and prices ---------- */
.help-list { max-width: 46rem; border-top: 1px solid var(--rule); }
.help-list div { display: grid; grid-template-columns: 12.5rem minmax(0, 1fr); gap: .1rem 1.5rem; padding: .8rem 0; border-bottom: 1px solid var(--rule); }
.help-list dt { font-weight: 700; }
.help-list dd { margin: 0; }
.plain-list { max-width: var(--measure); padding-left: 1.25em; }
.plain-list li { margin-bottom: .45em; padding-left: .2em; }
.plain-list li::marker { color: var(--ink-2); }

/* ---------- About ---------- */
.with-photo { display: grid; grid-template-columns: minmax(180px, 250px) minmax(0, 1fr); gap: clamp(24px, 5vw, 56px); align-items: start; }
.fill-in { max-width: var(--measure); margin: 0 0 1em; padding: .1em 0 .1em 1em; border-left: 3px solid var(--rule); color: var(--ink-2); font-style: italic; }

/* ---------- Contact form ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 17rem); gap: clamp(36px, 6vw, 80px); align-items: start; }
.form { display: grid; gap: 22px; max-width: 34rem; }
.field label { display: block; margin-bottom: 6px; font-weight: 700; font-size: var(--fs-small); }
.field .opt { font-weight: 400; color: var(--ink-2); }
.field .hint { display: block; margin: -2px 0 8px; font-size: 1rem; color: var(--ink-2); }
.field input, .field textarea { width: 100%; min-height: 3.1rem; padding: .6rem .8rem; border: 2px solid var(--field-line); border-radius: 6px; background: var(--paper); color: var(--ink); font: 400 1.125rem/1.4 var(--serif); }
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field [aria-invalid="true"] { border-color: var(--error); }
.pair-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.form-note { margin: 0; font-size: 1rem; color: var(--ink-2); }
.err { display: block; margin-top: 6px; color: var(--error); font-weight: 700; font-size: 1rem; }
.err:empty { display: none; }
.err-summary { padding: 14px 18px; border: 2px solid var(--error); border-radius: 6px; }
.err-summary h2 { font-size: 1.125rem; color: var(--error); margin-bottom: .3em; }
.err-summary ul { padding-left: 1.2em; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.status { margin: 0; font-weight: 700; }
.status:empty { display: none; }
.status.error { color: var(--error); }
.status.notice { font-weight: 400; padding-left: 14px; border-left: 3px solid var(--accent); }
.sent { padding-left: 18px; border-left: 4px solid var(--ok); }
.sent h2 { margin-bottom: .4em; }
.ts-box:empty { display: none; }
.side h2 { font-size: 1.1875rem; margin-bottom: .3em; }
.side p { font-size: var(--fs-small); }
.side .block + .block { margin-top: 28px; }
.copy-line { margin-top: 10px; }
.copy-btn { padding: .4em .9em; min-height: 2.75rem; border: 2px solid var(--accent); border-radius: 6px; background: transparent; color: var(--accent); font: 700 1rem/1.2 var(--serif); cursor: pointer; }
.copy-btn:hover { color: var(--accent-hover); border-color: var(--accent-hover); }
.copy-status { min-height: 1.4em; margin: 8px 0 0; font-size: 1rem; }
.email-big { font-size: 1.1875rem; overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--rule); color: var(--ink-2); font-size: 1rem; }
.site-foot .wrap { padding-block: 16px 24px; text-align: center; }
.site-foot p { max-width: none; }
.site-foot p { margin: 0; }
.site-foot a { color: var(--ink-2); display: inline-block; padding-block: 10px; }

/* ---------- Narrow screens ---------- */
@media (max-width: 860px) {
  .intro, .with-photo, .contact { grid-template-columns: minmax(0, 1fr); }
  .photo { max-width: 260px; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .help-list div { grid-template-columns: minmax(0, 1fr); }
  .pair-fields { grid-template-columns: minmax(0, 1fr); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-pic img { aspect-ratio: 4 / 3; }
  .tile .name { font-size: 1.0625rem; margin-top: 8px; }
  .wordmark .mark { width: 34px; }
  .wordmark b { font-size: 1.125rem; }
  .menu-btn .menu-label { font-size: 1rem; }
  .actions .btn, .form-foot .btn { width: 100%; }
}
@media (max-width: 380px) {
}

/* ---------- Windows high contrast ---------- */
@media (forced-colors: active) {
  .btn, .copy-btn { border: 2px solid ButtonText; }
  .wordmark .mark { color: CanvasText; }
  .menu-btn { border: 2px solid ButtonText; }
}

/* ---------- Print ---------- */
@media print {
  :root { --paper: #fff; --ink: #000; --ink-2: #333; --accent: #000; --rule: #bbb; }
  body { font-size: 12pt; }
  .skip, .menu-btn, .site-menu, .form, .copy-line, .actions .btn { display: none !important; }
  a[href^="http"]::after, a[href^="mailto"]::after { content: " (" attr(href) ")"; font-size: .85em; }
}

.hello { font-size: clamp(1.5rem, 1.3rem + .8vw, 1.875rem); line-height: 1.2; margin-bottom: .6em; }
