:root {
  --bg: #f7f4ee;
  --surface: #fffdf9;
  --text: #1d1b18;
  --muted: #6b655c;
  --line: #e4ded3;
  --accent: #b5562f;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151412;
    --surface: #1d1c19;
    --text: #ece7de;
    --muted: #a39c90;
    --line: #2e2b27;
    --accent: #e08a62;
  }
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.page {
  max-width: 680px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: 32px 24px 40px;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

.masthead { margin-bottom: clamp(72px, 16vw, 140px); }

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.mark {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 8px 0 0 -2px var(--text);
  margin-right: 8px;
}

h1, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 0;
}

h1 {
  font-size: clamp(40px, 8vw, 60px);
  line-height: 1.05;
}

.lede {
  margin: 20px 0 0;
  max-width: 30em;
  font-size: clamp(18px, 2.6vw, 21px);
  color: var(--muted);
}

section + section { margin-top: 64px; }
.intro + .work { margin-top: clamp(72px, 12vw, 112px); }

.label {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.app {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.app:hover { border-color: var(--accent); }
.app:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.app h3 { font-size: 30px; line-height: 1.15; }
.app p { margin: 8px 0 0; }
.app .meta { font-size: 14px; color: var(--muted); }

.app-link {
  flex-shrink: 0;
  font-size: 15px;
  color: var(--accent);
  white-space: nowrap;
}

.contact p { margin: 0; }
.contact a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.footer {
  margin-top: 96px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.footer p { margin: 0 0 4px; }
.footer address { font-style: normal; }

@media (max-width: 560px) {
  .app { flex-direction: column; align-items: flex-start; padding: 24px; }
  .app h3 { font-size: 26px; }
}
