/* Jacinda Linderman — personal site
   Deep navy/teal base, rose-pink accent, serif headings.
   Layout: mobile = sticky top bar + single column; desktop (>= 64rem) = fixed navy sidebar + content. */

:root {
  --paper: #f3f6f7;
  --paper-2: #e6eef0;
  --ink: #0f2433;
  --muted: #526676;
  --rule: #d3dde2;
  --card: #fbfdfd;
  --accent: #c23b68;           /* rose pink: buttons, links, highlights */
  --accent-ink: #fff;
  --accent-soft: color-mix(in srgb, var(--accent) 10%, transparent);
  --teal: #1d6e78;             /* secondary: figures, rules, map */
  --teal-soft: color-mix(in srgb, var(--teal) 11%, transparent);
  --side-bg: #0e2a3a;          /* desktop sidebar */
  --side-ink: #e9f1f4;
  --side-muted: #9db4c1;
  --side-accent: #f28db0;
  --shadow: 0 1px 2px rgb(10 30 45 / .06), 0 8px 22px -10px rgb(10 30 45 / .22);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --measure: 46rem;
  --sidebar: 17.5rem;
  --pad: 1.25rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b1821;
    --paper-2: #10222e;
    --ink: #e4edf1;
    --muted: #93a9b6;
    --rule: #20394a;
    --card: #10212c;
    --accent: #f08cae;
    --accent-ink: #2a0c18;
    --teal: #5fbfc0;
    --side-bg: #08131a;
    --side-ink: #e4edf1;
    --side-muted: #8aa1ae;
    --side-accent: #f08cae;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 10px 26px -12px rgb(0 0 0 / .7);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 var(--sans);
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

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

/* =========================================================
   Shell: sidebar (desktop) / top bar (mobile)
   ========================================================= */
.sidebar {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--rule);
  padding: .75rem var(--pad) 0;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; font: 600 1.15rem/1.1 var(--serif); color: var(--ink); text-decoration: none; }
.brand-mark { width: 1.9rem; height: 1.9rem; flex: none; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--accent); }
.sidebar-role, .sidebar-links, .contours-side { display: none; }

.site-nav { display: flex; gap: .25rem; margin: .55rem calc(var(--pad) * -1) 0; padding: 0 calc(var(--pad) - .55rem); overflow-x: auto; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  flex: none; color: var(--muted); text-decoration: none; font-size: .95rem;
  padding: .45rem .55rem .6rem; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

.content { padding: 0 var(--pad); }
main { max-width: var(--measure); margin: 0 auto; padding-block: 2.25rem 3.5rem; }

.site-footer { max-width: var(--measure); margin: 0 auto; border-top: 1px solid var(--rule); padding: 1.5rem 0 2.5rem; font-size: .88rem; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; }
.site-footer a { color: var(--muted); }

@media (min-width: 64rem) {
  body { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); }
  .sidebar {
    height: 100vh; align-self: start; border-bottom: 0; border-right: 1px solid var(--rule);
    background: var(--side-bg); color: var(--side-ink); border-right-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none;
    padding: 2.5rem 1.75rem 2rem; display: flex; flex-direction: column; overflow: hidden;
  }
  .brand { flex-direction: column; align-items: flex-start; gap: 1rem; font-size: 1.55rem; color: var(--side-ink); }
  .brand-mark { width: 4rem; height: 4rem; box-shadow: 0 0 0 2px var(--side-accent); }
  .sidebar-role { display: block; color: var(--side-muted); font-size: .92rem; margin: .6rem 0 0; line-height: 1.5; }
  .site-nav { flex-direction: column; gap: .15rem; margin: 2.25rem 0 0; padding: 0; overflow: visible; }
  .site-nav a { color: var(--side-muted); padding: .45rem .75rem; border-bottom: 0; border-left: 2px solid transparent; font-size: 1rem; border-radius: 0 3px 3px 0; }
  .site-nav a:hover { color: var(--side-ink); background: rgb(255 255 255 / .06); }
  .site-nav a[aria-current="page"] { color: var(--side-ink); border-left-color: var(--side-accent); background: rgb(255 255 255 / .09); }
  .sidebar-links { display: flex; flex-direction: column; gap: .35rem; margin-top: auto; font-size: .9rem; position: relative; z-index: 1; }
  .sidebar-links a { color: var(--side-muted); text-decoration: none; display: inline-flex; gap: .5rem; align-items: center; }
  .sidebar-links a:hover { color: var(--side-accent); }
  .sidebar-links svg { width: 1rem; height: 1rem; }
  .contours-side { display: block; position: absolute; left: 0; bottom: 0; width: var(--sidebar); height: 16rem; color: #5fbfc0; opacity: .22; pointer-events: none; }
  .content { padding: 0 4rem; }
  main, .site-footer { max-width: 56rem; }
  main { padding-block: 4.5rem 4rem; }
  h1 { font-size: 2.9rem; }
  body { font-size: 17px; }
}

/* =========================================================
   Type
   ========================================================= */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.18; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 6vw, 3.1rem); margin: 0 0 1rem; }
h2 { font-size: 1.5rem; margin: 3.25rem 0 1.1rem; display: flex; align-items: baseline; gap: .75rem; }
h2::after { content: ""; flex: 1; border-bottom: 1px solid var(--rule); transform: translateY(-.3em); }
h3 { font-size: 1.14rem; margin: 0 0 .3rem; }
p { margin: 0 0 1rem; text-wrap: pretty; }
.lede { font: 1.25rem/1.5 var(--serif); margin-bottom: 1.25rem; }
@media (min-width: 64rem) { .lede { font-size: 1.4rem; } }
.meta { color: var(--muted); font-size: .93rem; }
.eyebrow { font: 600 .72rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 .9rem; }
.page-head { margin-bottom: 1rem; }
.page-head .lede { color: var(--muted); }

/* =========================================================
   Home hero
   ========================================================= */
.hero { display: grid; gap: 1.5rem; align-items: center; }
.hexmap { display: block; width: 100%; height: auto; }
.hexmap { cursor: pointer; overflow: visible; }
.hexmap polygon { stroke: var(--paper); stroke-width: 1.1; transition: fill .5s, filter .2s; }
.hexmap .t-land  { fill: color-mix(in srgb, var(--teal) 26%, var(--paper)); }
.hexmap .t-water { fill: color-mix(in srgb, var(--teal) 60%, #3d8fd1 40%); }
.hexmap .t-water.own { fill: color-mix(in srgb, var(--accent) 40%, color-mix(in srgb, var(--teal) 60%, #3d8fd1 40%)); }
.hexmap .t-district { fill: color-mix(in srgb, var(--teal) 48%, var(--paper)); }
.hexmap .t-district.own { fill: color-mix(in srgb, var(--accent) 55%, var(--paper)); }
.hexmap .marks, .hexmap .labels { pointer-events: none; }
.hexmap .m-wave { fill: none; stroke: var(--paper); stroke-width: .8; opacity: .55; stroke-linecap: round; }
.hexmap .icon { fill: var(--paper); stroke: none; }
.hexmap .icon .cut { fill: color-mix(in srgb, var(--teal) 48%, var(--paper)); }
.hexmap .i-port path, .hexmap .i-campus path:last-child { fill: none; stroke: var(--paper); stroke-width: 1.2; stroke-linecap: round; }
.hexmap .d-name { font: 600 5.6px var(--sans); letter-spacing: .04em; fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 1.8px; opacity: .85; }
.hexmap .t-city  { fill: var(--accent); }
.hexmap .own:not(.t-city) { fill: color-mix(in srgb, var(--accent) 30%, var(--paper)); }
.hexmap .own.pop { animation: claim .45s ease-out; transform-box: fill-box; transform-origin: center; }
@keyframes claim { 0% { transform: scale(.4); filter: brightness(1.4); } 70% { transform: scale(1.08); } 100% { transform: none; filter: none; } }
.hexmap .tiles polygon:hover { filter: brightness(.92); }
.hexmap .border { fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; pointer-events: none; }
.hexmap .city { fill: var(--paper); pointer-events: none; }
.hexmap .city .door { fill: var(--accent); }
.hexmap .city-name { font: 600 7.5px var(--sans); letter-spacing: .08em; text-transform: uppercase; fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 2.5px; pointer-events: none; }
.hexmap-wrap { display: block; width: 100%; max-width: 26rem; margin: .5rem auto 0 !important; -webkit-tap-highlight-color: transparent; }
@media (max-width: 47.99rem) { .hexmap .d-name { font-size: 6.6px; } .hexmap .city-name { font-size: 8.5px; } }
@media (prefers-reduced-motion: no-preference) {
  .hexmap .t-city { animation: found 2.4s ease-out 1; transform-box: fill-box; transform-origin: center; }
  @keyframes found { 0% { filter: brightness(1.6); } 100% { filter: none; } }
}
@media (min-width: 48rem) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; }
  .hexmap-wrap { max-width: none; margin: 0 !important; }
}

.actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.5rem; }
.btn {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 2.75rem;
  padding: .55rem 1.15rem; border: 1px solid var(--rule); border-radius: 3px; background: var(--card);
  color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500;
  transition: border-color .15s, background .15s, transform .15s;
}
.btn:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.07); }
.btn svg { width: 1rem; height: 1rem; }
@media (max-width: 30rem) { .actions .btn { flex: 1 1 auto; justify-content: center; } }

/* stats strip */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin: 2.75rem 0 0; }
.stat { background: var(--paper); padding: 1rem 1.1rem; }
.stat b { display: block; font: 600 1.7rem/1.1 var(--serif); color: var(--teal); }
.stat span { display: block; font-size: .85rem; line-height: 1.4; color: var(--muted); margin-top: .3rem; }
@media (min-width: 40rem) { .stats { grid-template-columns: repeat(4, 1fr); } }

/* focus areas */
.focus { display: grid; gap: 1rem; }
.focus div { padding-top: .9rem; border-top: 2px solid var(--teal); }
.focus h3 { font-size: 1.05rem; }
.focus p { color: var(--muted); font-size: .93rem; margin: 0; }
@media (min-width: 40rem) { .focus { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }

/* =========================================================
   Cards, tags, entries
   ========================================================= */
.cards { display: grid; gap: 1rem; }
@media (min-width: 48rem) { .cards.two { grid-template-columns: repeat(2, 1fr); } }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--rule); border-radius: 4px; padding: 1.2rem 1.3rem 1.1rem;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 40%, var(--rule)); }
.card .kicker { font: .72rem/1 var(--mono); letter-spacing: .04em; color: var(--accent); text-transform: uppercase; margin-bottom: .55rem; }
.card p { margin: .3rem 0 .75rem; font-size: .96rem; }
.card .tags { margin-top: auto; }
.card a.stretch::after { content: ""; position: absolute; inset: 0; }
.card a.stretch { color: inherit; text-decoration: none; }
.card .figure { font: 600 1.05rem var(--serif); color: var(--teal); }

.tags { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.tags li { font: .72rem/1 var(--mono); color: var(--muted); background: var(--teal-soft); padding: .35rem .5rem; border-radius: 3px; }

.entries { list-style: none; padding: 0; margin: 0; }
.entries > li { padding: 1.1rem 0; border-bottom: 1px solid var(--rule); display: grid; gap: .15rem; }
.entries > li:last-child { border-bottom: 0; }
.entries .year { font: .8rem var(--mono); color: var(--muted); }
.entries p { margin: .2rem 0 0; }
.entries .links { display: flex; gap: 1rem; font-size: .92rem; margin-top: .4rem; }
@media (min-width: 48rem) {
  .entries.dated > li { grid-template-columns: 8.5rem 1fr; column-gap: 1.5rem; }
  .entries.dated > li > :not(.year) { grid-column: 2; }
  .entries.dated .year { grid-row: 1 / span 4; padding-top: .2rem; }
}

.callout { margin-top: 3.25rem; padding: 1.5rem; border-radius: 4px; background: var(--paper-2); border: 1px solid var(--rule); border-left: 3px solid var(--accent); }
.callout h2 { margin-top: 0; }
.callout h2::after { display: none; }

/* placeholders: visible while drafting, delete the class when filled */
.todo { outline: 1px dashed #c0392b; outline-offset: 2px; background: #c0392b14; }

/* =========================================================
   Resume
   ========================================================= */
.resume-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.timeline { position: relative; margin: 0; padding: 0 0 0 1.4rem; list-style: none; }
.timeline::before { content: ""; position: absolute; left: .3rem; top: .5rem; bottom: .5rem; width: 1px; background: var(--rule); }
.role { position: relative; margin-bottom: 2.25rem; }
.role::before { content: ""; position: absolute; left: -1.4rem; top: .45rem; width: .65rem; height: .65rem; border-radius: 50%; background: var(--paper); border: 2px solid var(--accent); }
.role.current::before { background: var(--accent); }
.role-head { display: flex; justify-content: space-between; gap: .25rem 1rem; flex-wrap: wrap; align-items: baseline; }
.role-head h3 { margin: 0; }
.role .org { color: var(--muted); font-size: .95rem; margin: .1rem 0 .5rem; }
.role ul { padding-left: 1.1rem; margin: .5rem 0 0; }
.role li { margin-bottom: .45rem; }
.role li::marker { color: var(--accent); }
.dates { font: .82rem var(--mono); color: var(--muted); white-space: nowrap; }

.skillset { display: grid; gap: 1.1rem; }
@media (min-width: 48rem) { .skillset { grid-template-columns: repeat(2, 1fr); gap: 1.4rem 2rem; } }
.skillset h3 { font: 600 .78rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.skillset .tags li { font-size: .78rem; color: var(--ink); }

@media print {
  body { display: block; background: #fff; color: #000; font-size: 10.5pt; }
  .sidebar, .site-footer, .actions, .resume-head .btn, .skip { display: none; }
  .content { padding: 0; }
  main { padding: 0; max-width: none; }
  h2 { margin-top: 1.1rem; }
  .card, .role { break-inside: avoid; }
  .tags li { background: none; border: 1px solid #ccc; color: #000; }
}

/* about */
.about { display: grid; gap: 1.25rem; align-items: start; }
.about img { width: 7.5rem; height: 7.5rem; border-radius: 50%; object-fit: cover; border: 3px solid var(--paper); box-shadow: 0 0 0 2px var(--accent); }
.about p:last-child { margin-bottom: 0; }
@media (min-width: 40rem) { .about { grid-template-columns: 9rem 1fr; gap: 2rem; } .about img { width: 9rem; height: 9rem; } }

.brand-mark .brand-city { fill: var(--paper); }
.brand-mark .door { fill: var(--accent); }
@media (min-width: 64rem) { .brand-mark polygon { fill: var(--side-accent); } .brand-mark .brand-city { fill: var(--side-bg); } .brand-mark .door { fill: var(--side-accent); } }
