/* TechCortado: one stylesheet for every page. System fonts, no external requests. */
:root {
  --bg: #14151a;
  --surface: #1d1f26;
  --line: #3a3d47;
  --text: #f3ead8;
  --muted: #cfc5b3;
  --accent: #e8b47c;
  --accent-ink: #14151a;
  --focus: #ffd9a8;
  --radius: 12px;
  --measure: 40rem;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 1.1875rem;          /* ~19px: large and readable */
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { color: var(--focus); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; background: var(--accent); color: var(--accent-ink); padding: .5rem 1rem; z-index: 10; }

.wrap { width: 100%; max-width: var(--measure); margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding-top: .75rem; padding-bottom: .75rem; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.25rem; letter-spacing: .01em; }
.brand img { width: 48px; height: 48px; border-radius: 10px; }
.nav ul { list-style: none; display: flex; gap: 1.1rem; margin: 0; padding: 0; }
.nav a { color: var(--text); text-decoration: none; padding: .35rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--accent); }

/* Type */
main { padding: 2rem 0 3rem; }
h1, h2, h3 { line-height: 1.25; margin: 2rem 0 .75rem; }
h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); margin-top: .5rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
p, ul, ol { margin: 0 0 1.1rem; }
strong { color: #fff6e6; }
.lede { font-size: 1.3rem; color: var(--muted); }
.meta { color: var(--muted); font-size: 1rem; margin-bottom: 1.5rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

/* Front page */
.hero { display: grid; gap: 1rem; align-items: center; padding-bottom: 1rem; }
.hero img { width: 120px; height: 120px; border-radius: 20px; }
.section-title { font-size: 1rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 2.5rem 0 1rem; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.card-body { padding: 1.1rem 1.25rem 1.3rem; }
.card h3 { margin: .25rem 0 .5rem; font-size: 1.35rem; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a:hover { color: var(--accent); text-decoration: underline; }
.card p { margin-bottom: .5rem; }

/* Sign-up */
.signup { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; margin-top: 2.5rem; }
.signup h2 { margin-top: 0; }
.signup label { display: block; font-weight: 600; margin-bottom: .4rem; }
.signup .row { display: flex; flex-wrap: wrap; gap: .6rem; }
.signup input[type="email"] {
  flex: 1 1 14rem; min-height: 3rem; font: inherit; color: var(--text);
  background: var(--bg); border: 2px solid var(--line); border-radius: 8px; padding: .5rem .8rem;
}
.signup input[type="email"]:focus { border-color: var(--accent); }
.btn {
  min-height: 3rem; font: inherit; font-weight: 700; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 8px; padding: .5rem 1.2rem;
}
.btn:hover { background: var(--focus); }
.small { font-size: 1rem; color: var(--muted); margin-top: .75rem; }
/* Honeypot: hidden from people, still in the form for spam scripts */
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* Article */
.article figure { margin: 1.5rem 0; }
.article figcaption { font-size: .95rem; color: var(--muted); margin-top: .4rem; }
.article figure img { border-radius: var(--radius); background: #fff; }
.callout { border-left: 4px solid var(--accent); background: var(--surface); padding: .9rem 1.1rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5rem 0; }
.callout p:last-child { margin-bottom: 0; }

.table-scroll { overflow-x: auto; margin: 1.25rem 0 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: 1rem; }
caption { text-align: left; padding: .75rem 1rem; font-weight: 700; caption-side: top; }
th, td { padding: .6rem .8rem; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
thead th { background: var(--surface); color: var(--accent); }
tbody th { font-weight: 600; color: var(--text); }
tbody tr:nth-child(even) td, tbody tr:nth-child(even) th { background: rgba(255,255,255,.03); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 1.5rem 0 2.5rem; color: var(--muted); font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0 0 .75rem; display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; }

@media (min-width: 40rem) {
  .hero { grid-template-columns: 120px 1fr; gap: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print {
  body { background: #fff; color: #000; }
  .site-header .nav, .signup, .site-footer ul { display: none; }
  a { color: #000; }
}
