/* Layout concept: a CAD drawing sheet. Big condensed name, a sliced 3D-print cube with dimension lines, link groups as parts lists, a title block at the foot. */
:root {
  color-scheme: dark;
  --bg: #0b0a09;
  --panel: #14110f;
  --panel-2: #1c1814;
  --ink: #f4eee6;
  --muted: #a0968a;
  --line: #2e2721;
  --orange: #ff6a1a;
  --gold: #fdb813;
  --on-accent: #0b0a09;
  --grid: rgba(255, 106, 26, 0.055);
  --f-display: 'Big Shoulders Display', 'Arial Narrow', Impact, sans-serif;
  --f-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

body {
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }


.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 20px 56px;
}

.mono {
  font-family: var(--f-mono);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Top bar */
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.mark {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 2.25rem;
  letter-spacing: 0.06em;
  color: var(--gold);
}
.bar nav { display: flex; gap: 20px; flex-wrap: wrap; }
.bar nav a { color: var(--muted); transition: color 0.15s; }
.bar nav a:hover { color: var(--orange); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 30px;
  align-items: center;
  padding-block: 48px 56px;
}
.hero > * { min-width: 0; }
.eyebrow { margin: 0 0 20px; color: var(--orange); }
h1 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(3.6rem, 12.5vw, 8.6rem);
  line-height: 0.86;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}
h1 span { display: block; }
h1 .hot {
  color: var(--gold);
  background: linear-gradient(95deg, var(--gold) 15%, var(--orange) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tagline {
  margin: 28px 0 0;
  max-width: 28ch;
  font-size: clamp(1.2rem, 3.4vw, 1.6rem);
  font-weight: 500;
  line-height: 1.3;
  text-wrap: balance;
}
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--orange);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn.solid { background: var(--orange); color: var(--on-accent); }
.btn.solid:hover { background: var(--gold); border-color: var(--gold); }
.btn.ghost { color: var(--ink); }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold); }

.part { width: 100%; height: auto; max-width: 440px; justify-self: center; display: block; }
.part .face-l { fill: var(--panel); }
.part .face-r { fill: var(--panel-2); }
.part .face-t { fill: var(--gold); fill-opacity: 0.16; animation: pulse 3.2s ease-in-out infinite; }
.part .edge { stroke: var(--orange); stroke-width: 1.5; fill: none; stroke-linejoin: round; }
.part .layer { stroke: var(--orange); stroke-opacity: 0.38; stroke-width: 1; }
.part .top-edge { stroke: var(--gold); stroke-width: 2; fill: none; stroke-linejoin: round; }
.part .dim { stroke: var(--muted); stroke-width: 1; fill: none; }
.part text { font-family: var(--f-mono); font-size: 11px; fill: var(--muted); letter-spacing: 0.06em; }
.part .dot { fill: var(--gold); }
@keyframes pulse { 0%, 100% { fill-opacity: 0.1; } 50% { fill-opacity: 0.3; } }

/* Sections */
section { padding-block: 40px 8px; }
.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
h2 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}


/* resume */
.groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.group { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.group > .mono { color: var(--orange); }
.resume {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
  align-items: center;
  padding: 20px 20px 25px;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.resume:hover { border-color: var(--orange); background: var(--panel-2); transform: translateY(-2px); }
.resume strong {
  grid-column: 1;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.7rem;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.resume .domain { grid-column: 1; font-family: var(--f-mono); font-size: 0.82rem; color: var(--gold); overflow-wrap: anywhere; }
.resume .note { grid-column: 1; color: var(--muted); font-size: 0.95rem; }
.resume .go { grid-column: 2; grid-row: 1 / span 3; color: var(--orange); transition: transform 0.15s, color 0.15s; }
.resume:hover .go { color: var(--gold); transform: translate(3px, -3px); }

p {font-size: 20px}

/* certifications */
.groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.group { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.group > .mono { color: var(--orange); }
.resume {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
  align-items: center;
  padding: 20px 20px 25px;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.certifications:hover { border-color: var(--orange); background: var(--panel-2); transform: translateY(-2px); }
.certifications strong {
  grid-column: 1;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.7rem;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.certifications .domain { grid-column: 1; font-family: var(--f-mono); font-size: 0.82rem; color: var(--gold); overflow-wrap: anywhere; }
.certifications .note { grid-column: 1; color: var(--muted); font-size: 0.95rem; }
.certifications .go { grid-column: 2; grid-row: 1 / span 3; color: var(--orange); transition: transform 0.15s, color 0.15s; }
.certifications:hover .go { color: var(--gold); transform: translate(3px, -3px); }



/* Web properties */
.groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.group { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.group > .mono { color: var(--orange); }
.site {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
  align-items: center;
  padding: 20px 20px 25px;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.site:hover { border-color: var(--orange); background: var(--panel-2); transform: translateY(-2px); }
.site strong {
  grid-column: 1;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.7rem;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.site .domain { grid-column: 1; font-family: var(--f-mono); font-size: 0.82rem; color: var(--gold); overflow-wrap: anywhere; }
.site .note { grid-column: 1; color: var(--muted); font-size: 0.95rem; }
.site .go { grid-column: 2; grid-row: 1 / span 3; color: var(--orange); transition: transform 0.15s, color 0.15s; }
.site:hover .go { color: var(--gold); transform: translate(3px, -3px); }

/* Interests */
.interests { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.interest { background: var(--bg); padding: 26px 22px 28px; min-width: 0; }
.interest svg { width: 34px; height: 34px; color: var(--gold); display: block; margin-bottom: 18px; }
.interest h3 {
  margin: 0 0 6px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.55rem;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.interest p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* Follow */
.follow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  background: var(--panel);
  min-width: 0;
  transition: border-color 0.15s, background 0.15s;
}
.row:hover { border-color: var(--orange); background: var(--panel-2); }
.row > div { min-width: 0; }
.row .mono { display: block; margin-bottom: 2px; }
.row b { font-weight: 600; font-size: 1.12rem; overflow-wrap: anywhere; }
.row svg { flex: none; color: var(--orange); }
.row:hover svg { color: var(--gold); }

/* Title block */
.titleblock {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  border: 1px solid var(--muted);
}
.titleblock > div { padding: 12px 16px 14px; border-left: 1px solid var(--line); min-width: 0; }
.titleblock > div:first-child { border-left: 0; }
.titleblock .mono { display: block; font-size: 0.62rem; margin-bottom: 4px; }
.titleblock b { font-family: var(--f-display); font-weight: 800; font-size: 1.3rem; letter-spacing: 0.04em; text-transform: uppercase; overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) {
  .part .face-t { animation: none; fill-opacity: 0.2; }
  .site, .site .go, .btn, .row { transition: none; }
  .site:hover { transform: none; }
  .site:hover .go { transform: none; }
}

@media (max-width: 820px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-block: 36px 40px; }
  .part { max-width: 340px; justify-self: start; }
  .groups, .follow { grid-template-columns: minmax(0, 1fr); }
  .interests { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .titleblock { grid-template-columns: 1fr 1fr; }
  .titleblock > div:nth-child(3) { border-left: 0; }
  .titleblock > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 460px) {
  .interests { grid-template-columns: minmax(0, 1fr); }
  .bar nav { gap: 14px; }
}

/* ==========================================================================
   Blog (Journal)
   ========================================================================== */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--on-accent); padding: 10px 16px;
  font-family: var(--f-mono); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.skip-link:focus { top: 12px; }

.bar nav a[aria-current="page"] { color: var(--orange); }

.page-head { padding-block: 48px 28px; border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.page-title {
  font-size: clamp(2.6rem, 8vw, 5.2rem);
  line-height: 0.92;
  max-width: 18ch;
}
.page-head .eyebrow, .page-head .entry-meta { margin: 0 0 16px; color: var(--orange); }
.lede { margin: 16px 0 0; max-width: 56ch; color: var(--muted); font-size: 1.1rem; }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: border-color 0.15s, background 0.15s;
}
.card:hover { border-color: var(--orange); background: var(--panel-2); }
.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card .entry-meta { margin: 0; color: var(--orange); }
.card-title {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.9rem;
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.card-title a:hover { color: var(--gold); }
.card-excerpt { margin: 0; color: var(--muted); }
.more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; color: var(--gold); }
.more svg { color: var(--orange); }
.empty { color: var(--muted); font-size: 1.1rem; }

.entry { max-width: 760px; margin: 0 auto; }
.entry-hero { margin: 0 0 36px; border: 1px solid var(--line); }
.entry-hero img { display: block; width: 100%; }
.entry-tags { margin-top: 36px; display: flex; gap: 8px; flex-wrap: wrap; }
.entry-tags span { padding: 4px 10px; border: 1px solid var(--line); color: var(--gold); }

.entry-content { font-size: 1.1rem; line-height: 1.7; overflow-wrap: break-word; }
.entry-content > * + * { margin-top: 1.25em; }
.entry-content > * { margin-block-end: 0; }
.entry-content p { margin-top: 1.25em; margin-bottom: 0; }
.entry-content a { color: var(--gold); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--orange); }
.entry-content h2, .entry-content h3, .entry-content h4 { font-family: var(--f-display); text-transform: uppercase; line-height: 1.05; margin: 1.8em 0 0; }
.entry-content h2 { font-size: 2.3rem; }
.entry-content h3 { font-size: 1.8rem; font-weight: 800; letter-spacing: 0.02em; }
.entry-content h4 { font-size: 1.4rem; font-weight: 800; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; margin: 1.25em 0 0; }
.entry-content li + li { margin-top: 0.4em; }
.entry-content li::marker { color: var(--orange); }
.entry-content blockquote {
  margin: 1.25em 0 0; padding: 4px 0 4px 22px;
  border-left: 3px solid var(--orange); color: var(--ink); font-size: 1.25rem; font-weight: 500;
}
.entry-content blockquote p { margin: 0; }
.entry-content code { font-family: var(--f-mono); font-size: 0.88em; background: var(--panel-2); border: 1px solid var(--line); padding: 1px 6px; color: var(--gold); }
.entry-content pre { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); padding: 18px 20px; font-family: var(--f-mono); font-size: 0.88rem; line-height: 1.6; margin: 1.25em 0 0; }
.entry-content pre code { background: none; border: 0; padding: 0; color: var(--ink); }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin-block: 2.4em; }
.entry-content img { display: block; border: 1px solid var(--line); margin-top: 1.25em; }
.entry-content figure { margin: 1.25em 0 0; }
.entry-content figure img { margin-top: 0; }
.entry-content figcaption { margin-top: 8px; font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 0.97rem; display: block; overflow-x: auto; margin-top: 1.25em; }
.entry-content th { text-align: left; background: var(--panel-2); color: var(--gold); font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 14px; }

.post-nav { max-width: 760px; margin: 56px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.post-nav a {
  display: flex; flex-direction: column; gap: 4px; height: 100%; min-width: 0;
  padding: 16px 18px; border: 1px solid var(--line); background: var(--panel);
  font-family: var(--f-display); font-weight: 800; font-size: 1.5rem; line-height: 1.1; text-transform: uppercase;
  overflow-wrap: anywhere;
}
.post-nav a:hover { border-color: var(--orange); }
.post-nav .next { text-align: right; grid-column: 2; }
.post-nav .prev { grid-column: 1; }
.back { display: inline-flex; align-items: center; gap: 8px; margin-top: 40px; color: var(--gold); }

.not-found .cta { margin-top: 24px; }

@media (max-width: 820px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 460px) {
  .post-nav { grid-template-columns: minmax(0, 1fr); }
  .post-nav .next { grid-column: 1; text-align: left; }
}
