:root {
  --cream: #faf7f2;
  --paper: #ffffff;
  --ink: #1e1b2e;
  --ink-soft: #5d5870;
  --line: #e8e1d6;
  --gold: #b8892d;
  --gold-soft: #f4ead6;
  --lotus: #e2668a;
  --lotus-ink: #b03a62;
  --blush: #fce6ec;
  --shadow: 0 1px 2px rgba(30, 27, 46, 0.05), 0 12px 32px rgba(30, 27, 46, 0.08);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--cream); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { padding: 26px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; }
.mark { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; letter-spacing: 0.02em; }
.mark svg { width: 40px; height: 40px; }

/* Hero */
.hero { padding: 56px 0 88px; text-align: center; position: relative; }
.monogram {
  width: 132px; height: 132px; margin: 0 auto 36px; border-radius: 50%;
  background: var(--ink); color: var(--cream); display: grid; place-items: center;
  font-family: var(--font-display); font-size: 3rem; font-weight: 600; letter-spacing: 0.02em;
  box-shadow: 0 0 0 8px var(--cream), 0 0 0 9px var(--gold), var(--shadow);
}
.kicker { display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.names { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.015em; font-size: clamp(2.6rem, 7vw, 5rem); }
.names span { display: block; }
.names .amp { font-style: italic; font-weight: 500; color: var(--gold); font-size: 0.6em; margin: 6px 0; }
.rule { width: 72px; height: 2px; background: var(--gold); margin: 40px auto 0; border: 0; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px;
  font-weight: 600; font-size: 0.97rem; text-decoration: none; border: 1.5px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--lotus-ink); color: #fff; }
.btn-primary:hover { background: #962f53; transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--cream); }
.btn-ghost:hover { border-color: var(--lotus); background: #fff; }
/* Footer */
.site-footer { margin-top: auto; border-top: 1px solid var(--line); padding: 26px 0; color: var(--ink-soft); font-size: 0.9rem; }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* 404 */
.notfound { flex: 1; display: grid; place-items: center; text-align: center; padding: 60px 20px; }
.notfound h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 10px; }
.notfound p { color: var(--ink-soft); margin: 0 0 26px; }

/* Linked name */
.names a { text-decoration: none; background-image: linear-gradient(var(--gold), var(--gold)); background-size: 0 2px; background-position: 50% 100%; background-repeat: no-repeat; transition: background-size 0.2s ease; }
.names a:hover { background-size: 100% 2px; }


/* Page nav */
.site-header nav { display: flex; gap: 22px; font-size: 0.93rem; font-weight: 500; }
.site-header nav a { text-decoration: none; color: var(--ink-soft); }
.site-header nav a:hover { color: var(--ink); }
.hero.compact { padding: 40px 0 64px; }
.lede { max-width: 34em; margin: 28px auto 0; color: var(--ink-soft); font-size: 1.08rem; }

/* Sections */
.block { padding: 0 0 80px; scroll-margin-top: 20px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 26px; }
.block-head h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.15; margin: 0; }
.block-head p { margin: 0; color: var(--ink-soft); font-size: 0.93rem; }

/* Domains */
.domains { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.domain { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.domain a.name { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; text-decoration: none; color: var(--lotus-ink); }
.domain a.name:hover { text-decoration: underline; text-underline-offset: 3px; }
.domain span { color: var(--ink-soft); font-size: 0.93rem; line-height: 1.5; }
.subs { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.subs a, .subs b { font-size: 0.8rem; font-weight: 500; padding: 3px 10px; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.subs a:hover { border-color: var(--gold); }

/* Projects */
.group-label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin: 34px 0 14px; }
.group-label:first-of-type { margin-top: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 22px 22px 20px; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(30, 27, 46, 0.04); }
.card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; line-height: 1.2; margin: 0 0 8px; }
.card p { margin: 0 0 16px; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.6; }
.card .meta { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.8rem; }
.tag { padding: 3px 10px; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); color: var(--ink-soft); font-weight: 500; }
.tag.live { background: #e7f4ec; border-color: #c4e3cf; color: #23633d; }
.tag.beta { background: var(--gold-soft); border-color: #ead7ae; color: #7a5a17; }
.card .go { margin-left: auto; font-weight: 600; color: var(--lotus-ink); text-decoration: none; white-space: nowrap; }
.card .go:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 640px) {
  .site-header nav { gap: 14px; font-size: 0.88rem; }
  .domains, .cards { grid-template-columns: 1fr; }
  .block-head { flex-direction: column; gap: 4px; }
}
