/* winkylabs.llc — one stylesheet for every page. Hand-written; no build. */

:root {
  --ink: #333;
  --muted: #6b665e;
  --paper: #ffffff;
  --ground: #f0eadf;
  --rule: #e2dccf;
  --accent: #007bff;
  --accent-ink: #0b5fc0;
}

* { box-sizing: border-box; }

body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 24px 40px 48px;
  color: var(--ink);
  line-height: 1.6;
  background-color: var(--ground);
  background-image: url("/texture1.png");
}

h1, h2, h3 { font-family: 'Playfair Display', serif; line-height: 1.2; }
h1 { font-size: 2.5em; margin: 0.4em 0 0.3em; }
h2 { font-size: 1.7em; margin: 1.4em 0 0.5em; }
h3 { font-size: 1.2em; margin: 1.2em 0 0.4em; }
p, ul, ol { margin: 0 0 1em; font-size: 1.05em; }
li { margin-bottom: 0.35em; }
a { color: var(--accent-ink); }
a:hover { color: var(--accent); }
code { font-size: 0.92em; background: #f4f1ea; padding: 0 0.25em; border-radius: 3px; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2em 0; }

/* ---- header / nav ---- */
.site-header {
  max-width: 900px;
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.site-header .brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink);
  font-family: 'Playfair Display', serif; font-size: 1.5em; font-weight: 700;
}
.site-header .brand img { width: 48px; height: 48px; border-radius: 8px; }
.site-nav { margin-left: auto; display: flex; gap: 20px; font-size: 1em; }
.site-nav a { text-decoration: none; color: var(--ink); border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--ink); }

/* ---- content ---- */
.content-wrapper {
  max-width: 640px;
  margin: 0 0 24px;
  padding: 24px 28px;
  background-color: var(--paper);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.content-wrapper.wide { max-width: 900px; }
.content-wrapper > :first-child { margin-top: 0; }
.content-wrapper > :last-child { margin-bottom: 0; }
.lede { font-size: 1.2em; }
.meta { color: var(--muted); font-size: 0.95em; margin-top: -0.4em; }

.cta-button {
  display: inline-block;
  background-color: var(--accent);
  color: #ffffff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1em;
}
.cta-button:hover { color: #fff; background: var(--accent-ink); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 8px 0 0; }

/* ---- figures ---- */
figure { margin: 1.2em 0; }
figure img, figure svg { display: block; width: 100%; height: auto; border: 1px solid var(--rule); background: #fff; }
figure.phone img { width: auto; max-width: 100%; max-height: 640px; margin: 0 auto; }
figcaption { color: var(--muted); font-size: 0.9em; margin-top: 0.4em; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.shots figure { margin: 0; }

/* ---- portfolio cards ---- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin: 0 0 24px; max-width: 900px; }
.card {
  background: var(--paper);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  padding: 20px 22px;
  display: flex; flex-direction: column;
}
.card.feature { grid-column: 1 / -1; }
.card h2 { margin: 0 0 0.3em; font-size: 1.5em; }
.card h2 a { text-decoration: none; color: var(--ink); }
.card h2 a:hover { color: var(--accent-ink); }
.card .meta { margin: 0 0 0.6em; }
.card figure { margin: 0 0 14px; }
.card figure img { max-height: 260px; object-fit: cover; object-position: top; }
.card p { font-size: 1em; }
.card .more { margin-top: auto; }
.also { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.also figure { margin: 0 0 8px; }
.also figure img { max-height: 320px; object-fit: contain; }

/* ---- numbers ---- */
table.numbers { border-collapse: collapse; width: 100%; margin: 0.6em 0 0.4em; font-size: 0.98em; }
table.numbers th, table.numbers td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.numbers th { font-weight: 700; width: 38%; }
table.numbers td.n { text-align: right; font-variant-numeric: tabular-nums; }
table.numbers thead th { border-bottom: 2px solid var(--rule); white-space: nowrap; width: auto; }
.asof { color: var(--muted); font-size: 0.85em; margin: 0.4em 0 0.8em; }
ul.facts { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.95em; color: var(--muted); }
ul.facts li { margin: 0; }
ul.facts b { color: var(--ink); }


/* ---- footer ---- */
.site-footer { max-width: 900px; margin: 32px 0 0; color: var(--muted); font-size: 0.9em; }
.site-footer a { color: var(--muted); }

@media (max-width: 700px) {
  body { padding: 16px 16px 32px; }
  h1 { font-size: 2em; }
  .content-wrapper { padding: 18px 18px; }
  .site-nav { margin-left: 0; width: 100%; gap: 16px; }
  table.numbers th { width: auto; }
}
