:root {
  --ink: #101418; --muted: #5d6670; --line: #e6e7e9; --paper: #ffffff;
  --serif: "Iowan Old Style", ui-serif, "New York", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.label { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; }

/* Hero */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; color: #fff; display: flex; flex-direction: column;
  background:
    linear-gradient(90deg, rgba(7, 11, 16, .82) 0%, rgba(7, 11, 16, .45) 50%, rgba(7, 11, 16, .1) 100%),
    linear-gradient(0deg, rgba(7, 11, 16, .6) 0%, rgba(7, 11, 16, 0) 40%),
    url("/img/matterhorn-2560.jpg") 72% center / cover no-repeat, #0b1016;
}
@media (max-width: 900px) {
  .hero { background:
    linear-gradient(0deg, rgba(7, 11, 16, .85) 0%, rgba(7, 11, 16, .35) 60%, rgba(7, 11, 16, .25) 100%),
    url("/img/matterhorn-1280.jpg") 78% center / cover no-repeat, #0b1016; }
}
nav { display: flex; align-items: center; justify-content: space-between; padding-top: 32px; }
.wordmark { display: flex; align-items: baseline; gap: 10px; }
.wordmark b { font-family: var(--serif); font-size: 26px; font-weight: 600; letter-spacing: -0.01em; }
.wordmark span { font-size: 12px; letter-spacing: .28em; text-transform: uppercase; opacity: .8; }
nav .links { display: flex; gap: 32px; font-size: 14px; letter-spacing: .04em; }
nav .links a { opacity: .85; transition: opacity .2s; }
nav .links a:hover { opacity: 1; }
.hero .content { margin-top: auto; padding-bottom: 96px; }
.hero .label { opacity: .75; margin-bottom: 24px; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6.4vw, 84px); line-height: 1.04; letter-spacing: -0.02em; margin: 0 0 28px; max-width: 11em; }
.hero p { font-size: 19px; max-width: 34em; opacity: .85; margin: 0; }
.scroll { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); width: 1px; height: 44px; background: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,.7)); }

/* Sections */
section { padding: 128px 0; border-bottom: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 240px 1fr; gap: 48px; }
.split .label { color: var(--muted); padding-top: 10px; }
.about p { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.35; letter-spacing: -0.01em; margin: 0; max-width: 26em; }
.portfolio .item { display: grid; grid-template-columns: 1fr 1.4fr 110px; gap: 32px; align-items: baseline; padding: 32px 0; border-top: 1px solid var(--line); }
.portfolio .item:last-child { border-bottom: 1px solid var(--line); }
.portfolio h3 { font-family: var(--serif); font-weight: 500; font-size: 30px; margin: 0; letter-spacing: -0.01em; }
.portfolio p { margin: 0; color: var(--muted); }
.portfolio .tag { text-align: right; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.portfolio a.item:hover h3 { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
@media (max-width: 760px) {
  .wrap { padding: 0 22px; }
  nav .links { gap: 20px; }
  .wordmark span { display: none; }
  .hero .content { padding-bottom: 72px; }
  .hero p { font-size: 17px; }
  .split { grid-template-columns: 1fr; gap: 16px; }
  .portfolio .item { grid-template-columns: 1fr; gap: 8px; }
  .portfolio .tag { text-align: left; }
  section { padding: 88px 0; }
}

footer { padding: 48px 0 56px; color: var(--muted); font-size: 13px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
footer .credit { margin-left: auto; }
footer a { text-decoration: underline; text-underline-offset: 3px; }

/* Legal page */
.page-nav { color: var(--ink); }
.doc { max-width: 760px; padding: 72px 32px 96px; margin: 0 auto; }
.doc h1 { font-family: var(--serif); font-weight: 400; font-size: 48px; letter-spacing: -0.02em; margin: 0 0 32px; }
.doc h2 { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 48px 0 12px; }
.doc address { font-style: normal; }
.doc a { text-decoration: underline; text-underline-offset: 3px; }
