:root {
  --ink: #1d1230;
  --ink-soft: #4a3f60;
  --purple: #56288f;
  --purple-deep: #34195c;
  --purple-tint: #f1ecf8;
  --lime: #8cc63f;
  --yellow: #f9de1a;
  --orange: #f9af1b;
  --paper: #fcfbf8;
  --card: #ffffff;
  --line: #e4dfec;
  --radius: 14px;
  --maxw: 1120px;
  --font-body: "Avenir Next", "Segoe UI", "Helvetica Neue", Roboto, system-ui, sans-serif;
  --font-head: "Avenir Next", "Segoe UI", "Helvetica Neue", Roboto, system-ui, sans-serif;
  --font-serif: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); text-underline-offset: 3px; }
a:hover { color: var(--purple-deep); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }

/* header */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem;
  padding: 8px 14px; border-radius: 999px;
}
.nav a:hover { background: var(--purple-tint); color: var(--purple-deep); }
.nav a[aria-current="page"] { background: var(--purple); color: #fff; }

/* hero */
.hero { position: relative; overflow: hidden; background: var(--purple-deep); color: #fff; }
.hero .wrap { position: relative; z-index: 1; padding-top: 88px; padding-bottom: 96px; }
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.04; letter-spacing: -.02em; margin: 0 0 20px; max-width: 14ch;
}
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero p.lead { font-size: 1.25rem; max-width: 36rem; margin: 0 0 32px; color: #e5dbf5; }
.btn {
  display: inline-block; background: var(--yellow); color: var(--purple-deep);
  font-weight: 700; text-decoration: none; padding: 14px 28px; border-radius: 999px;
  border: 2px solid var(--yellow);
}
.btn:hover { background: #fff; border-color: #fff; color: var(--purple-deep); }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); margin-left: 8px; }
.btn.ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
/* logo panel */
.hero-logo { position: absolute; right: max(24px, calc((100vw - var(--maxw)) / 2 + 24px)); top: 50%; transform: translateY(-50%); z-index: 1; background: #fff; border-radius: 22px; padding: 44px 48px; box-shadow: 0 0 0 10px rgba(255,255,255,.08); }
.hero-logo img { width: 300px; height: auto; }
@media (max-width: 960px) { .hero-logo { display: none; } }

/* sections */
section { padding: 72px 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--purple); margin: 0 0 8px; }
h2 { font-family: var(--font-head); font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 18px; }
.section-intro { max-width: 46rem; color: var(--ink-soft); margin: 0 0 40px; }
.alt { background: var(--purple-tint); }

.two-col { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; gap: 12px; } }

/* services */
.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 48px; counter-reset: s; }
.services li { counter-increment: s; border-top: 2px solid var(--ink); padding: 18px 0 26px; }
.services li::before { content: counter(s, decimal-leading-zero); display: block; font-weight: 700; color: var(--purple); font-size: .85rem; letter-spacing: .08em; margin-bottom: 6px; }
.services h3 { margin: 0 0 6px; font-size: 1.2rem; }
.services p { margin: 0; color: var(--ink-soft); font-size: 1rem; }

/* portfolio */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card .shot { aspect-ratio: 4 / 3; overflow: hidden; background: var(--purple-tint); border-bottom: 1px solid var(--line); }
.card .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.tag { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--purple); }
.card h3 { margin: 0 0 6px; font-size: 1.25rem; line-height: 1.25; }
.card p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
.card .more { margin-top: auto; padding-top: 14px; font-weight: 600; font-size: .95rem; }

/* articles list */
.posts { list-style: none; margin: 0; padding: 0; }
.posts li { border-top: 1px solid var(--line); }
.posts li:last-child { border-bottom: 1px solid var(--line); }
.posts a.post { display: grid; grid-template-columns: 9.5rem 1fr; gap: 8px 24px; padding: 22px 4px; text-decoration: none; color: inherit; }
.posts a.post:hover h3 { color: var(--purple); text-decoration: underline; text-underline-offset: 4px; }
.posts time { color: var(--ink-soft); font-size: .9rem; font-weight: 600; padding-top: 3px; }
.posts h3 { margin: 0 0 4px; font-size: 1.2rem; line-height: 1.3; }
.posts p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
@media (max-width: 640px) { .posts a.post { grid-template-columns: 1fr; } }

/* article page */
.article-head { background: var(--purple-tint); padding: 56px 0 40px; border-bottom: 1px solid var(--line); }
.article-head h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); line-height: 1.12; letter-spacing: -.015em; margin: 6px 0 14px; max-width: 24ch; }
.meta { color: var(--ink-soft); font-size: .95rem; margin: 0; }
.article-body { padding: 48px 0 24px; font-family: var(--font-serif); font-size: 1.15rem; line-height: 1.75; }
.article-body h2, .article-body h3 { font-family: var(--font-head); margin: 2em 0 .5em; }
.article-body h2 { font-size: 1.5rem; } .article-body h3 { font-size: 1.2rem; }
.article-body p, .article-body ul, .article-body ol { margin: 0 0 1.2em; }
.article-body img { border-radius: 8px; margin: 1.5em 0; }
.article-body blockquote { margin: 1.5em 0; padding: 0 0 0 20px; border-left: 4px solid var(--lime); color: var(--ink-soft); }
.notice { font-family: var(--font-body); font-size: .95rem; background: #fff7d6; border: 1px solid #ecd87a; border-radius: 10px; padding: 14px 18px; margin: 0 0 32px; color: #4b4010; }
.archive-note { font-size: .9rem; color: var(--ink-soft); border-top: 1px solid var(--line); padding: 20px 0 56px; font-family: var(--font-body); }
.back { display: inline-block; margin-top: 8px; font-weight: 600; }

/* contact */
.contact { background: var(--purple); color: #fff; text-align: center; }
.contact h2 { color: #fff; }
.contact p { color: #e5dbf5; max-width: 34rem; margin: 0 auto 28px; }

/* footer */
.site-footer { background: var(--ink); color: #cfc5e3; font-size: .88rem; padding: 40px 0; }
.site-footer p { margin: 4px 0; max-width: 60rem; }
.site-footer .disclaimer { margin-top: 18px; font-size: .78rem; opacity: .75; }
.site-footer a { color: #fff; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.subtitle { font-size: 1.2rem; color: var(--ink-soft); margin: 0 0 12px; font-style: italic; }
.article-body small { font-family: var(--font-body); letter-spacing: .06em; color: var(--ink-soft); }
