:root {
  --bg: #f6f1e7;
  --text: #1d1a16;
  --muted: #6b6358;
  --line: #ddd3c2;
  --accent: #7a3b1d;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15130f;
    --text: #efe8db;
    --muted: #a39a8b;
    --line: #2e2a23;
    --accent: #d98e5f;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

a { color: inherit; }

.top, main, .foot { max-width: 960px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.top { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; padding-bottom: 28px; }
.mark { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.45rem; text-decoration: none; }
.mark svg { width: 26px; height: 26px; color: var(--accent); }
.top-link { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.top-link:hover { color: var(--text); }

.kicker { color: var(--accent); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; }

.hero { padding: 96px 0 88px; }
h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.8rem, 8vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin-top: 18px;
  max-width: 820px;
}
h1 em { color: var(--accent); }
.lede { max-width: 580px; margin-top: 28px; font-size: 1.18rem; color: var(--muted); }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pillars article { padding: 34px 28px 34px 0; }
.pillars article + article { padding-left: 28px; border-left: 1px solid var(--line); }
.pillars h2 { font-family: var(--serif); font-weight: 500; font-size: 1.7rem; margin-bottom: 6px; }
.pillars p { color: var(--muted); font-size: 0.95rem; }

.name { padding: 96px 0; max-width: 680px; }
blockquote { font-family: var(--serif); font-style: italic; font-size: clamp(1.8rem, 4.5vw, 2.6rem); line-height: 1.2; }
cite { display: block; font-family: var(--sans); font-style: normal; font-size: 0.9rem; color: var(--muted); margin-top: 14px; }
.name p { color: var(--muted); margin-top: 28px; }
.name em { color: var(--text); }

.status { padding: 64px 0 96px; border-top: 1px solid var(--line); }
.status p:not(.kicker) { color: var(--muted); margin: 12px 0 18px; max-width: 520px; }
.email { font-family: var(--serif); font-size: clamp(1.7rem, 5vw, 2.4rem); color: var(--accent); text-decoration: none; border-bottom: 1px solid currentColor; }

.foot { display: flex; justify-content: space-between; gap: 16px; padding-top: 28px; padding-bottom: 40px; color: var(--muted); font-size: 0.88rem; border-top: 1px solid var(--line); }

/* Contact dialog */
.contact-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(460px, calc(100% - 32px));
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}
.contact-dialog::backdrop { background: rgba(20, 17, 12, 0.55); backdrop-filter: blur(4px); }
.contact-dialog[open] { animation: pop 0.18s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } }
.contact-dialog h2 { font-family: var(--serif); font-weight: 500; font-size: 2.2rem; line-height: 1.1; margin: 8px 0 22px; }
.dialog-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.dialog-close:hover { color: var(--text); }
.email-copy {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  text-align: left;
}
.email-copy:hover { border-color: var(--accent); }
.email-address { font-weight: 500; word-break: break-all; }
.copy-label { color: var(--accent); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.dialog-sub { color: var(--muted); font-size: 0.9rem; margin: 22px 0 12px; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dialog-actions a {
  flex: 1;
  min-width: 110px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  text-align: center;
  text-decoration: none;
  font-size: 0.95rem;
}
.dialog-actions a:hover { border-color: var(--text); }

@media (max-width: 680px) {
  .top, main, .foot { padding-left: 16px; padding-right: 16px; }
  .hero { padding: 56px 0 56px; }
  .pillars { grid-template-columns: 1fr; }
  .pillars article, .pillars article + article { padding: 24px 0; border-left: none; }
  .pillars article + article { border-top: 1px solid var(--line); }
  .name { padding: 64px 0; }
  .status { padding: 48px 0 64px; }
  .email { word-break: break-all; }
  .contact-dialog { padding: 28px 22px; }
  .email-copy { flex-direction: column; align-items: flex-start; gap: 4px; }
  .email-address { word-break: normal; }
}
