/* 60goto10 — mid-century "atomic age" signage meets the home-computer era */

:root {
  --cream: #fbf5e6;
  --paper: #fffaf0;
  --ink: #2a2f45;
  --muted: #5d6275;
  --teal: #23a99b;
  --teal-soft: #c9ece5;
  --blue: #1d6fb8;
  --blue-deep: #134b80;
  --orange: #ea6a3a;
  --mustard: #f4b738;
  --rule: #cfe7e1;

  --f-body: "Atkinson Hyperlegible", system-ui, sans-serif;
  --f-head: "Grandstander", "Trebuchet MS", sans-serif;
  --f-script: "Yellowtail", cursive;
  --f-block: "Shrikhand", Georgia, serif;
  --f-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --measure: 40rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--cream); color: var(--ink); }
body {
  margin: 0;
  font: 400 1.0625rem/1.7 var(--f-body);
  max-width: 72rem;
  margin-inline: auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  overflow-x: hidden;
}

a { color: var(--blue); text-decoration-color: var(--mustard); text-decoration-thickness: .18em; text-underline-offset: .18em; }
a:hover { color: var(--orange); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* ---------- starbursts ---------- */
.star { width: .62em; height: .62em; fill: var(--orange); flex: none; }
.star.sm { width: .7rem; height: .7rem; vertical-align: -.05rem; margin: 0 .35rem; }

/* ---------- header ---------- */
.site-head {
  position: relative;
  min-height: 12.5rem;
  padding-top: 1.75rem;
}
.crumbs {
  font: 700 italic .95rem var(--f-head);
  display: flex; align-items: center; flex-wrap: wrap;
}
.crumbs a { text-decoration-thickness: .12em; }
.crumbs a:last-child { color: var(--orange); text-decoration-color: var(--orange); }

.logo {
  position: absolute;
  top: -1.25rem; right: -2.5rem;
  width: 27rem; height: 13.5rem;
  display: grid; place-items: center;
  text-decoration: none;
}
.logo .blob { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 10px 0 var(--teal-soft)); }
.logo .mark {
  position: relative;
  display: flex; align-items: baseline; gap: .1em;
  transform: rotate(-7deg) translate(-.5rem, .25rem);
  color: var(--paper);
  text-shadow: 3px 3px 0 var(--blue-deep), 5px 5px 0 rgba(19,75,128,.25);
}
.logo .num { font: 400 3.1rem/1 var(--f-block); letter-spacing: .01em; }
.logo .goto { font: 400 5.6rem/1 var(--f-script); margin: 0 .04em 0 -.02em; }
.logo .twinkle { position: absolute; width: 1.6rem; height: 1.6rem; fill: var(--mustard); top: 2.3rem; right: 6.2rem; transform-origin: center; animation: twinkle 3.6s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(.7) rotate(45deg); } }

.nav { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 4.25rem; }
.nav a {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .3rem 1rem .3rem .8rem;
  background: var(--paper);
  border: 2px solid var(--blue);
  color: var(--blue);
  font: 800 italic 1.05rem var(--f-head);
  text-decoration: none;
  transform: skewX(-12deg);
  box-shadow: 4px 4px 0 var(--teal-soft);
}
.nav a > * , .nav a { }
.nav .ln { font: 400 .78rem var(--f-mono); color: var(--orange); font-style: normal; }
.nav a:hover { background: var(--teal-soft); color: var(--blue-deep); }
.nav a[aria-current="page"] { background: var(--blue); color: var(--paper); box-shadow: 4px 4px 0 var(--mustard); }
.nav a[aria-current="page"] .ln { color: var(--mustard); }

/* ---------- headings ---------- */
h1, h2, h3 { font-family: var(--f-head); font-style: italic; font-weight: 700; color: var(--blue); line-height: 1.15; }
h1 b, h2 b, h3 b { font-weight: 800; color: var(--blue-deep); background: linear-gradient(transparent 62%, rgba(244,183,56,.55) 62%, rgba(244,183,56,.55) 90%, transparent 90%); }

.title { display: flex; align-items: center; gap: .4em; font-size: clamp(2.3rem, 5vw, 3.3rem); margin: 2.5rem 0 1.25rem; font-weight: 800; }
.title .star { width: .5em; height: .5em; }

.lede { font-size: 1.2rem; color: var(--muted); max-width: var(--measure); margin-top: -.25rem; }

.date { margin: .1rem 0 .7rem; font: 500 italic .95rem var(--f-head); color: var(--orange); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .35rem 1rem;
  background: var(--blue);
  color: var(--paper);
  font: 800 italic 1rem var(--f-head);
  text-decoration: none;
  transform: skewX(-12deg);
  box-shadow: 4px 4px 0 var(--teal-soft);
}
.btn svg { width: 1.4rem; height: .8rem; fill: currentColor; }
.btn:hover { background: var(--orange); color: var(--paper); box-shadow: 4px 4px 0 var(--mustard); }
.btn.alt { background: var(--teal); }

/* ---------- blog layout ---------- */
.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 17.5rem; gap: 2.5rem 3.5rem; }
.posts { max-width: var(--measure); }
.post-card { padding: 0 0 1.4rem; margin-bottom: 1.6rem; border-bottom: 2px solid var(--rule); }
.post-card h2 { font-size: 1.65rem; margin: 0; }
.post-card h2 a { display: inline-flex; align-items: center; gap: .4em; text-decoration-thickness: .1em; }
.post-card h2 .star { width: .55em; height: .55em; }
.post-card p { margin: .25rem 0 0; }

.aside { border-left: 2px solid var(--rule); padding-left: 2rem; margin-top: 2.75rem; }
.card { padding-bottom: 1.5rem; margin-bottom: 1.5rem; border-bottom: 2px solid var(--rule); }
.card:last-child { border-bottom: 0; }
.card h2 { display: flex; align-items: center; gap: .4em; font-size: 1.35rem; margin: 0 0 .5rem; }
.card h2 .star { width: .55em; height: .55em; }
.card p { margin: 0 0 1rem; font-size: 1rem; }
.mini-projects { list-style: none; padding: 0; margin: 0 0 1rem; }
.mini-projects li { display: flex; justify-content: space-between; gap: .5rem; padding: .3rem 0; border-bottom: 1px dashed var(--rule); font-size: .98rem; }
.pname { font-weight: 700; }
.pstatus { font: 500 italic .85rem var(--f-head); color: var(--teal); white-space: nowrap; }

/* ---------- prose ---------- */
.post, .page { max-width: var(--measure); }
.prose h2 { font-size: 1.6rem; margin: 2.2rem 0 .5rem; }
.prose h2::before { content: ""; display: inline-block; width: .55em; height: .55em; margin-right: .4em; background: var(--orange); clip-path: polygon(50% 0, 56.7% 37.5%, 91.7% 16.7%, 62.5% 43.3%, 100% 50%, 62.5% 56.7%, 91.7% 83.3%, 56.7% 62.5%, 50% 100%, 43.3% 62.5%, 8.3% 83.3%, 37.5% 56.7%, 0 50%, 37.5% 43.3%, 8.3% 16.7%, 43.3% 37.5%); }
.prose code { font: .92em var(--f-mono); background: var(--teal-soft); color: var(--blue-deep); padding: .05em .35em; border-radius: 3px; }
.prose pre { background: #20208f; color: #a5a5ff; padding: 1rem 1.25rem; overflow-x: auto; border-radius: 4px; box-shadow: 6px 6px 0 var(--teal-soft); }
.prose pre code { background: none; color: inherit; padding: 0; }
.prose img { max-width: 100%; height: auto; border: 3px solid var(--paper); box-shadow: 6px 6px 0 var(--teal-soft); }
.prose blockquote { margin: 1.5rem 0; padding: .25rem 1.25rem; border-left: 4px solid var(--mustard); font-style: italic; color: var(--muted); }
.back { margin-top: 2.5rem; }

/* ---------- projects ---------- */
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 1.75rem; margin-top: 2rem; }
.project {
  position: relative;
  background: var(--paper);
  border: 2px solid var(--blue);
  border-radius: 28px 6px 28px 6px;
  padding: 1.5rem 1.5rem 1.25rem;
  box-shadow: 7px 7px 0 var(--teal-soft);
}
.project h2 { font-size: 1.6rem; margin: .1rem 0 .5rem; }
.project h2 a { text-decoration-thickness: .1em; }
.project .pstatus { margin: 0; display: inline-block; background: var(--mustard); color: var(--ink); padding: .1rem .6rem; border-radius: 999px; font-size: .8rem; }
.project p { margin: 0 0 1rem; font-size: 1rem; }
.project .links { display: flex; gap: .75rem; flex-wrap: wrap; margin: 0; }
.project .links:empty { display: none; }

/* ---------- footer ---------- */
.site-foot { margin: 5rem 0 2.5rem; padding-top: 1.75rem; border-top: 2px solid var(--rule); text-align: center; font-size: .95rem; }
.site-foot p { margin: .4rem 0; }
.ready { font: 1rem/1.5 var(--f-mono); color: var(--teal); text-align: left; display: inline-block; margin-bottom: 1rem !important; }
.cursor { display: inline-block; width: .6em; height: 1em; background: var(--teal); vertical-align: -.15em; margin-left: .2em; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.small { color: var(--muted); font-size: .85rem; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .with-aside { grid-template-columns: 1fr; }
  .with-aside { row-gap: 0; }
  .post-card:last-child { border-bottom: 0; }
  .aside { border-left: 0; padding-left: 0; border-top: 2px solid var(--rule); padding-top: 1.5rem; margin-top: 0; }
}
@media (max-width: 720px) {
  .site-head { min-height: 0; display: flex; flex-direction: column; align-items: center; padding-top: 1rem; }
  .crumbs { order: 1; }
  .logo { position: relative; top: auto; right: auto; order: 2; width: min(22rem, 100%); height: 11rem; margin-top: .25rem; }
  .logo .num { font-size: 2.5rem; }
  .logo .goto { font-size: 4.5rem; }
  .logo .twinkle { top: 1.8rem; right: 4.6rem; width: 1.3rem; height: 1.3rem; }
  .nav { order: 3; margin-top: 1.25rem; justify-content: center; }
  .title { margin-top: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .logo .twinkle, .cursor { animation: none; }
}
