/* Dylen Skillings, architecture portfolio.
   Palette: white page, taupe bands, navy text. Drawings sit directly on the page. */
:root {
  --white: #ffffff;
  --taupe: #ece7e0;
  --taupe-line: #d6cdc1;
  --navy: #1d2b44;
  --muted: #5b6478;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--navy); font: 17px/1.6 var(--sans); }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.label { font: 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--taupe-line); }
.site-header .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 60px; }
.brand { font: 600 21px var(--serif); text-decoration: none; }
.nav { display: flex; gap: clamp(14px, 3vw, 28px); font-size: 15px; }
.nav a { text-decoration: none; border-bottom: 2px solid transparent; padding: 4px 0; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--navy); }

/* homepage */
.intro { padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(32px, 5vw, 56px); }
.intro h1 { font-size: clamp(38px, 5vw, 62px); max-width: 18ch; }
.intro .lede { margin-top: 18px; max-width: 58ch; font-size: 19px; }
.intro .facts { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; color: var(--muted); }
.btns { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; padding: 11px 18px; border: 1.5px solid var(--navy); text-decoration: none; font-weight: 600; font-size: 15px; }
.btn--solid { background: var(--navy); color: var(--white); }
.btn:hover { background: var(--navy); color: var(--white); }

.work { padding-bottom: clamp(56px, 8vw, 112px); }
.work-head { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--navy); padding-top: 14px; margin-bottom: 32px; }
.work-head h2 { font-size: clamp(28px, 3vw, 38px); }
/* every project: image left, title right; images sit on white */
.projects { display: grid; gap: clamp(48px, 7vw, 96px); }
.project-card { text-decoration: none; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.project-card .thumb { display: grid; place-items: center; }
.project-card .thumb img { width: auto; height: auto; max-width: 100%; max-height: 60vh; }
.project-card h3 { font-size: clamp(32px, 3.6vw, 48px); }
.project-card:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.project-card.pending .thumb { aspect-ratio: 4 / 3; border: 1px dashed var(--taupe-line); color: var(--muted); font: 13px var(--mono); }
@media (max-width: 760px) { .project-card { grid-template-columns: 1fr; gap: 16px; } }

/* project page */
.hero { padding: clamp(16px, 3vw, 40px) var(--gutter) 0; }
.hero img { margin: 0 auto; width: auto; max-height: 82vh; }
.p-title { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: clamp(24px, 4vw, 64px); padding: clamp(32px, 5vw, 56px) 0; border-bottom: 1px solid var(--taupe-line); }
.p-title h1 { font-size: clamp(38px, 5vw, 64px); margin: 10px 0 14px; }
.p-title .summary { max-width: 60ch; }
.p-title dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 15px; align-content: start; }
.p-title dt { font: 12px/1.9 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.p-title dd { margin: 0; }
@media (max-width: 760px) { .p-title { grid-template-columns: 1fr; } }

.chapter { padding: clamp(40px, 6vw, 72px) 0 0; }
.chapter-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(16px, 4vw, 56px); border-top: 1px solid var(--navy); padding-top: 14px; }
.chapter-head h2 { font-size: clamp(28px, 3vw, 38px); margin-top: 4px; }
.chapter-head .text { max-width: 62ch; display: grid; gap: 12px; }
@media (max-width: 760px) { .chapter-head { grid-template-columns: 1fr; } }

figure { margin: 0; }
figure a { display: block; }
figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }
figcaption b { color: var(--navy); font-weight: 600; }
.fig { margin-top: clamp(40px, 5vw, 64px); }
.fig img { width: 100%; height: auto; }
.fig.tall img { width: auto; max-height: 85vh; margin: 0 auto; }
.fig.narrow { max-width: 720px; }
.fig.small { max-width: 210px; }
/* rows: every image in a row has the same height; each figure grows by its image's width/height ratio */
.row { display: flex; gap: clamp(24px, 4vw, 56px); align-items: flex-start; margin-top: clamp(40px, 5vw, 64px); }
.row.tight { gap: clamp(12px, 2vw, 24px); }
.row figure { flex: var(--r) 1 0; min-width: 0; }
.row img { width: 100%; height: auto; }
@media (max-width: 640px) { .row { flex-direction: column; } .row figure { flex: none; width: 100%; } }

pre.code { margin: 0; max-height: 360px; overflow: auto; background: var(--taupe); padding: 16px; font: 13px/1.5 var(--mono); }
.notes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-top: 12px; font-size: 14px; color: var(--muted); }
.notes b { color: var(--navy); }
@media (max-width: 760px) { .notes { grid-template-columns: 1fr 1fr; } }

.next { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: clamp(56px, 8vw, 96px); border-top: 1px solid var(--navy); padding: 20px 0 56px; text-decoration: none; }
.next h2 { font-size: clamp(28px, 3.4vw, 44px); margin-top: 6px; }
.next:hover h2 { text-decoration: underline; text-underline-offset: 4px; }
.pending-note { margin-top: 32px; padding: 24px; border: 1px dashed var(--taupe-line); color: var(--muted); }

/* footer */
.site-footer { background: var(--navy); color: var(--white); padding: 44px 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; }
.site-footer .email { font: 500 clamp(22px, 3vw, 32px) var(--serif); }
.site-footer .label { color: var(--taupe-line); }
.site-footer .btn { border-color: var(--white); }
.site-footer .btn:hover { background: var(--white); color: var(--navy); }

/* construction sheet: tall section left, its callout details stacked right */
.sheet { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(24px, 4vw, 56px); align-items: start; margin-top: clamp(40px, 5vw, 64px); }
.sheet img { width: 100%; height: auto; }
.sheet-main img { max-height: 160vh; width: auto; max-width: 100%; }
.sheet-side { display: grid; gap: clamp(24px, 3vw, 40px); }
.fig.small-plan { max-width: 520px; }
@media (max-width: 760px) { .sheet { grid-template-columns: 1fr; } }
