@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
 --ink: #14211f;
 --muted: #63716c;
 --paper: #f2f1ea;
 --cream: #f8f7f1;
 --lime: #d8f25b;
 --coral: #f27f63;
 --line: #d6d9ce;
 --mono: 'DM Mono', monospace;
 --display: 'Space Grotesk', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--display); }
a { color: inherit; text-decoration: none; }

.site-header { display: flex; justify-content: space-between; align-items: center; max-width: 1240px; margin: auto; padding: 28px 5vw; }
.brand { font-size: 1.35rem; font-weight: 700; letter-spacing: -.06em; }
.brand span { color: var(--coral); }
nav { display: flex; align-items: center; gap: 32px; font-size: .83rem; font-weight: 600; }
.nav-contact { border-bottom: 1px solid var(--ink); padding-bottom: 4px; }

.hero, .journal-section, .projects-section, .resume-section { max-width: 1240px; margin: auto; padding-left: 5vw; padding-right: 5vw; }
.hero { min-height: 650px; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 7vw; padding-top: 75px; padding-bottom: 88px; }
.eyebrow, .article-meta, .project-meta, .resume-label, .note-top, .stats-strip span { color: var(--muted); font: 500 .68rem var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.pulse { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 5px #f27f6325; }
h1, h2, h3, p, ul { margin-top: 0; }
h1 { max-width: 720px; margin: 24px 0; font-size: clamp(3.5rem, 7.5vw, 7.4rem); line-height: .91; letter-spacing: -.085em; }
h1 em, h2 em { color: var(--coral); font-style: normal; }
.hero-intro { max-width: 470px; color: var(--muted); font-size: 1.05rem; line-height: 1.6; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 36px; }
.social-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 24px; }
.social-link { display: inline-flex; align-items: center; padding-bottom: 4px; border-bottom: 1px solid var(--ink); font-size: .8rem; font-weight: 700; }
.button { display: inline-flex; align-items: center; gap: 18px; padding: 16px 19px; font-size: .78rem; font-weight: 700; }
.button-dark { color: var(--cream); background: var(--ink); }
.text-link, .article-link, .project-link { border-bottom: 1px solid currentColor; padding-bottom: 4px; font-size: .8rem; font-weight: 700; }
.hero-note { max-width: 390px; justify-self: end; width: 100%; transform: rotate(2deg); }
.note-top { display: flex; justify-content: space-between; margin-bottom: 12px; }
.code-window { overflow: hidden; background: var(--ink); box-shadow: 14px 16px 0 var(--lime); }
.window-bar { display: flex; align-items: center; gap: 6px; padding: 14px 16px; background: #253330; }
.window-bar span { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
.window-bar span:nth-child(2) { background: var(--lime); }
.window-bar span:nth-child(3) { background: #99b8a7; }
.window-bar small { margin-left: 10px; color: #9baca6; font: .64rem var(--mono); }
pre { margin: 0; padding: 28px 26px 32px; color: #c8d4ca; font: .82rem/1.8 var(--mono); }
code b { color: var(--lime); font-weight: 400; }
code i { color: #f09c84; font-style: normal; }
code mark { color: var(--coral); background: none; }
.note-caption { margin: 24px 0 0; font: .72rem var(--mono); color: var(--muted); }
.note-caption strong { color: var(--ink); font-weight: 500; }

.stats-strip { display: flex; max-width: 1240px; margin: auto; padding: 20px 5vw; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-strip div { flex: 1; display: flex; align-items: baseline; gap: 14px; }
.stats-strip strong { font-size: 1.75rem; letter-spacing: -.06em; }

.journal-section { padding-top: 120px; padding-bottom: 130px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 42px; }
.section-heading h2 { margin: 12px 0 0; font-size: clamp(2.5rem, 5vw, 5.4rem); line-height: .92; letter-spacing: -.075em; }
.section-lede { max-width: 260px; margin: 0 5% 4px 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }

.journal-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 18px; }
.journal-feature, .journal-entry { min-height: 320px; padding: 28px; position: relative; }
.journal-feature { color: var(--cream); background: var(--ink); }
.journal-entry { border-top: 1px solid var(--ink); }
.article-meta, .project-meta { display: flex; justify-content: space-between; align-items: center; }
.tag { padding: 7px 9px; color: var(--ink); background: var(--lime); font-size: .62rem; }
.tag-light { background: var(--coral); }
.journal-feature h3, .journal-entry h3 { max-width: 340px; margin: 44px 0 15px; font-size: 1.7rem; line-height: 1.02; letter-spacing: -.05em; }
.journal-feature p, .journal-entry p { max-width: 310px; color: var(--muted); font-size: .88rem; line-height: 1.55; }
.journal-feature p { color: #b9c4ba; }
.journal-feature .article-link, .journal-entry .article-link { position: absolute; bottom: 28px; }
.entry-number { position: absolute; right: 28px; bottom: 24px; color: #53635c; font: 3rem var(--mono); }

.projects-section { padding-top: 10px; padding-bottom: 110px; }
.projects-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.project-card { padding: 28px; border: 1px solid var(--line); background: rgba(255,255,255,0.2); cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.project-card:hover, .project-card:focus-visible { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(20,33,31,0.08); }
.feature-project { background: var(--ink); color: var(--cream); }
.feature-project p, .feature-project li { color: #c5d0c8; }
.project-card h3 { margin: 26px 0 16px; font-size: clamp(1.8rem, 2vw, 2.5rem); line-height: 1.04; letter-spacing: -.05em; }
.project-card p { color: var(--muted); font-size: .9rem; line-height: 1.6; }
.project-card ul { padding-left: 18px; margin: 10px 0 18px; color: var(--muted); font-size: .86rem; line-height: 1.75; }
.project-button { margin-top: 8px; padding: 10px 12px; border: none; background: var(--lime); color: var(--ink); font: 700 .7rem var(--mono); text-transform: uppercase; letter-spacing: .08em; cursor: pointer; }
.project-link { display: inline-flex; margin-top: 8px; color: inherit; }

.project-modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(20,33,31,0.6); padding: 20px; z-index: 50; }
.project-modal.visible { display: flex; }
.project-modal-content { position: relative; width: min(560px, 100%); background: var(--cream); border: 1px solid var(--line); padding: 32px 28px 24px; box-shadow: 0 18px 50px rgba(20,33,31,0.18); }
.project-close { position: absolute; right: 14px; top: 10px; border: none; background: transparent; font-size: 2rem; line-height: 1; cursor: pointer; color: var(--ink); }
.modal-eyebrow { margin: 0 0 10px; color: var(--muted); font: 500 .65rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.project-modal-content h3 { margin: 0 0 16px; font-size: clamp(2rem, 3vw, 2.8rem); letter-spacing: -.06em; }
.project-modal-content p, .project-modal-content li { color: var(--muted); line-height: 1.7; }
.project-modal-content ul { margin: 14px 0 0; padding-left: 18px; }

.logbook-section { max-width: 1240px; margin: auto; padding: 30px 5vw 110px; }
.logbook-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.logbook-card { padding: 24px; border: 1px solid var(--line); background: rgba(255,255,255,0.35); }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.card-header h3 { margin: 0; font-size: 1.35rem; letter-spacing: -.04em; }
textarea { width: 100%; resize: vertical; padding: 14px 16px; border: 1px solid var(--line); background: #fffdf9; color: var(--ink); font: 0.9rem/1.5 var(--display); }
textarea:focus { outline: 2px solid rgba(242,127,99,0.4); border-color: var(--coral); }
.note-actions { margin-top: 14px; }
button { cursor: pointer; border: none; background: var(--ink); color: var(--cream); padding: 10px 14px; font: 700 .72rem var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.saved-notes { margin: 18px 0 0; padding-left: 18px; color: var(--muted); line-height: 1.7; }
.saved-notes li { margin-bottom: 8px; }
.quote-card blockquote { margin: 18px 0 0; padding-left: 16px; border-left: 3px solid var(--coral); color: var(--ink); font-size: 1.05rem; line-height: 1.6; }
.quote-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.secondary-button { background: var(--coral); color: var(--ink); }
.warn-button { background: #e4765f; }
.quote-history { margin-top: 16px; }
.photo-card { background: linear-gradient(180deg, rgba(216,242,91,0.12), rgba(255,255,255,0.35)); }
.upload-box { display: flex; align-items: center; justify-content: center; min-height: 120px; border: 1px dashed var(--line); background: rgba(216,242,91,0.12); color: var(--ink); font: 700 .72rem var(--mono); text-transform: uppercase; letter-spacing: .08em; cursor: pointer; }
.upload-box input { display: none; }
.photo-preview-wrap { display: flex; justify-content: center; margin-top: 18px; }
#photo-preview { display: block; width: 100%; max-width: 280px; max-height: 280px; height: 240px; object-fit: cover; border: 1px solid var(--line); box-shadow: 10px 12px 0 rgba(216,242,91,0.45); }
.calendar-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.calendar-heading h4 { margin: 0; font-size: 1rem; }
.calendar-heading button { padding: 8px 10px; background: var(--coral); color: var(--ink); }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.calendar-weekdays span { font: 500 .62rem var(--mono); text-transform: uppercase; color: var(--muted); text-align: center; }
.day { min-height: 44px; display: grid; place-items: center; border: 1px solid var(--line); background: #fffdf8; font-size: .75rem; }
.day.today { background: var(--lime); border-color: var(--lime); font-weight: 700; }
.day-muted { color: #8a9a94; background: #f5f4ef; }

.resume-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 6vw; align-items: start; padding-top: 60px; padding-bottom: 120px; }
.resume-intro p:last-child { max-width: 320px; margin-top: 32px; color: var(--muted); font-size: .95rem; line-height: 1.55; }
.resume-button { margin-top: 22px; }
.resume-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.resume-block { padding: 24px; border: 1px solid var(--line); background: #fffdf8; }
.resume-block p, .resume-block li { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.6; }
.resume-block ul { margin: 8px 0 0 18px; padding: 0; }

.site-footer { display: flex; justify-content: space-between; max-width: 1240px; margin: auto; padding: 28px 5vw; color: var(--muted); font: .68rem var(--mono); }
.site-footer a { color: var(--ink); }

@media (max-width: 760px) {
 .site-header { padding-top: 22px; }
 .site-header nav a:not(.nav-contact) { display: none; }
 nav { gap: 0; }
 .hero { display: block; min-height: auto; padding-top: 70px; padding-bottom: 80px; }
 .hero-note { margin: 70px auto 0; transform: rotate(1deg); }
 .stats-strip { gap: 18px; padding-top: 18px; padding-bottom: 18px; }
 .stats-strip div { display: block; }
 .stats-strip strong { display: block; margin-bottom: 7px; }
 .stats-strip span { font-size: .58rem; }
 .journal-section { padding-top: 80px; padding-bottom: 85px; }
 .section-heading { display: block; }
 .section-lede { margin-top: 22px; }
 .journal-grid { display: block; }
 .journal-feature, .journal-entry { min-height: 290px; margin-bottom: 16px; }
 .projects-grid, .resume-panel, .resume-section, .logbook-layout { display: block; }
 .project-card, .logbook-card { margin-bottom: 18px; }
 .resume-section { padding-top: 20px; padding-bottom: 80px; }
 .resume-button { margin-bottom: 28px; }
 .site-footer { display: grid; gap: 14px; }
}
