/* Webical public site — warm stealth home, shared chrome */
:root {
  --ink: #1c241f;
  --soft: #4a554e;
  --mute: #6a736c;
  --paper: #f3eee5;
  --sand: #e7dfd1;
  --forest: #1d453c;
  --copper: #9a4a20;
  --line: #d4cbbd;
  --card: #fffcf7;
  --sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); font-weight: 600; text-underline-offset: 0.18em; }
a:hover { color: var(--copper); }
a:focus-visible {
  outline: 3px solid var(--forest);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--forest);
  color: #fff;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  z-index: 100;
  text-decoration: none;
}
.skip:focus { top: 0.75rem; }

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.site-header .bar,
.site-footer .bar {
  width: min(1120px, calc(100% - 4rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-header .bar { padding: 1.15rem 0; }

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--forest);
  text-decoration: none;
}
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.brand:hover { color: var(--forest); text-decoration: none; }

.site-header nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex-wrap: wrap;
}
.site-header nav a {
  color: var(--forest);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
}
.site-header nav a:hover,
.site-header nav a[aria-current="page"] { text-decoration: underline; }

/* Home */
.hero {
  width: min(1120px, calc(100% - 4rem));
  margin-inline: auto;
  padding: 2.8rem 0 2.3rem;
}
.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
}
h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.5rem, 5.2vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--forest);
  margin: 0 0 1.1rem;
}
.lede {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--soft);
  max-width: 34rem;
}

.apps {
  background: var(--sand);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.55rem 0 1.7rem;
}
.apps-inner {
  width: min(1120px, calc(100% - 4rem));
  margin-inline: auto;
}
.apps h2 {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--soft);
}
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2.5rem;
  max-width: 48rem;
}
.row h3 {
  margin: 0 0 0.3rem;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
}
.tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forest);
  margin-left: 0.45rem;
  vertical-align: middle;
}
.row p { margin: 0; color: var(--soft); font-size: 1rem; line-height: 1.5; }
.note {
  margin: 1.15rem 0 0;
  font-size: 0.98rem;
  color: var(--soft);
  font-style: italic;
}

/* Inner pages */
main { flex: 1 0 auto; }
.page {
  width: min(740px, calc(100% - 4rem));
  margin-inline: auto;
  padding: 2.4rem 0 3.2rem;
}
.page h1 { font-size: clamp(2.1rem, 4.5vw, 2.8rem); }
.fine { color: var(--mute); font-size: 0.95rem; margin: 0 0 1.6rem; }
.page h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--forest);
  margin: 2rem 0 0.55rem;
}
.page p, .page li { max-width: 42rem; }
.page ul { padding-left: 1.2rem; }
.page li { margin: 0.3rem 0; }

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-list li:first-child { border-top: 1px solid var(--line); }
.contact-list .k {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 0.2rem;
}

blockquote.consent {
  margin: 1rem 0 1.2rem;
  padding: 1rem 1.15rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--forest);
  border-radius: 4px 12px 12px 4px;
  font-size: 1.02rem;
  color: var(--ink);
}
.optin-shot {
  margin: 1.1rem 0 1.4rem;
  padding: 0.85rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  max-width: 28rem;
}
.optin-shot img { border-radius: 8px; width: 100%; }
.optin-shot figcaption {
  margin: 0.65rem 0 0;
  font-size: 0.9rem;
  color: var(--mute);
}
.samples { padding-left: 1.2rem; }
.samples li { margin: 0.45rem 0; }
.samples code {
  font-family: var(--sans);
  font-size: 0.98em;
  background: var(--sand);
  padding: 0.12em 0.3em;
  border-radius: 4px;
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 1.2rem 0 1.5rem;
  font-size: 0.88rem;
  color: var(--soft);
  border-top: 1px solid var(--line);
}
.site-footer .bar { align-items: flex-start; }
.site-footer .operator { margin: 0; max-width: 28rem; }
.site-footer nav { letter-spacing: 0.01em; }
.site-footer nav a {
  color: var(--forest);
  text-decoration: none;
  font-weight: 600;
  margin-left: 1.1rem;
}
.site-footer nav a:first-child { margin-left: 0; }
.site-footer nav a:hover { text-decoration: underline; }

.not-found { text-align: left; }
.not-found .lede { margin-bottom: 1.4rem; }
.not-found a.home-link { font-weight: 600; }

@media (max-width: 800px) {
  .row { grid-template-columns: 1fr; }
  .site-header .bar,
  .site-footer .bar,
  .hero,
  .apps-inner,
  .page { width: min(1120px, calc(100% - 2.2rem)); }
  .hero { padding-top: 2rem; }
}
@media (max-width: 560px) {
  body { font-size: 1.05rem; }
  .site-header .bar { padding: 0.9rem 0; }
  h1 { font-size: clamp(2.05rem, 9vw, 2.6rem); }
}

body.home main { flex: 0 0 auto; }
