:root {
    --ink: #10243e;
    --paper: #184f86;
    --paper-deep: #123d69;
    --white: #f8f3e8;
    --blue: #8fd3ff;
    --blue-strong: #2f78c4;
    --red: #ff7d5c;
    --yellow: #f4c95d;
    --line: rgba(214, 234, 255, 0.50);
    --muted: #5e6770;
    --max-width: 1240px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        linear-gradient(rgba(209, 233, 255, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(209, 233, 255, 0.15) 1px, transparent 1px),
        linear-gradient(
            rgba(209, 233, 255, 0.06) 2px,
            transparent 2px
        ),
        linear-gradient(
            90deg,
            rgba(209, 233, 255, 0.06) 2px,
            transparent 2px
        ),
        var(--paper);
    background-size:
        24px 24px,
        24px 24px,
        120px 120px,
        120px 120px;
    color: var(--ink);
    font-family:
        Arial,
        Helvetica,
        "Segoe UI",
        sans-serif;
    line-height: 1.55;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
textarea {
    font: inherit;
}

.container {
    width: min(calc(100% - 40px), var(--max-width));
    margin: 0 auto;
}

.site-header {
    border-bottom: 2px solid rgba(225, 241, 255, 0.72);
    background: rgba(18, 61, 105, 0.95);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(14px);
}

.header-inner {
    min-height: 96px;
    display: grid;
    grid-template-columns: 280px 1fr;
    align-items: center;
    gap: 30px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.brand img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 2px solid var(--white);
    border-radius: 0;
    background: var(--white);
}

.brand span {
    font-size: 1.05rem;
    line-height: 1.05;
}

.brand small {
    display: block;
    margin-top: 5px;
    color: #c6dff4;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-left: 2px solid rgba(225, 241, 255, 0.72);
}

.nav-links a {
    min-height: 94px;
    display: grid;
    place-items: center;
    border-right: 2px solid rgba(225, 241, 255, 0.72);
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    transition:
        background 150ms ease,
        color 150ms ease;
}

.nav-links a:hover {
    background: rgba(143, 211, 255, 0.18);
}

.nav-links a.active {
    background: var(--yellow);
    color: var(--ink);
}

.menu-button {
    display: none;
    border: 2px solid var(--ink);
    background: var(--yellow);
    color: var(--ink);
    padding: 11px 16px;
    font-weight: 900;
    text-transform: uppercase;
}

.hero {
    padding: 64px 0 88px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    border: 2px solid rgba(232, 244, 255, 0.90);
    background: var(--white);
    box-shadow: 0 24px 70px rgba(6, 30, 57, 0.28);
}

.hero-copy {
    min-height: 690px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 54px;
    border-right: 2px solid var(--ink);
}

.kicker {
    margin: 0;
    color: var(--blue);
    font-size: 0.92rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 28px;
    font-size: clamp(4rem, 8vw, 8.4rem);
    line-height: 0.88;
    letter-spacing: -0.075em;
    text-transform: uppercase;
}

.hero-copy h1 span {
    color: var(--red);
}

.hero-text,
.page-intro {
    max-width: 720px;
    color: var(--muted);
    font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.hero-image {
    min-height: 690px;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(rgba(16, 36, 62, 0.10) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 36, 62, 0.10) 1px, transparent 1px),
        #b8ddf6;
    background-size: 24px 24px;
}

.hero-image img {
    width: 100%;
    height: 100%;
    min-height: 690px;
    object-fit: cover;
    object-position: center;
    mix-blend-mode: multiply;
}

.hero-stamp {
    position: absolute;
    right: 26px;
    bottom: 26px;
    border: 2px solid var(--ink);
    background: var(--white);
    padding: 14px 18px;
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
    transform: rotate(-3deg);
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.button {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--ink);
    padding: 0 20px;
    background: var(--white);
    color: var(--ink);
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
}

.button.primary {
    background: var(--blue);
    color: var(--white);
}

.button.primary:hover {
    background: var(--ink);
}

.button.secondary:hover {
    background: var(--yellow);
}

.section {
    padding: 92px 0;
}

.section-heading {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 30px;
    margin-bottom: 42px;
    border-top: 2px solid var(--ink);
    padding-top: 18px;
}

.section-label {
    margin: 0;
    color: var(--yellow);
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h2 {
    margin-bottom: 20px;
    font-size: clamp(2.8rem, 5vw, 5.8rem);
    line-height: 0.95;
    letter-spacing: -0.06em;
    text-transform: uppercase;
}

h3 {
    margin-bottom: 12px;
    font-size: 1.5rem;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -0.035em;
}

.editorial-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    border-top: 2px solid var(--ink);
    border-left: 2px solid var(--ink);
}

.editorial-card {
    min-height: 360px;
    display: flex;
    flex-direction: column;
    border-right: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
    background: var(--white);
    padding: 28px;
}

.editorial-card:nth-child(1) {
    grid-column: span 5;
}

.editorial-card:nth-child(2) {
    grid-column: span 7;
    background: #f9d9ca;
}

.editorial-card:nth-child(3) {
    grid-column: span 7;
    background: #dbe2ff;
}

.editorial-card:nth-child(4) {
    grid-column: span 5;
    background: #f8ebbb;
}

.editorial-card p {
    color: var(--muted);
}

.card-number {
    margin-bottom: 24px;
    color: var(--blue);
    font-size: 0.9rem;
    font-weight: 900;
}

.text-link {
    margin-top: auto;
    color: var(--ink);
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
}

.text-link:hover {
    color: var(--red);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0 28px;
}

.tags span {
    border: 1.5px solid var(--ink);
    background: var(--white);
    padding: 6px 10px;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.page-hero {
    padding: 70px 0 48px;
}

.page-hero-box {
    border: 2px solid var(--ink);
    background: var(--white);
    padding: 48px;
}

.page-hero h1 {
    font-size: clamp(3.8rem, 8vw, 7.6rem);
}

.content-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
}

.sidebar-note {
    position: sticky;
    top: 132px;
    align-self: start;
    border: 2px solid var(--ink);
    background: var(--yellow);
    padding: 22px;
    font-weight: 900;
    text-transform: uppercase;
    transform: rotate(-1.5deg);
}

.article-content {
    border-left: 2px solid var(--ink);
    padding-left: 42px;
    font-size: 1.06rem;
}

.article-content h2 {
    margin-top: 64px;
    font-size: clamp(2.4rem, 4vw, 4.2rem);
}

.article-content p,
.article-content li {
    color: var(--muted);
}

.article-content ul {
    padding-left: 22px;
}

.article-content li + li {
    margin-top: 10px;
}

.project-list {
    display: grid;
    border-top: 2px solid var(--ink);
    border-left: 2px solid var(--ink);
}

.project-row {
    display: grid;
    grid-template-columns: 110px 1fr 180px;
    border-right: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
    background: var(--white);
}

.project-row > div {
    padding: 28px;
}

.project-row > div + div {
    border-left: 2px solid var(--ink);
}

.project-row-number {
    color: var(--red);
    font-size: 2rem;
    font-weight: 900;
}

.project-row p {
    color: var(--muted);
}

.project-action {
    display: grid;
    place-items: center;
    background: var(--yellow);
    text-align: center;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
}

.project-action:hover {
    background: var(--blue);
    color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    border: 2px solid var(--ink);
    background: var(--white);
}

.contact-copy,
.contact-form-wrap {
    padding: 38px;
}

.contact-form-wrap {
    border-left: 2px solid var(--ink);
    background: #dbe2ff;
}

.contact-links {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.contact-links a {
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
}

.contact-form {
    display: grid;
    gap: 18px;
}

.contact-form label {
    display: grid;
    gap: 7px;
    font-size: 0.85rem;
    font-weight: 900;
    text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 2px solid var(--ink);
    border-radius: 0;
    background: var(--white);
    padding: 13px 14px;
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    background: #fff7c7;
}

.footer {
    border-top: 2px solid var(--ink);
    background: var(--ink);
    color: var(--white);
    padding: 30px 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.footer-inner p {
    margin: 0;
}

.footer-inner div {
    display: flex;
    gap: 18px;
}

.footer-inner a {
    color: var(--white);
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
}

@media (max-width: 980px) {
    .header-inner {
        grid-template-columns: 220px 1fr;
    }

    .hero-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        border-right: 0;
        border-bottom: 2px solid var(--ink);
    }

    .contact-form-wrap {
        border-left: 0;
        border-top: 2px solid var(--ink);
    }

    .editorial-card:nth-child(n) {
        grid-column: span 6;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .sidebar-note {
        position: static;
    }

    .article-content {
        border-left: 0;
        padding-left: 0;
    }

    .project-row {
        grid-template-columns: 90px 1fr;
    }

    .project-action {
        grid-column: 1 / -1;
        min-height: 80px;
        border-top: 2px solid var(--ink);
    }
}

@media (max-width: 760px) {
    .header-inner {
        min-height: 82px;
        grid-template-columns: 1fr auto;
    }

    .brand img {
        width: 52px;
        height: 52px;
    }

    .brand span {
        display: none;
    }

    .menu-button {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 82px;
        left: 20px;
        right: 20px;
        display: none;
        grid-template-columns: 1fr;
        border: 2px solid var(--ink);
        background: var(--paper);
    }

    .nav-links.open {
        display: grid;
    }

    .nav-links a {
        min-height: 64px;
        border-right: 0;
        border-bottom: 2px solid var(--ink);
    }

    .nav-links a:last-child {
        border-bottom: 0;
    }

    .hero,
    .section,
    .page-hero {
        padding: 56px 0;
    }

    .hero-copy {
        min-height: auto;
        padding: 30px;
    }

    .hero-image,
    .hero-image img {
        min-height: 430px;
    }

    h1 {
        font-size: clamp(3.4rem, 17vw, 5.5rem);
    }

    .section-heading {
        grid-template-columns: 1fr;
    }

    .editorial-card:nth-child(n) {
        grid-column: span 12;
    }

    .project-row {
        grid-template-columns: 1fr;
    }

    .project-row > div + div {
        border-left: 0;
        border-top: 2px solid var(--ink);
    }

    .footer-inner {
        flex-direction: column;
    }

    .page-hero-box {
        padding: 28px;
    }
}


/* Blueprint palette overrides */
.section-heading h2,
.section-heading .hero-text {
    color: var(--white);
}

.section-heading .hero-text {
    opacity: 0.86;
}

.section-heading {
    border-top-color: rgba(226, 241, 255, 0.72);
}

.page-hero-box {
    box-shadow: 0 22px 60px rgba(5, 28, 54, 0.30);
}

.project-list,
.editorial-grid {
    box-shadow: 0 22px 60px rgba(5, 28, 54, 0.22);
}

.footer {
    border-top-color: rgba(226, 241, 255, 0.72);
    background: #0d2d4f;
}

@media (max-width: 760px) {
    .nav-links {
        background: var(--paper-deep);
        border-color: rgba(225, 241, 255, 0.72);
    }

    .nav-links a {
        border-bottom-color: rgba(225, 241, 255, 0.72);
    }
}


/* Light paper panels for readability */
.section > .container {
    border: 2px solid var(--ink);
    background: var(--white);
    color: var(--ink);
    padding: 48px;
    box-shadow: 0 24px 70px rgba(5, 28, 54, 0.28);
}

/* Contact already has its own internal panel layout. */
.section > .container.contact-grid {
    padding: 0;
}

/* Headings were white in the first blueprint version.
   Inside the new paper panels they should be dark. */
.section > .container .section-heading h2 {
    color: var(--ink);
}

.section > .container .section-heading .hero-text {
    color: var(--muted);
    opacity: 1;
}

.section > .container .section-heading {
    border-top-color: var(--ink);
}

.section > .container .section-label {
    color: var(--red);
}

/* About and project-detail reading areas */
.section > .container.content-grid {
    padding: 48px;
}

.content-grid .article-content h2:first-child {
    margin-top: 0;
}

/* Give long text a comfortable readable width. */
.article-content {
    max-width: 820px;
}

/* Projects remain separated, but now sit inside a light sheet. */
.section > .container .project-list,
.section > .container .editorial-grid {
    box-shadow: none;
}

/* Slightly soften the white so it feels like drafting paper. */
.page-hero-box,
.section > .container,
.project-row,
.editorial-card,
.contact-grid {
    background-color: #fbf8f1;
}

@media (max-width: 760px) {
    .section > .container,
    .section > .container.content-grid {
        padding: 28px;
    }

    .section > .container.contact-grid {
        padding: 0;
    }
}


/* Updated project-detail layout */
.project-hero-box,
.project-detail-grid {
    width: min(calc(100% - 32px), 1320px);
}

/* Project names are intentionally smaller than the other large page titles. */
.project-hero-box h1 {
    max-width: 1120px;
    font-size: clamp(3rem, 5.8vw, 5.8rem);
    line-height: 0.96;
}

/* Removing the left note gives the actual project content more room. */
.project-detail-grid {
    display: block;
    padding: 58px 64px;
}

.project-detail-grid .article-content {
    width: 100%;
    max-width: 1040px;
    margin-inline: auto;
    border-left: 0;
    padding-left: 0;
    font-size: 1.1rem;
}

.project-detail-grid .article-content h2:first-child {
    margin-top: 0;
}

@media (max-width: 760px) {
    .project-hero-box,
    .project-detail-grid {
        width: min(calc(100% - 24px), 1320px);
    }

    .project-detail-grid {
        padding: 30px 26px;
    }

    .project-hero-box h1 {
        font-size: clamp(2.7rem, 13vw, 4.3rem);
    }
}


/* Balanced heading sizes */
h1 {
    font-size: clamp(3.25rem, 6.6vw, 6.9rem);
    line-height: 0.93;
}

h2 {
    font-size: clamp(2.25rem, 4vw, 4.45rem);
    line-height: 1;
}

.page-hero h1 {
    font-size: clamp(3rem, 5.8vw, 5.75rem);
    line-height: 0.96;
}

.article-content h2 {
    font-size: clamp(1.9rem, 3vw, 3.15rem);
    line-height: 1.03;
}

.project-hero-box h1 {
    font-size: clamp(2.65rem, 4.8vw, 4.85rem);
}

/* About-page photo area */
.about-photo-panel {
    position: sticky;
    top: 132px;
    align-self: start;
    margin: 0;
    border: 2px solid var(--ink);
    background: #dbe7f1;
    box-shadow: 12px 12px 0 rgba(16, 36, 62, 0.16);
}

.about-photo-panel img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-top: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
}

.about-photo-label {
    padding: 12px 15px;
    color: var(--ink);
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.about-photo-panel figcaption {
    padding: 14px 15px 16px;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

.about-photo-panel code {
    color: var(--ink);
    font-weight: 800;
}

/* Give the photo slightly more room than the old note. */
.content-grid {
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
    gap: 48px;
}

@media (max-width: 980px) {
    .about-photo-panel {
        position: static;
        max-width: 460px;
    }
}

@media (max-width: 760px) {
    h1 {
        font-size: clamp(2.8rem, 13.5vw, 4.55rem);
    }

    h2 {
        font-size: clamp(2rem, 10vw, 3.25rem);
    }

    .page-hero h1 {
        font-size: clamp(2.65rem, 12vw, 4.1rem);
    }

    .article-content h2 {
        font-size: clamp(1.8rem, 8vw, 2.65rem);
    }

    .project-hero-box h1 {
        font-size: clamp(2.35rem, 11vw, 3.75rem);
    }

    .about-photo-panel {
        max-width: none;
    }
}
