/* stas.works — basic styles. White page, black type, grey placeholders. */

:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --placeholder: #ededed;
  --placeholder-dark: #dcdcdc;
  --max: 720px;
  --wide: 1040px;
  --font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--muted); }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: var(--max); }

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 28px 0;
  gap: 16px;
  flex-wrap: wrap;
}
.logo { font-weight: 600; text-decoration: none; letter-spacing: -0.01em; }
.nav { display: flex; gap: 20px; font-size: 16px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

/* Type */
h1, h2, h3 { font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.025em;
}
h2 { font-size: 28px; }
h3 { font-size: 20px; }
.lead { font-size: 22px; line-height: 1.45; max-width: 640px; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* Sections */
.hero { padding: 56px 0 72px; }
.hero .lead { margin-top: 28px; }
section { padding: 48px 0; border-top: 1px solid var(--line); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 28px;
  gap: 16px;
}
.section-head a { font-size: 16px; color: var(--muted); text-decoration: none; }
.section-head a:hover { color: var(--text); }

/* Grey placeholder blocks (stand-ins for photos and video) */
.ph {
  background: var(--placeholder);
  border-radius: 4px;
  aspect-ratio: 4 / 3;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a5a5a5;
  font-size: 13px;
}
.ph.square { aspect-ratio: 1 / 1; }
.ph.wide { aspect-ratio: 16 / 9; }
.ph.tall { aspect-ratio: 3 / 4; }
.ph.portrait { width: 88px; height: 88px; aspect-ratio: auto; border-radius: 50%; }
.ph.video { background: var(--placeholder-dark); }
.ph.video::before {
  content: "";
  border-style: solid;
  border-width: 14px 0 14px 22px;
  border-color: transparent transparent transparent #ffffff;
}

/* Grids */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card { text-decoration: none; display: block; }
.card h3 { margin-top: 14px; }
.card p { margin: 6px 0 0; color: var(--muted); font-size: 16px; }

/* Simple list (trips, projects) */
.list { list-style: none; padding: 0; margin: 0; }
.list li { border-top: 1px solid var(--line); }
.list li:last-child { border-bottom: 1px solid var(--line); }
.list a {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 18px 0;
  text-decoration: none;
}
.list .ph { aspect-ratio: 4 / 3; }
.list .meta { color: var(--muted); font-size: 15px; white-space: nowrap; }
.list .arrow { color: var(--muted); }
@media (max-width: 560px) {
  .list a { grid-template-columns: 88px 1fr; }
  .list .meta { grid-column: 2; }
}

/* Article (trip report) */
.article { padding: 40px 0 72px; }
.article h1 { margin: 12px 0 20px; }
.article p { margin: 0 0 20px; }
.article figure { margin: 36px 0; }
.article figcaption { font-size: 15px; color: var(--muted); margin-top: 10px; }
.photo-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* About */
.about { display: grid; grid-template-columns: 88px 1fr; gap: 24px; align-items: start; }
@media (max-width: 560px) { .about { grid-template-columns: 1fr; } }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 15px;
  color: var(--muted);
}
.site-footer a { color: var(--muted); }

.spaced { margin-top: 72px; }
