/* cyncad.com — refined visual pass.
   Heritage-leaning: serif headings, parchment palette, Scottish green + gold accents.
   Still fully offline — system font stacks only, no external fonts or CDNs.
   (A deeper design session can build on this; the structure is stable.) */

:root {
  --bg: #f7f4ed;            /* warm parchment */
  --surface: #fffdf8;
  --ink: #211d17;          /* warm near-black */
  --ink-soft: #5c554a;
  --line: #e5decf;
  --accent: #2f5d43;        /* deep Scottish green */
  --accent-deep: #244a35;
  --accent-soft: #e9efe8;
  --gold: #b08a3e;          /* muted heraldic gold */
  --radius: 16px;
  --maxw: 720px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
  font-size: 17px;
}

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

/* ── Header / hero ── */
.site-header {
  position: relative;
  padding: 80px 0 44px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(120% 80% at 50% -10%, var(--accent-soft), transparent 60%),
    linear-gradient(180deg, #fbf9f3, var(--bg));
  text-align: center;
}

.monogram {
  width: 60px;
  height: 60px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 30px;
  color: var(--accent-deep);
  background: var(--surface);
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(48, 74, 53, 0.10);
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

h1 {
  margin: 0 auto 18px;
  max-width: 16ch;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 2.7rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.lede {
  margin: 0 auto;
  max-width: 52ch;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.motto {
  margin: 26px auto 0;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.motto span {
  display: inline-block;
  padding: 7px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.motto em { color: var(--accent); font-style: italic; }

/* ── Sections ── */
main { padding: 8px 24px; }

h2 {
  margin: 48px 0 18px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}

h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.4rem;
}

p { margin: 0 0 15px; }
p:last-child { margin-bottom: 0; }

cite { font-style: italic; }
em { font-style: italic; }

/* ── Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 30px;
  margin-bottom: 18px;
  box-shadow: 0 1px 2px rgba(33, 29, 23, 0.03);
}

#name p { font-size: 1.02rem; }
#name strong { color: var(--accent-deep); }

.card.muted {
  background: transparent;
  border-style: dashed;
  box-shadow: none;
  color: var(--ink-soft);
}

/* Project links */
a.project {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
a.project:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(47, 93, 67, 0.13);
}

.card.featured {
  border-color: #d8c7a8;
  background:
    linear-gradient(180deg, #fffdf6, var(--surface));
}

.go {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent);
  font-weight: 600;
}
a.project:hover .go { color: var(--accent-deep); }

/* ── Lineage timeline ── */
.timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 84px;
  width: 2px;
  background: linear-gradient(var(--line), var(--gold), var(--line));
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 3px 30px;
  padding: 15px 0;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 80px;
  top: 21px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}
.timeline li.now::before {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(176, 138, 62, 0.18);
}

.t-year {
  grid-row: span 2;
  text-align: right;
  padding-top: 1px;
  font-family: var(--serif);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--accent-deep);
}
.t-form { font-weight: 600; font-size: 1.08rem; }
.t-note { color: var(--ink-soft); font-size: 0.97rem; }
.timeline li.now .t-form { color: var(--accent); }

/* ── Tags ── */
.tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tag-live { background: var(--accent); color: #fff; }
.tag-soon { background: var(--accent-soft); color: var(--accent-deep); }

/* ── Footer ── */
.site-footer {
  margin-top: 56px;
  padding: 30px 0 64px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.9rem;
  text-align: center;
}

@media (max-width: 540px) {
  body { font-size: 16px; }
  .site-header { padding: 56px 0 34px; }
  h1 { font-size: 2.1rem; }
  .timeline::before { left: 70px; }
  .timeline li { grid-template-columns: 60px 1fr; gap: 3px 22px; }
  .timeline li::before { left: 66px; }
}
