/* Portfolio layer. The original dark/green identity and serif/mono pairing remain. */
:root {
  --gray: #aaa;
  --gray-light: #c6c6c6;
  --border: #303332;
  --space-1: .5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --content-width: 1320px;
  --radius: 4px;
  --shadow-soft: 0 12px 30px #0002;
  --font-body: 'DM Mono', monospace;
  --font-heading: 'DM Serif Display', serif;
  --text-small: .8rem;
  --text-body: .94rem;
  --transition: 160ms ease;
}
body { font-weight: 400; line-height: 1.65; overflow-x: visible; }
body::after { opacity: .012 !important; }
main { max-width: var(--content-width); margin-inline: auto; padding-top: 0; }
main:focus { outline: none; }
:where(a, button, input, summary, select):focus-visible { outline: 2px solid var(--green); outline-offset: 5px; }
a { text-underline-offset: .22em; }
:where(.article-body, .approach-body, .skills-note) a { color: var(--green); }
:where(h1,h2,h3) { font-weight: 400; text-wrap: balance; }
:where(p, a, h1, h2, h3, dd) { overflow-wrap: break-word; }
:where(section, h2, .practice-row) { scroll-margin-top: 6rem; }
.skip-link { position: fixed; top: .5rem; left: 1rem; padding: .75rem 1rem; background: var(--green); color: var(--black); z-index: 1000; transform: translateY(-180%); }
.skip-link:focus { transform: none; }
/* Scope navigation so nested navigation cannot inherit the site header geometry. */
.site-nav { position: sticky; top: 0; padding: .6rem max(var(--gutter), calc((100vw - var(--content-width)) / 2 + var(--gutter))); min-height: 72px; gap: var(--space-3); }
.nav-logo { flex-shrink: 0; font-size: 1.25rem; display: inline-flex; align-items: center; gap: .25em; min-height: 44px; }
.nav-links { gap: clamp(.75rem, 2vw, 1.75rem); }
.nav-links a { font-size: .72rem; letter-spacing: .06em; min-height: 44px; display: flex; align-items: center; border-bottom: 2px solid transparent; }
.nav-links a.active { border-bottom-color: var(--green); }
.menu-toggle { display: none; font: inherit; color: var(--white); border: 1px solid var(--border); background: var(--card); min-height: 44px; padding: .5rem .9rem; border-radius: var(--radius); }
.page-header, .trip-hero { padding: var(--space-5) var(--gutter); }
.page-title { line-height: 1.1; font-size: clamp(2.4rem, 5vw, 4.2rem); }
.page-sub, .trip-sub, .page-desc { max-width: 66ch; font-size: var(--text-body); line-height: 1.85; }
.breadcrumb { opacity: 1; animation: none; font-size: .72rem; letter-spacing: .06em; }
.breadcrumb a, .back-link { display: inline-flex; align-items: center; min-height: 44px; }
.breadcrumb span { opacity: 1; }
.back-link { font-size: .75rem; }
footer { max-width: var(--content-width); margin-inline: auto; padding: var(--space-4) var(--gutter); }
footer p, .footer-mark { color: var(--gray) !important; font-size: .75rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--gray-light); font-size: .75rem; }
.btn { border-radius: var(--radius); min-height: 44px; display: inline-flex; justify-content: center; align-items: center; font-size: .75rem; letter-spacing: .06em; transition: background var(--transition), color var(--transition); }
.btn-primary { background: var(--green); color: var(--black); }
.btn-primary:hover { background: #77db98; }
.hero { min-height: 0; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); padding: clamp(3rem,7vw,6rem) var(--gutter) var(--space-6); gap: clamp(2rem,6vw,6rem); }
.hero-title { font-size: clamp(3rem,5.7vw,5.3rem); line-height: 1.04; }
.hero-label { font-size: .72rem; letter-spacing: .12em; }
.hero-sub { font-size: var(--text-body); max-width: 52ch; }
.hero-sub strong { font-weight: 500; color: var(--white); }
.hero-sub--secondary { font-size: .86rem; margin-top: 1rem; }
.hero-cta { flex-wrap: wrap; }
.hero-left { position: relative; z-index: 1; }
.hero-illustration { top: 52%; right: -6%; width: 47%; opacity: .35; animation: none; }
.hero-illustration circle:first-child { animation: none; }
.now-panel { position: relative; z-index: 1; padding: var(--space-4); border: 1px solid var(--border); border-top: 2px solid var(--green); background: #111e; border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.now-panel h2 { font-family: var(--font-heading); font-size: clamp(1.8rem,3vw,2.5rem); line-height: 1.2; margin: 1.25rem 0; }
.now-panel dl > div { padding: 1rem 0; border-top: 1px solid var(--border); }
.now-panel dl > div:last-child { padding-bottom: 0; }
.now-panel dt { color: var(--gray); font-size: .7rem; margin-bottom: .5rem; }
.now-panel dd { margin: 0; font-size: .82rem; color: var(--white); line-height: 1.8; }
.now-panel dd span { display: block; color: var(--gray); font-size: .75rem; }
.now-panel a { color: var(--white); text-decoration-color: #50c87870; }
.now-panel a:hover { color: var(--green); }
.home-section { padding: var(--space-5) var(--gutter); border-top: 1px solid var(--border); }
.section-header { flex-wrap: wrap; gap: .6rem 1.5rem; }
.section-label { font-size: .68rem; letter-spacing: .1em; }
.section-title { font-size: clamp(1.6rem,3vw,2rem); }
.featured-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: var(--space-2); }
.project-preview { display: flex; flex-direction: column; padding: 1.6rem; border: 1px solid var(--border); background: var(--dark); border-radius: var(--radius); text-decoration: none; color: var(--white); transition: border-color var(--transition), background var(--transition); }
.project-preview h3, .explore-link h3 { font-family: var(--font-heading); font-size: 1.65rem; line-height: 1.3; margin: 1rem 0; }
.project-preview h3 span, .explore-link h3 span { float: right; color: var(--green); font-family: var(--font-body); font-size: 1rem; }
.project-preview > p:not(.card-tag), .explore-link p { color: var(--gray); font-size: .82rem; line-height: 1.85; }
.project-preview .text-link { margin-top: auto; padding-top: 1.5rem; }
.project-preview:hover, .project-preview:focus-visible { background: var(--card); border-color: var(--green); }
.card-tag, .trip-tag { font-size: .65rem; letter-spacing: .07em; line-height: 1.8; }
.text-link, .section-links a { color: var(--green); font-size: .78rem; text-underline-offset: .25em; }
.text-link { display: inline-block; margin-top: 1.25rem; }
.section-links { display: flex; gap: .5rem 2rem; flex-wrap: wrap; margin-top: 1.25rem; }
.section-links a { display: inline-flex; align-items: center; min-height: 44px; }
.explore-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 3rem; }
.explore-link { padding: 1.5rem 0; border-top: 1px solid var(--border); color: var(--white); text-decoration: none; }
.explore-index { font-size: .7rem; color: var(--green); }
.explore-link h3 { font-size: 1.5rem; margin: .5rem 0; }
.explore-link:hover h3 { color: var(--green); }
.contact-section { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.contact-section .collection-intro { margin: 1rem 0 0; }
.contact-links .contact-links-label { display: none; }
.social-link { font-size: .8rem; min-height: 48px; letter-spacing: 0; }
.social-link .arrow { opacity: 1; transform: none; }
.social-link img { filter: grayscale(1) brightness(1.5); }
/* Existing collection and diary components. */
.trips-section, .school-section, .journal-section { padding-inline: var(--gutter); }
.trips-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,300px),1fr)); gap: var(--space-2); background: none; border: 0; }
.trip-card { border: 1px solid var(--border); border-radius: var(--radius); transition: border-color var(--transition), background var(--transition); }
.trip-card:hover, .trip-card:focus-visible { border-color: var(--green); }
.trip-img { filter: saturate(.8) brightness(.85); transition: filter var(--transition), transform var(--transition); }
.trip-card:hover .trip-img { filter: none; transform: scale(1.025); }
.trip-img-placeholder { opacity: .7; }
.trip-desc, .card-desc, .collection-intro { font-size: .84rem; line-height: 1.85; }
.trip-arrow, .card-arrow { opacity: 1; transform: none; background: var(--black); padding: .2rem .45rem; border-radius: var(--radius); }
.trip-card .trip-title { font-size: 1.6rem; line-height: 1.25; }
.trip-badge { font-size: .65rem; }
.article-body { font-size: var(--text-body); max-width: 880px; }
.article-body .stack-strip { gap: .5rem; background: none; border: none; }
.stack-tag { border: 1px solid var(--border); border-radius: var(--radius); font-size: .72rem; }
.repo-note { max-width: 784px; margin: 0 auto 3rem; padding: 1.5rem; font-size: .9rem; }
.repo-note h2 { font-family: var(--font-heading); margin-bottom: 1rem; }
.repo-note p + p { margin-top: 1rem; }
.related-skills { border-top: 1px solid var(--border); margin-top: 2rem; padding-top: 1.5rem; }
.project-list li a { min-height: 44px; font-size: .82rem; }
/* About: retain the editorial two-column structure, simplify decoration. */
.about-wrapper { max-width: 1160px; padding: 0 var(--gutter) 4rem; }
.about-hero { padding-top: var(--space-5); padding-bottom: var(--space-5); }
.about-hero .breadcrumb { grid-column: 1/-1; margin-bottom: 0; }
.about-hero h1 { font-size: clamp(3rem,7vw,5.5rem); line-height: 1; }
.hero-meta p { font-size: .72rem; letter-spacing: .06em; }
.bio-intro, .bio-approach { padding-top: 3rem; padding-bottom: 3rem; }
.approach-body { font-size: .9rem; }
.approach-body + .approach-body { margin-top: 1.25rem; }
.edu-card { gap: .6rem; }
.edu-card-status { font-size: .65rem; line-height: 1.8; }
.edu-card-degree { font-size: 1.2rem; line-height: 1.4; }
.degree-plus { color: var(--green); }
.interests-section { border-top: 0; }
.interests-grid { gap: 1rem; border: 0; background: none; }
.interest-card { padding: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius); }
.interest-card::before { content: none; }
.interest-desc { font-size: .82rem; }
.cta-row { margin-top: 3rem; }
/* Skills deliberately use evidence and context, never scores. */
.practice-list { padding: 0 var(--gutter) 3rem; max-width: 1180px; margin-inline: auto; }
.practice-row { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.4fr); gap: 3rem; padding-block: 2.5rem; border-bottom: 1px solid var(--border); }
.practice-row h2 { font-family: var(--font-heading); font-size: 1.85rem; margin-top: .75rem; line-height: 1.3; }
.practice-row p:not(.section-label), .skills-note p { font-size: .9rem; line-height: 1.9; color: var(--gray-light); }
.skills-note { padding: 1.5rem; border: 1px solid var(--border); background: var(--dark); margin-top: 3rem; border-radius: var(--radius); }
.skills-note h2 { font-family: var(--font-heading); font-size: 1.4rem; margin-bottom: 1rem; }
.skills-note p + p { margin-top: 1rem; }
@keyframes settle { from { transform: translateY(6px); } to { transform: none; } }
.collection-intro a { color: var(--green); }
/* Content is visible by default, including with JS disabled or motion reduced. */
.card, .trip-card, .year-block, .photo-item, .bio-intro, .bio-approach, .interests-header, .interest-card, .cta-row, .stack-strip,
.hero-label, .hero-title, .hero-sub, .hero-cta, .hero-right, .hero-eyebrow, .hero-meta, .about-hero h1, .page-desc, .page-title--lg { opacity: 1; transform: none; animation: none; }
@media (min-width: 761px) and (prefers-reduced-motion: no-preference) {
  .hero-left, .now-panel { animation: settle 250ms ease; }
}
@media (max-width: 1000px) { .hero { gap: 2rem; } .now-panel { padding: 1.5rem; } .featured-grid { gap: .75rem; } .project-preview { padding: 1.25rem; } }
@media (max-width: 760px) {
  .site-nav, .content-page .site-nav { padding: .6rem var(--gutter); flex-wrap: wrap; gap: .25rem 1rem; }
  .menu-toggle:not([hidden]) { display: inline-flex; align-items: center; gap: .75rem; }
  .nav-links, .content-page .nav-links { width: 100%; flex-wrap: wrap; gap: 0; padding-top: .5rem; }
  .nav-links li { flex: 1 0 33%; }
  .nav-links a, .content-page .nav-links a { padding: .6rem .5rem; font-size: .75rem; }
  .nav-enhanced .nav-links { display: none; }
  .nav-enhanced .nav-links.is-open { display: flex; }
  .hero { grid-template-columns: minmax(0,1fr); padding-block: 2.5rem; }
  .hero-illustration { display: none; }
  .hero-sub { max-width: none; }
  .now-panel { padding: 1.25rem; }
  .now-panel h2 { font-size: 1.75rem; }
  .now-panel h2 br { display: none; }
  .featured-grid { grid-template-columns: minmax(0,1fr); gap: 1rem; }
  .project-preview { padding: 1.5rem; }
  .explore-grid, .contact-section, .practice-row { grid-template-columns: minmax(0,1fr); gap: 1.5rem; }
  .home-section { padding-block: 2.5rem; }
  .explore-grid { gap: 0; }
  .practice-row { padding-block: 2rem; }
  .about-hero { padding-top: 2rem; }
  .interests-grid { grid-template-columns: minmax(0,1fr); }
  .article-body { padding: 2rem var(--gutter); }
  .repo-note { margin-inline: var(--gutter); }
  .section-header { align-items: start; flex-direction: column; }
  .cta-buttons { flex-wrap: wrap; }
  .journal-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 380px) { .nav-links li { flex-basis: 50%; } .hero-title { font-size: 2.8rem; } .journal-gallery { grid-template-columns: minmax(0,1fr); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
