:root {
--irl-blue: #8FCBE3;
--bg: #f7f7f3;
--text: #111111;
--muted: #6a6a6a;
--pad: 28px;
}

* { box-sizing: border-box; }

html, body {
margin: 0;
padding: 0;
background: var(--bg);
color: var(--text);
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 16px;
}

body {
min-height: 100vh;
}

a {
color: inherit;
text-decoration: none;
}

a:hover {
color: var(--irl-blue);
}

a:focus-visible {
color: var(--irl-blue);
}

.visually-hidden {
position: absolute;
width: 1px;
height: 1px;
margin: -1px;
padding: 0;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}

.site {
min-height: 100vh;
padding: var(--pad);
display: flex;
flex-direction: column;
}

.header {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 24px;
}

.logo {
font-size: 22px;
font-weight: 500;
letter-spacing: -0.02em;
color: var(--irl-blue);
position: relative;
white-space: nowrap;
}

.logo-spacer {
visibility: hidden;
}

.logo-type {
position: absolute;
left: 0;
top: 0;
white-space: nowrap;
}

.nav {
display: flex;
gap: 22px;
flex-wrap: wrap;
justify-content: flex-end;
}

.nav a,
.meta,
.caption {
font-size: 14px;
}

.nav a.active {
color: var(--irl-blue);
}

main {
flex: 1;
}

.home-main {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
}

.home-title {
font-size: clamp(40px, 11vw, 160px);
line-height: 0.88;
letter-spacing: -0.055em;
font-weight: 500;
color: var(--irl-blue);
margin: 0;
white-space: nowrap;
}

.page {
padding-top: 110px;
max-width: 1500px;
}

.page h1 {
font-size: clamp(42px, 6vw, 88px);
line-height: 0.95;
font-weight: 500;
letter-spacing: -0.04em;
margin: 0 0 36px;
}

/* Shared paragraph block. Context-specific classes below set size/measure. */
.copy {
max-width: 760px;
font-size: 20px;
line-height: 1.4;
}

.copy p {
margin: 0 0 1.3em;
}

/* Experience page introductory paragraph */
.lead-text {
max-width: 900px;
font-size: clamp(23px, 3vw, 30px);
line-height: 1.2;
font-weight: 400;
letter-spacing: -0.01em;
}

/* About page editorial text */
.about-text {
max-width: 900px;
font-size: clamp(21px, 2.6vw, 28px);
line-height: 1.25;
}

/* Individual project-page description text */
.project-description {
max-width: 760px;
font-size: clamp(18px, 2vw, 21px);
line-height: 1.35;
}

/* Featured experience projects: two independent flowing columns.
Each column stacks its own cards; columns don't share row tracks,
so natural image-height variation creates the offset. */
.project-grid {
margin-top: 80px;
display: flex;
align-items: flex-start;
gap: 22px;
}

.project-column {
flex: 1 1 0;
min-width: 0;
display: flex;
flex-direction: column;
gap: 54px;
}

/* Reading order for narrow viewports (see mobile override below),
independent of which column each card lives in on desktop. */
.project-grid .project-column:nth-child(1) .project-card:nth-child(1) { order: 1; }
.project-grid .project-column:nth-child(2) .project-card:nth-child(1) { order: 2; }
.project-grid .project-column:nth-child(1) .project-card:nth-child(2) { order: 3; }
.project-grid .project-column:nth-child(2) .project-card:nth-child(2) { order: 4; }

.project-image {
background: #e7e7e2;
}

.project-image img {
width: 100%;
height: auto;
display: block;
}

/* Experience-page thumbnail crops (source files and project-page images unchanged) */
.project-image--perigon {
aspect-ratio: 4 / 3;
}

.project-image--perigon img {
width: 100%;
height: 100%;
object-fit: cover;
object-position: 60% 50%;
}

.project-image--bridge-park {
aspect-ratio: 16 / 9;
}

.project-image--bridge-park img {
width: 100%;
height: 100%;
object-fit: cover;
object-position: 50% 75%;
}

.project-title {
margin-top: 10px;
font-size: 19px;
}

.project-link,
.project-link:visited {
display: block;
color: var(--text);
text-decoration: none;
}

.project-link:hover,
.project-link:focus-visible {
color: var(--irl-blue);
}

.project-link:hover .project-title,
.project-link:focus-visible .project-title {
text-decoration: underline;
text-decoration-thickness: 1px;
text-underline-offset: 3px;
}

.more-grid {
margin-top: 90px;
column-count: 3;
column-gap: 24px;
}

.more-grid .project-card {
break-inside: avoid;
margin-bottom: 34px;
}

.more-grid .project-title {
margin-top: 8px;
font-size: 15px;
color: var(--muted);
}

.stack {
margin-top: 60px;
max-width: 1000px;
display: flex;
flex-direction: column;
gap: 32px;
}

.stack figure {
margin: 0;
}

.stack img {
width: 100%;
height: auto;
display: block;
}

/* Temporary image credits on individual project pages only */
.image-credit {
margin: 5px 0 0;
font-size: 11px;
font-weight: 400;
font-style: normal;
line-height: 1.3;
color: var(--muted);
text-align: left;
}

.small-links {
margin-top: 70px;
max-width: 900px;
line-height: 1.5;
}

.small-links a {
text-decoration: underline;
text-decoration-thickness: 1px;
text-underline-offset: 3px;
}

/* Contact information */
.contact {
max-width: 900px;
font-size: clamp(22px, 3vw, 30px);
line-height: 1.5;
}

.contact a,
.contact a:visited {
color: var(--text);
text-decoration: none;
}

.contact a:hover,
.contact a:focus-visible {
color: var(--irl-blue);
text-decoration: underline;
text-decoration-thickness: 1px;
text-underline-offset: 3px;
}

.footer {
padding-top: 80px;
font-size: 12px;
color: var(--muted);
}

@media (max-width: 760px) {
:root { --pad: 18px; }

.header {
display: block;
}

.nav {
margin-top: 18px;
justify-content: flex-start;
gap: 12px 18px;
}

.page {
padding-top: 80px;
}

.project-grid {
flex-direction: column;
align-items: stretch;
gap: 54px;
margin-top: 54px;
}

.project-column {
display: contents;
}

.more-grid {
column-count: 1;
margin-top: 60px;
}

.stack {
margin-top: 40px;
gap: 24px;
}
}
