/*
Theme Name: In A Click IT CV
Theme URI: https://www.inaclickit.co.uk
Author: Shaun Miller
Author URI: https://www.inaclickit.co.uk
Description: A professional CV and portfolio theme for an infrastructure engineer. Spec-sheet hero, changelog-style experience timeline, segmented proficiency meters. Fully responsive, accessible, no page builder required.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: inaclickit-cv
Tags: cv, resume, portfolio, one-column, custom-menu, responsive
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */

:root {
  /* ---------------------------------------------------------------
   * Palette — "ops console, in daylight"
   * No pure white anywhere. Raised surfaces sit just above the page
   * rather than glaring off it, which is what makes long reading
   * comfortable. Every colour below has a dark-mode counterpart at
   * the bottom of this block.
   * ------------------------------------------------------------- */

  /* Surfaces */
  --paper:        #E7ECEF;   /* page background   */
  --paper-raised: #F2F5F7;   /* cards, panels     */
  --paper-hover:  #EDF1F4;   /* hover state       */

  /* Text */
  --ink:          #16293A;   /* headings, strong text */
  --ink-soft:     #22394D;   /* lede, quotes          */
  --slate:        #48596A;   /* body copy             */
  --slate-light:  #5A6D7C;   /* labels, captions      */

  /* Lines */
  --rule:         #D2DBE1;

  /* Accent */
  --signal:       #0E5A55;
  --signal-bright:#15807A;
  --signal-wash:  rgba(14, 90, 85, .08);
  --signal-ring:  rgba(14, 90, 85, .14);
  --on-accent:    #F4F8F8;
  --amber:        #A8681A;

  /* Solid fills — buttons, brand mark, panel headers */
  --solid-bg:     #16293A;
  --solid-fg:     #F1F5F7;

  /* Inverted bands — footer, download strip, code blocks */
  --band:         #152838;
  --band-text:    #A8BAC8;
  --band-dim:     #92A6B5;
  --band-head:    #F0F5F8;
  --band-rule:    #2B4055;
  --band-raised:  rgba(255, 255, 255, .04);

  /* Sticky header */
  --header-bg:    rgba(231, 236, 239, .86);
  --header-solid: rgba(231, 236, 239, .96);

  /* Notices */
  --ok-bd:   rgba(14, 90, 85, .32);
  --ok-bg:   rgba(14, 90, 85, .07);
  --ok-fg:   #0C4A46;
  --err-bd:  rgba(168, 104, 26, .36);
  --err-bg:  rgba(168, 104, 26, .08);
  --err-fg:  #7A4A12;

  /* Misc */
  --code-bg:     #DFE6EB;
  --placeholder: #93A3B0;

  /* Type */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Rhythm */
  --gutter: 1.25rem;
  --wrap: 1120px;
  --section-y: clamp(4rem, 9vw, 7.5rem);
  --radius: 2px;

  --shadow-panel: 0 1px 2px rgba(21, 40, 56, .05),
                  0 14px 34px -20px rgba(21, 40, 56, .30);

  color-scheme: light;
}

/* ---------------------------------------------------------------
 * Dark mode — follows the operating system setting automatically.
 * Same design, same contrast relationships, less light in the room.
 * ------------------------------------------------------------- */

@media (prefers-color-scheme: dark) {
  :root {
    --paper:        #101C25;
    --paper-raised: #17252F;
    --paper-hover:  #1C2C37;

    --ink:          #E7EEF3;
    --ink-soft:     #CBD9E3;
    --slate:        #A2B4C1;
    --slate-light:  #8A9EAD;

    --rule:         #26363F;

    --signal:       #46A69D;
    --signal-bright:#5CBFB5;
    --signal-wash:  rgba(70, 166, 157, .12);
    --signal-ring:  rgba(70, 166, 157, .22);
    --on-accent:    #08161A;
    --amber:        #D0A05A;

    --solid-bg:     #DFE9EF;
    --solid-fg:     #101C25;

    --band:         #0A1219;
    --band-text:    #9AAFBD;
    --band-dim:     #859AA9;
    --band-head:    #EAF1F6;
    --band-rule:    #21303B;
    --band-raised:  rgba(255, 255, 255, .03);

    --header-bg:    rgba(16, 28, 37, .86);
    --header-solid: rgba(16, 28, 37, .96);

    --ok-bd:   rgba(70, 166, 157, .36);
    --ok-bg:   rgba(70, 166, 157, .10);
    --ok-fg:   #7FCFC6;
    --err-bd:  rgba(208, 160, 90, .38);
    --err-bg:  rgba(208, 160, 90, .10);
    --err-fg:  #E0B478;

    --code-bg:     #1E2E38;
    --placeholder: #6B7E8C;

    --shadow-panel: 0 1px 2px rgba(0, 0, 0, .30),
                    0 14px 34px -20px rgba(0, 0, 0, .55);

    color-scheme: dark;
  }
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--slate);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--signal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--signal-bright); }

:focus-visible {
  outline: 2px solid var(--signal-bright);
  outline-offset: 3px;
  border-radius: var(--radius);
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 .6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 6.5vw, 4.1rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); letter-spacing: -0.01em; }
h4 { font-size: 1.0625rem; letter-spacing: -0.005em; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1.15em; padding-left: 1.25rem; }
li { margin-bottom: .4em; }

hr { border: 0; border-top: 1px solid var(--rule); margin: 3rem 0; }

blockquote {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* Screen-reader / skip link */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 999;
  background: var(--solid-bg);
  color: var(--solid-fg);
  padding: .75rem 1.15rem;
  font-family: var(--font-mono);
  font-size: .8rem;
  text-decoration: none;
  transition: top .18s ease;
}
.skip-link:focus { top: 1rem; color: var(--solid-fg); }

/* ==========================================================================
   3. Layout primitives
   ========================================================================== */

.wrap {
  width: min(100% - (var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
}
.wrap--narrow { max-width: 720px; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.section--paper { background: var(--paper-raised); }
.section--ink { background: var(--band); color: var(--band-text); }
.section + .section--paper { border-top: 1px solid var(--rule); }

.section--ink h2,
.section--ink h3,
.section--ink h4 { color: var(--band-head); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--signal);
  margin: 0 0 1rem;
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  flex: none;
}
.section--ink .eyebrow { color: var(--signal-bright); }

.section-head { max-width: 640px; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.section-head p { color: var(--slate); font-size: 1.0625rem; margin-bottom: 0; }
.section--ink .section-head p { color: var(--band-dim); }

.lede { font-size: clamp(1.1rem, 2vw, 1.28rem); line-height: 1.6; color: var(--ink-soft); }

/* ==========================================================================
   4. Buttons
   ========================================================================== */

.btn {
  --btn-bg: var(--solid-bg);
  --btn-fg: var(--solid-fg);
  --btn-bd: var(--solid-bg);
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .8rem 1.4rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover {
  --btn-bg: var(--signal);
  --btn-bd: var(--signal);
  color: var(--on-accent);
  transform: translateY(-1px);
}
.btn svg { width: 1em; height: 1em; flex: none; }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--rule); }
.btn--ghost:hover { --btn-bg: transparent; --btn-bd: var(--ink); color: var(--ink); }

.btn--onink { --btn-bg: var(--band-head); --btn-fg: var(--band); --btn-bd: var(--band-head); }
.btn--onink:hover { --btn-bg: var(--signal-bright); --btn-bd: var(--signal-bright); color: var(--on-accent); }

.btn--onink-ghost { --btn-bg: transparent; --btn-fg: var(--band-head); --btn-bd: var(--band-rule); }
.btn--onink-ghost:hover { --btn-bg: transparent; --btn-bd: var(--band-head); color: var(--band-head); }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* ==========================================================================
   5. Site header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--rule);
  background: var(--header-solid);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
}

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand__mark {
  width: 34px; height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--solid-bg);
  color: var(--solid-fg);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand__role {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--slate-light);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  background: none;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: .5rem .75rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle__bars { display: grid; gap: 3px; }
.nav-toggle__bars span {
  display: block; width: 15px; height: 1.5px; background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav li { margin: 0; }
.site-nav a {
  font-family: var(--font-display);
  font-size: .93rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  padding-block: .35rem;
  border-bottom: 1.5px solid transparent;
  transition: color .16s ease, border-color .16s ease;
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--signal); }
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a { color: var(--ink); border-bottom-color: var(--ink); }

/* CTA item — add class "nav-cta" to a menu item in Appearance > Menus */
.site-nav .nav-cta > a {
  background: var(--solid-bg);
  color: var(--solid-fg);
  padding: .6rem 1.05rem;
  border-radius: var(--radius);
  border-bottom: 0;
}
.site-nav .nav-cta > a:hover { background: var(--signal); color: var(--on-accent); border-bottom: 0; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    inset: 100% 0 auto 0;
    background: var(--paper-raised);
    border-block: 1px solid var(--rule);
    padding: .5rem var(--gutter) 1.5rem;
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--rule); }
  .site-nav li:last-child { border-bottom: 0; }
  .site-nav a { display: block; padding: .95rem 0; font-size: 1.05rem; border-bottom: 0; }
  .site-nav .nav-cta > a {
    display: inline-block;
    margin-top: 1rem;
    padding: .75rem 1.3rem;
  }
}

/* ==========================================================================
   6. Hero — the spec sheet
   ========================================================================== */

.hero { padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3.5rem, 8vw, 6rem); }

/* --------------------------------------------------------------------------
   Photographic hero. Adding .hero--photo turns the whole hero into a dark
   image band: the intro text flips to light, and the spec panel keeps its
   light surface so it reads as a card lifted off the photo.
   -------------------------------------------------------------------------- */

.hero--photo {
  position: relative;
  background-color: var(--band);
  overflow: hidden;
  isolation: isolate;
}

/* The photo sits on its own layer so it can be blurred without softening
   the text on top of it. Inset is negative and the layer is scaled slightly
   so the blur does not bleed transparent edges into the band. */
.hero--photo::before {
  content: "";
  position: absolute;
  inset: -28px;
  z-index: -2;
  background-image: var(--hero-img);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 6% center;
  filter: blur(3px);
  transform: scale(1.02);
}

.hero--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg,
      rgba(15, 28, 40, .93) 0%,
      rgba(15, 28, 40, .88) 34%,
      rgba(15, 28, 40, .74) 60%,
      rgba(15, 28, 40, .56) 100%);
}

.hero--photo .hero__name { color: var(--band-head); }
.hero--photo .hero__lede { color: var(--band-text); }
.hero--photo .hero__role { color: #7FD5CC; }
.hero--photo .status { color: var(--band-text); }
.hero--photo .specsheet { box-shadow: 0 24px 60px -28px rgba(0, 0, 0, .75); }

@media (max-width: 860px) {
  .hero--photo::before { background-position: 20% center; }
  .hero--photo::after {
    background:
      linear-gradient(180deg,
        rgba(15, 28, 40, .86) 0%,
        rgba(15, 28, 40, .92) 55%,
        rgba(15, 28, 40, .96) 100%);
  }
}

@media (prefers-color-scheme: dark) {
  .hero--photo::before { filter: blur(3px) brightness(.86); }
  .hero--photo::after {
    background:
      linear-gradient(100deg,
        rgba(8, 15, 21, .94) 0%,
        rgba(8, 15, 21, .90) 34%,
        rgba(8, 15, 21, .80) 60%,
        rgba(8, 15, 21, .62) 100%);
  }
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

.hero__name { margin-bottom: .35rem; }
.hero__role {
  font-family: var(--font-mono);
  font-size: clamp(.85rem, 1.6vw, 1rem);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--signal);
  margin: 0 0 1.6rem;
}
.hero__lede {
  font-size: clamp(1.08rem, 1.7vw, 1.25rem);
  line-height: 1.62;
  color: var(--ink-soft);
  max-width: 42ch;
  margin-bottom: 0;
}

/* Status pill */
.status {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--slate);
}
.status__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--signal-bright);
  box-shadow: 0 0 0 0 var(--signal-ring);
  animation: pulse 2.6s ease-out infinite;
  flex: none;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 var(--signal-ring); }
  70%  { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* The signature element: a hardware-style spec panel */
.specsheet {
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow-panel);
  overflow: hidden;
}
.specsheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem 1.25rem;
  background: var(--solid-bg);
  color: var(--solid-fg);
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.specsheet__head .status { color: var(--solid-fg); opacity: .72; }

.specsheet__photo {
  width: 100%;
  /* Square rather than landscape: portrait headshots are the common case,
     and a 4:3 frame crops the top of the head and the chin off one. */
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 50% 25%;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.specsheet dl { margin: 0; }
.specsheet__row {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: .85rem 1.25rem;
  border-bottom: 1px solid var(--rule);
}
.specsheet__row:last-child { border-bottom: 0; }
.specsheet dt {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--slate-light);
  padding-top: .18rem;
}
.specsheet dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.specsheet dd a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); }
.specsheet dd a:hover { color: var(--signal); border-bottom-color: var(--signal); }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .specsheet__row { grid-template-columns: 1fr; gap: .3rem; }
}

/* ==========================================================================
   7. Stat strip
   ========================================================================== */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.stat {
  padding: 1.5rem 1.35rem;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper-raised);
}
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: .45rem;
}
.stat__label {
  font-family: var(--font-mono);
  font-size: .69rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--slate-light);
}

/* ==========================================================================
   8. Capability cards
   ========================================================================== */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}
.card {
  background: var(--paper-raised);
  padding: 1.85rem 1.6rem;
  transition: background .2s ease;
}
.card:hover { background: var(--paper-hover); }
.card__index {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .12em;
  color: var(--signal);
  display: block;
  margin-bottom: 1.1rem;
}
.card h3 { margin-bottom: .5rem; }
.card p { font-size: .96rem; color: var(--slate); margin-bottom: 0; }

/* ==========================================================================
   9. Experience — changelog timeline
   ========================================================================== */

.timeline { margin: 0; padding: 0; list-style: none; }

.entry {
  display: grid;
  grid-template-columns: 10.5rem minmax(0, 1fr);
  gap: 2rem;
  padding-block: 2.1rem;
  border-top: 1px solid var(--rule);
  margin: 0;
  position: relative;
}
.entry:last-child { border-bottom: 1px solid var(--rule); }

.entry__meta { position: relative; padding-left: 1.35rem; }
.entry__meta::before {
  content: "";
  position: absolute;
  left: 3px; top: .5rem;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--paper-raised);
  border: 1.5px solid var(--signal);
}
.entry:first-child .entry__meta::before { background: var(--signal); }

.entry__date {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .06em;
  color: var(--ink);
  display: block;
  font-weight: 500;
}
.entry__tag {
  display: inline-block;
  margin-top: .5rem;
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--signal);
  background: var(--signal-wash);
  padding: .22rem .5rem;
  border-radius: var(--radius);
}

.entry__title { margin-bottom: .15rem; }
.entry__org {
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--slate-light);
  margin: 0 0 .9rem;
}
.entry__body { font-size: 1rem; }
.entry__body ul { margin-top: .8rem; padding-left: 1.1rem; }
.entry__body li::marker { color: var(--signal); }

@media (max-width: 700px) {
  .entry { grid-template-columns: 1fr; gap: .9rem; }
  .entry__meta { padding-left: 1.35rem; }
}

/* ==========================================================================
   10. Skills — segmented proficiency meters
   ========================================================================== */

.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem 3rem;
}
.skill__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .6rem;
}
.skill__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
}
.skill__level {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--slate-light);
}
.meter { display: flex; gap: 3px; }
.meter__seg {
  height: 8px;
  flex: 1;
  background: var(--rule);
  border-radius: 1px;
  transform: scaleY(.55);
  transform-origin: bottom;
  transition: transform .45s cubic-bezier(.2,.7,.3,1), background-color .45s ease;
  transition-delay: calc(var(--i, 0) * 35ms);
}
.is-visible .meter__seg { transform: scaleY(1); }
.is-visible .meter__seg--on { background: var(--signal); }
.section--ink .meter__seg { background: var(--band-rule); }
.section--ink .is-visible .meter__seg--on { background: var(--signal-bright); }

/* ==========================================================================
   11. Certifications
   ========================================================================== */

.certs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}
.cert { background: var(--paper-raised); padding: 1.5rem 1.4rem; }
.cert__year {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .11em;
  color: var(--signal);
  display: block;
  margin-bottom: .7rem;
}
.cert h4 { margin-bottom: .25rem; }
.cert p { font-size: .9rem; margin-bottom: 0; color: var(--slate); }

/* ==========================================================================
   12. Testimonials
   ========================================================================== */

.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.75rem;
}
.quote {
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.85rem 1.6rem;
  display: flex;
  flex-direction: column;
}
.quote__mark {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .12em;
  color: var(--signal);
  margin-bottom: 1rem;
}
.quote blockquote { font-size: 1rem; line-height: 1.62; flex: 1; }
.quote__by {
  margin-top: 1.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
}
.quote__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink);
}
.quote__co {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--slate-light);
}

/* ==========================================================================
   13. Download CV band
   ========================================================================== */

.cvband__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2.5rem;
  align-items: center;
}
.cvband p { color: var(--band-dim); margin-bottom: 0; max-width: 46ch; }
.cvband .btn-row { margin-top: 0; }

.cvfile {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  border: 1px solid var(--band-rule);
  border-radius: var(--radius);
  background: var(--band-raised);
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--band-dim);
}
.cvfile__icon {
  width: 38px; height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--band-rule);
  border-radius: var(--radius);
  color: var(--signal-bright);
}
.cvfile strong { display: block; color: var(--band-head); font-weight: 500; letter-spacing: .04em; }

@media (max-width: 800px) {
  .cvband__grid { grid-template-columns: 1fr; gap: 1.75rem; }
}

/* ==========================================================================
   14. Contact
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li {
  padding-block: 1.05rem;
  border-bottom: 1px solid var(--rule);
  margin: 0;
}
.contact-list li:first-child { border-top: 1px solid var(--rule); }
.contact-list dt, .contact-list .contact-list__label {
  display: block;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--slate-light);
  margin-bottom: .3rem;
}
.contact-list__value {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}
a.contact-list__value:hover { color: var(--signal); }

/* Form */
.form { display: grid; gap: 1.15rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: .45rem;
}
.field .req { color: var(--amber); }

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: .8rem .9rem;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field textarea { min-height: 160px; resize: vertical; line-height: 1.6; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--signal);
  box-shadow: 0 0 0 3px var(--signal-ring);
}
.field input::placeholder, .field textarea::placeholder { color: var(--placeholder); }

/* Honeypot */
.field--trap { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.notice {
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid;
  font-size: .96rem;
}
.notice--ok    { border-color: var(--ok-bd);  background: var(--ok-bg);  color: var(--ok-fg); }
.notice--error { border-color: var(--err-bd); background: var(--err-bg); color: var(--err-fg); }
.notice ul { margin: .5rem 0 0; padding-left: 1.1rem; }
.notice li { margin-bottom: .2rem; }

/* ==========================================================================
   15. Page banner (photo header)
   ========================================================================== */

.page-banner {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(230px, 30vw, 360px);
  padding-block: clamp(2.25rem, 5vw, 3.5rem);
  background-color: var(--band);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 68% 20%;   /* keeps the subject's face in frame
                                     when the banner crops vertically */
  overflow: hidden;
  isolation: isolate;
}

/* Scrim — the photo is mid-tone, so text needs a graded wash behind it
   rather than a flat tint, which would dull the image everywhere. */
.page-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg,
      rgba(21, 40, 56, .95) 0%,
      rgba(21, 40, 56, .90) 32%,
      rgba(21, 40, 56, .76) 62%,
      rgba(21, 40, 56, .46) 100%);
}

/* A lighter teal than the page accent — the deep one drops to 2.2:1 over
   the photo, which is unreadable. This clears AA across the whole banner. */
.page-banner .eyebrow { color: #7FD5CC; }
.page-banner h1 { color: var(--band-head); margin-bottom: .45rem; }
.page-banner .lede { color: var(--band-text); max-width: 46ch; }
.page-banner__inner { position: relative; width: 100%; }

/* Narrow screens crop the photo hard, so lift the scrim to keep contrast. */
@media (max-width: 720px) {
  .page-banner { background-position: 72% 18%; }
  .page-banner::after {
    background:
      linear-gradient(180deg,
        rgba(21, 40, 56, .82) 0%,
        rgba(21, 40, 56, .90) 60%,
        rgba(21, 40, 56, .95) 100%);
  }
}

@media (prefers-color-scheme: dark) {
  .page-banner::after {
    background:
      linear-gradient(100deg,
        rgba(10, 18, 25, .95) 0%,
        rgba(10, 18, 25, .89) 32%,
        rgba(10, 18, 25, .66) 62%,
        rgba(10, 18, 25, .44) 100%);
  }
  .page-banner { filter: brightness(.92); }
}

/* ==========================================================================
   16. Page & post content
   ========================================================================== */

.page-hero { padding-block: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 3vw, 2.5rem); }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin-bottom: .5rem; }
.page-hero .lede { max-width: 56ch; }

.entry-content { font-size: 1.075rem; }
.entry-content > * + * { margin-top: 1.15em; }
.entry-content h2 { margin-top: 2.2em; }
.entry-content h3 { margin-top: 1.8em; }
.entry-content img,
.entry-content figure { border-radius: var(--radius); }
.entry-content figcaption {
  font-family: var(--font-mono);
  font-size: .74rem;
  color: var(--slate-light);
  margin-top: .6rem;
}
.entry-content blockquote {
  border-left: 2px solid var(--signal);
  padding-left: 1.35rem;
  font-style: italic;
}
.entry-content table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.entry-content th, .entry-content td {
  text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--rule);
}
.entry-content th { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--slate-light); }
.entry-content code {
  font-family: var(--font-mono);
  font-size: .88em;
  background: var(--code-bg);
  padding: .12em .38em;
  border-radius: var(--radius);
}
.entry-content pre {
  background: var(--band); color: var(--band-text); padding: 1.25rem;
  border-radius: var(--radius); overflow-x: auto; font-size: .88rem;
}
.entry-content pre code { background: none; padding: 0; }

.post-card {
  padding-block: 2rem;
  border-bottom: 1px solid var(--rule);
}
.post-card:first-child { border-top: 1px solid var(--rule); }
.post-card h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-bottom: .4rem; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover { color: var(--signal); }
.post-meta {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--slate-light);
  margin-bottom: .7rem;
}

.pagination { margin-top: 2.5rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.pagination .page-numbers {
  display: grid; place-items: center;
  min-width: 2.4rem; height: 2.4rem; padding-inline: .6rem;
  border: 1px solid var(--rule); border-radius: var(--radius);
  font-family: var(--font-mono); font-size: .85rem;
  color: var(--ink); text-decoration: none; background: var(--paper-raised);
}
.pagination .page-numbers:hover { border-color: var(--ink); }
.pagination .current { background: var(--solid-bg); color: var(--solid-fg); border-color: var(--solid-bg); }

/* ==========================================================================
   17. Footer
   ========================================================================== */

.site-footer { background: var(--band); color: var(--band-dim); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.site-footer a { color: var(--band-text); text-decoration: none; }
.site-footer a:hover { color: var(--band-head); }

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--band-rule);
}
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; gap: 2rem; } }

.footer__name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--band-head);
  margin: 0 0 .35rem;
}
.footer__tag { font-size: .95rem; max-width: 34ch; margin: 0; }

.footer__title {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--signal-bright);
  margin: 0 0 1rem;
}
.footer__list { list-style: none; margin: 0; padding: 0; font-size: .95rem; }
.footer__list li { margin-bottom: .55rem; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.75rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  color: var(--band-dim);
}
.social { display: flex; gap: .6rem; list-style: none; margin: 0; padding: 0; }
.social a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--band-rule);
  border-radius: var(--radius);
  transition: border-color .16s ease, background .16s ease;
}
.social a:hover { border-color: var(--signal-bright); background: var(--signal-wash); }
.social svg { width: 16px; height: 16px; fill: currentColor; }

/* ==========================================================================
   18. Scroll reveal
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .meter__seg { transform: scaleY(1); }
  .status__dot { animation: none; }
}

/* ==========================================================================
   19. Print — the page itself should print as a clean CV
   ========================================================================== */

@media print {
  /* Force the light palette — otherwise printing from dark mode
     produces pale text on white paper. */
  :root {
    --paper: #fff; --paper-raised: #fff; --paper-hover: #fff;
    --ink: #000; --ink-soft: #000; --slate: #1a1a1a; --slate-light: #444;
    --rule: #b9b9b9;
    --signal: #000; --signal-bright: #000;
    --signal-wash: transparent; --signal-ring: transparent;
    --solid-bg: #fff; --solid-fg: #000; --on-accent: #000;
    --band: #fff; --band-text: #000; --band-dim: #333;
    --band-head: #000; --band-rule: #b9b9b9; --band-raised: transparent;
    --code-bg: #eee; --shadow-panel: none;
    color-scheme: light;
  }

  .site-header, .site-footer, .btn-row, .nav-toggle,
  .cvband, .form, .skip-link { display: none !important; }
  .page-banner { min-height: 0; background-image: none !important; padding-block: 0; }
  .page-banner::after { display: none; }
  .hero--photo::before, .hero--photo::after { display: none !important; }
  .hero--photo .hero__name, .hero--photo .hero__lede,
  .hero--photo .hero__role, .hero--photo .status { color: #000 !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .section { padding-block: 1.25rem; }
  .section--ink { background: #fff !important; color: #000 !important; }
  .section--ink h2, .section--ink h3 { color: #000 !important; }
  .specsheet, .card, .stat, .cert, .quote { box-shadow: none; }
  .entry { break-inside: avoid; page-break-inside: avoid; }
  a { color: #000; text-decoration: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
