:root {
  --bg: #14110f;
  --bg-alt: #1b1613;
  --surface: rgba(33, 27, 24, 0.92);
  --surface-strong: #241d1a;
  --surface-soft: rgba(255, 248, 240, 0.03);
  --text: #f4ede4;
  --text-soft: #e6d9c7;
  --muted: #c8b7a4;
  --accent: #c7a15a;
  --accent-bright: #e7c784;
  --accent-cool: #6f8f8e;
  --border: rgba(199, 161, 90, 0.22);
  --border-strong: rgba(199, 161, 90, 0.38);
  --focus: #8fd3ff;
  --shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.28);
  --radius: 1rem;
  --max-width: 72rem;
  --reading-width: 46rem;
  --space-xs: 0.5rem;
  --space-sm: 0.875rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
  --space-2xl: 5rem;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(111, 143, 142, 0.08), transparent 30%),
    linear-gradient(180deg, #181311 0%, #120f0d 100%);
  letter-spacing: 0.01em;
}

a {
  color: var(--accent-bright);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.08em;
}

a:hover {
  color: #f4dbab;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

main {
  display: block;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
}

.narrow,
.reading-column {
  width: min(100%, var(--reading-width));
  margin: 0 auto;
}

.center { text-align: center; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  background: #ffffff;
  color: #000000;
  padding: 0.8rem 1rem;
  z-index: 1000;
  border-radius: 0.5rem;
}

.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(20, 17, 15, 0.92);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15);
}

.header-inner,
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.header-inner {
  padding: 1rem 0;
}

.site-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  line-height: 1.1;
  letter-spacing: 0.03em;
  color: var(--text);
  text-decoration: none;
}

.site-title:hover {
  color: var(--text);
}

.site-nav ul,
.site-footer ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.site-nav a,
.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-footer a:hover,
.site-nav a[aria-current="page"],
.site-footer a[aria-current="page"] {
  color: var(--text);
}

.site-nav a {
  padding: 0.35rem 0;
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15rem;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.hero,
.page-hero {
  padding: var(--space-2xl) 0 var(--space-xl);
  position: relative;
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(199, 161, 90, 0.05), transparent 55%);
  pointer-events: none;
}

.hero-grid,
.two-column,
.media-feature,
.about-grid {
  display: grid;
  gap: var(--space-lg);
  align-items: start;
}

.hero-grid,
.two-column,
.about-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.media-feature {
  grid-template-columns: 1.35fr 1fr;
}

.eyebrow {
  margin: 0 0 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--accent-bright);
}

h1,
h2,
h3,
h4 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.15;
  margin-top: 0;
  color: var(--text);
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  margin-bottom: 1rem;
  max-width: 12ch;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 0.9rem;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
}

p,
ul,
ol {
  margin-top: 0;
}

.lede {
  font-size: 1.2rem;
  color: var(--text-soft);
  max-width: 60ch;
}

.small-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.section {
  padding: var(--space-xl) 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.03));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.quote-section blockquote {
  margin: 0;
  padding: 2rem;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
  box-shadow: var(--shadow);
}

.quote-section p {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1.35;
}

.hero-panel,
.card,
.project-block,
.portrait-placeholder,
.media-placeholder,
.surface-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-panel,
.project-block,
.surface-panel {
  padding: 1.5rem;
}

.hero-panel {
  position: relative;
  overflow: hidden;
}

.hero-panel::before,
.media-placeholder::before,
.portrait-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(199, 161, 90, 0.08), transparent 42%, rgba(111, 143, 142, 0.08));
  pointer-events: none;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
}

.card {
  padding: 1.5rem;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  background: var(--surface-strong);
}

.card h3 a {
  color: var(--text);
  text-decoration: none;
}

.card h3 a:hover {
  text-decoration: underline;
}

.button-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.button {
  display: inline-block;
  padding: 0.92rem 1.3rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  color: #18110c;
}

.button:hover {
  color: #120d08;
  filter: brightness(1.05);
}

.button-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--accent);
}

.button-secondary:hover {
  background: rgba(199, 161, 90, 0.12);
  color: var(--text);
}

.portrait-placeholder,
.media-placeholder {
  position: relative;
  min-height: 19rem;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  padding: 1.5rem;
  overflow: hidden;
}

.portrait-placeholder {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.02)),
    repeating-linear-gradient(135deg, rgba(199,161,90,0.08), rgba(199,161,90,0.08) 2px, transparent 2px, transparent 14px),
    var(--surface);
}

.media-placeholder {
  background:
    radial-gradient(circle at center, rgba(111, 143, 142, 0.12), transparent 40%),
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.015)),
    var(--surface);
}

.placeholder-inner {
  position: relative;
  z-index: 1;
  max-width: 26rem;
}

.placeholder-mark {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-bright);
}

.media-grid { margin-top: 1.5rem; }
.plain-list { padding-left: 1.2rem; }
.plain-list li + li { margin-top: 0.4rem; }

.principle {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.principle:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.closing-line {
  margin-top: 2.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-bright);
}

.project-status {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-bright);
  font-size: 0.8rem;
  margin-bottom: 0.6rem;
}

.stacked-projects {
  display: grid;
  gap: 1.5rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.form-group {
  display: grid;
  gap: 0.45rem;
}

label {
  font-weight: 700;
  color: var(--text-soft);
}

input,
select,
textarea {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(255,255,255,0.16);
  background: #f7f1ea;
  color: #201814;
  font: inherit;
}

input::placeholder,
textarea::placeholder {
  color: #6c6056;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  background: rgba(0, 0, 0, 0.22);
}

.footer-inner {
  align-items: center;
}

.footer-note {
  color: var(--muted);
}

hr {
  border: 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  margin: 2rem 0;
}

@media (max-width: 52rem) {
  .header-inner,
  .footer-inner {
    align-items: start;
  }

  .hero-grid,
  .two-column,
  .media-feature,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero,
  .page-hero {
    padding-top: 3.5rem;
  }

  h1 {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
