/* catocaolan.com — shared styles, 2026-10-02.
   Lifted from /cv/, which was the one page on the site that already read as
   professional; now the whole site wears it. Same-origin, no fonts loaded,
   nothing hotlinked. AA contrast on every pair (figures in the comments). */

:root{
  --ink:#16181d;
  --soft:#4c525e;
  --faint:#6b7280;   /* 4.67:1 on --bg */
  --bg:#fbfbfa;
  --card:#ffffff;
  --line:#e2e2df;
  --rule:#c9c9c4;
  --accent:#1f4f43;  /* 8.9:1 on --bg */
  --focus:#a8571f;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;background:var(--bg);color:var(--ink);
  font-family:"Charter","Bitstream Charter","Iowan Old Style",Georgia,serif;
  font-size:1.15rem;line-height:1.6;
}
.wrap{max-width:52rem;margin:0 auto;padding:0 1.5rem}
a{color:var(--accent);text-decoration:underline;text-underline-offset:2px;text-decoration-thickness:1px}
a:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.sans{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif}
.mono{font-family:ui-monospace,SFMono-Regular,"Cascadia Mono",Menlo,monospace;font-size:.92em}

.skip{position:absolute;left:-9999px}
.skip:focus{left:1rem;top:1rem;position:fixed;z-index:99;background:#fff;padding:.75rem 1rem;border:3px solid var(--focus);border-radius:5px}

/* ---------- header ---------- */
header{padding:4rem 0 2rem;border-bottom:3px solid var(--ink)}
h1{font-size:2.6rem;line-height:1.1;margin:0 0 .5rem;letter-spacing:-.015em;font-weight:600}
.role{font-size:1.3rem;color:var(--soft);margin:0 0 1.4rem}
.meta{font-size:1rem;color:var(--faint);margin:0;display:flex;flex-wrap:wrap;gap:.4rem 1.4rem}
.meta a{color:var(--accent)}

/* the hand-drawn mark, beside the name on wide screens */
.hero{display:flex;gap:1.8rem;align-items:flex-start}
.hero .mark{flex:0 0 auto;width:5.5rem;height:5.5rem;border-radius:50%;border:2px solid var(--ink);
  background:#fff;overflow:hidden}
.hero .mark img{width:100%;height:100%;object-fit:cover;display:block}
@media (max-width:30rem){.hero .mark{display:none}}

/* ---------- nav ---------- */
nav.site{position:sticky;top:0;background:rgba(251,251,250,.96);backdrop-filter:blur(6px);
    border-bottom:1px solid var(--line);z-index:10;padding:.7rem 0}
nav.site ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:.3rem 1.3rem;
       font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;font-size:.95rem}
nav.site a{text-decoration:none;color:var(--soft);padding:.35rem 0;display:inline-block}
nav.site a:hover{color:var(--ink);text-decoration:underline}
nav.site a[aria-current="page"]{color:var(--ink);font-weight:600}

main{padding:2.5rem 0 3rem}
section{margin:0 0 3.5rem;scroll-margin-top:4rem}
h2{font-size:1.05rem;text-transform:uppercase;letter-spacing:.11em;font-weight:700;
   color:var(--faint);margin:0 0 1.3rem;padding-bottom:.5rem;border-bottom:1px solid var(--rule);
   font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif}
h3{font-size:1.25rem;margin:0 0 .2rem;font-weight:600}
p{margin:0 0 1.1rem;color:var(--soft)}
.lede{font-size:1.3rem;color:var(--ink);line-height:1.5}

/* ---------- proof numbers ---------- */
.proof{display:grid;grid-template-columns:repeat(auto-fit,minmax(11rem,1fr));gap:.8rem;
  list-style:none;padding:0;margin:0 0 1.5rem}
.proof li{background:var(--card);border:1px solid var(--line);border-radius:5px;padding:1rem 1.1rem}
.proof .n{display:block;font-size:2rem;font-weight:600;line-height:1.1;color:var(--ink);letter-spacing:-.01em}
.proof .l{display:block;font-size:.95rem;color:var(--soft);margin-top:.3rem;
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif}

/* ---------- services / practice ---------- */
.practice{list-style:none;padding:0;margin:0}
.practice li{padding:.95rem 0;border-bottom:1px solid var(--line)}
.practice li:last-child{border-bottom:none}
.practice strong{display:block;font-size:1.1rem;margin-bottom:.15rem;color:var(--ink)}
.practice span{color:var(--soft);font-size:1.02rem}

/* ---------- buttons ---------- */
.cta{display:inline-block;background:var(--accent);color:#fff;text-decoration:none;
  padding:.7rem 1.2rem;border-radius:5px;font-weight:600;
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;font-size:1rem;
  margin:0 .6rem .6rem 0;min-height:2.75rem}
.cta:hover{background:#163a31}
.cta.quiet{background:transparent;color:var(--accent);border:1.5px solid var(--accent)}
.cta.quiet:hover{background:#eef3f1}

/* ---------- work items (CV) ---------- */
.item{margin:0 0 2.2rem}
.item .when{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  font-size:.92rem;color:var(--faint);margin:0 0 .5rem}
.item .where{color:var(--ink);font-weight:600}

/* ---------- games grid ---------- */
.games{display:grid;grid-template-columns:repeat(auto-fill,minmax(11rem,1fr));gap:.5rem;
  list-style:none;padding:0;margin:0 0 1.2rem}
.games li{background:var(--card);border:1px solid var(--line);border-radius:5px;
  padding:.6rem .85rem;font-size:1.02rem}
.games li span{display:block;font-size:.82rem;color:var(--faint);
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif}

/* ---------- linked rows (portfolio) ---------- */
.rows{list-style:none;padding:0;margin:0 0 1rem}
.rows li{border-bottom:1px solid var(--line)}
.rows li:last-child{border-bottom:none}
.rows a{display:flex;justify-content:space-between;gap:1rem;align-items:baseline;
  padding:.85rem 0;text-decoration:none;color:var(--ink)}
.rows a:hover .t{text-decoration:underline}
.rows .t{font-weight:600}
.rows .r{display:block;font-size:.9rem;color:var(--faint);font-weight:400;
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif}
.rows .s{flex:0 0 auto;text-align:right;font-size:.88rem;color:var(--faint);
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  font-variant-numeric:tabular-nums}
.rows .s b{display:block;font-weight:600;color:var(--soft)}
@media (max-width:30rem){
  .rows a{flex-direction:column;gap:.2rem}
  .rows .s{text-align:left}
  .rows .s b{display:inline}
}

/* ---------- history table (CV) ---------- */
.histwrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
table{border-collapse:collapse;width:100%;font-size:1rem;min-width:34rem}
th{text-align:left;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
   font-size:.82rem;text-transform:uppercase;letter-spacing:.07em;color:var(--faint);
   border-bottom:2px solid var(--rule);padding:0 1rem .5rem 0}
td{padding:.7rem 1rem .7rem 0;border-bottom:1px solid var(--line);vertical-align:top;color:var(--soft)}
td:first-child{color:var(--ink);font-weight:600}
td.yr{white-space:nowrap;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.9rem}
.nest{color:var(--faint);font-weight:400;padding-right:.15em}

.note{background:var(--card);border-left:4px solid var(--accent);padding:1rem 1.2rem;
  border-radius:0 5px 5px 0;font-size:1.02rem;margin:0 0 1.2rem}
.asof{font-size:.9rem;color:var(--faint);font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif}

footer{border-top:3px solid var(--ink);padding:2rem 0 3rem;font-size:1rem;color:var(--faint)}
footer a{color:var(--accent)}
footer .fine{font-size:.9rem;margin-top:.6rem}

@media (min-width:44rem){
  body{font-size:1.2rem}
  h1{font-size:3.2rem}
}

/* ---------- print: the CV page IS the CV ---------- */
@media print{
  :root{--bg:#fff;--card:#fff}
  body{font-size:10.5pt;line-height:1.35}
  nav.site,.skip,.cta,.hero .mark{display:none !important}
  .wrap{max-width:100%;padding:0}
  header{padding:0 0 .6rem;border-bottom:2px solid #000}
  h1{font-size:20pt}
  .role{font-size:11pt;margin-bottom:.4rem}
  main{padding:.8rem 0 0}
  section{margin:0 0 1rem;page-break-inside:avoid}
  h2{font-size:8.5pt;margin-bottom:.5rem}
  h3{font-size:11pt}
  p{margin:0 0 .5rem}
  .lede{font-size:11pt}
  .item{margin:0 0 .8rem}
  .games{grid-template-columns:repeat(4,1fr);gap:.2rem}
  .games li{border:none;padding:.1rem 0;font-size:9.5pt}
  .games li span{display:inline;font-size:9pt}
  a{color:#000;text-decoration:none}
  footer{border-top:1px solid #000;padding:.6rem 0 0}
}
