:root {
  --charcoal: #11100e;
  --ink: #171512;
  --warm-white: #f3efe7;
  --stone: #b8b0a2;
  --stone-muted: #8e877c;
  --bronze: #b08a5a;
  --bronze-soft: #d0b181;
  --line: rgba(243, 239, 231, 0.14);
  --panel: rgba(243, 239, 231, 0.055);
  --panel-strong: rgba(243, 239, 231, 0.09);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--charcoal);
  color: var(--warm-white);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::selection {
  background: var(--bronze);
  color: var(--charcoal);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 22px clamp(20px, 5vw, 64px);
  background: linear-gradient(180deg, rgba(17, 16, 14, 0.9), rgba(17, 16, 14, 0));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.04rem;
}

.brand-line {
  width: 34px;
  height: 1px;
  background: var(--bronze);
}

.brand-sub {
  color: var(--stone);
  font-size: 0.72rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 32px);
  color: rgba(243, 239, 231, 0.78);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links a {
  transition: color 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--warm-white);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/prague-architecture-hero.jpg");
  background-size: cover;
  background-position: center;
  filter: saturate(0.72) contrast(1.02) brightness(0.82);
  transform: scale(1.01);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(17, 16, 14, 0.96) 0%, rgba(17, 16, 14, 0.74) 36%, rgba(17, 16, 14, 0.2) 72%),
    linear-gradient(0deg, rgba(17, 16, 14, 0.86) 0%, rgba(17, 16, 14, 0.08) 48%, rgba(17, 16, 14, 0.46) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  padding-top: 68px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--bronze-soft);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.08;
}

h1 {
  max-width: 760px;
  margin-bottom: 26px;
  font-size: clamp(3rem, 8vw, 7rem);
}

.hero-copy {
  max-width: 620px;
  color: rgba(243, 239, 231, 0.82);
  font-size: clamp(1.04rem, 1.7vw, 1.35rem);
}

.hero-footer {
  position: absolute;
  left: clamp(20px, 5vw, 64px);
  right: clamp(20px, 5vw, 64px);
  bottom: 28px;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 20px;
  border-top: 1px solid rgba(243, 239, 231, 0.18);
  color: rgba(243, 239, 231, 0.72);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section,
.section-band,
.contact-section {
  padding: clamp(78px, 11vw, 138px) clamp(20px, 5vw, 64px);
}

.section-band {
  background: #171512;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-grid,
.split,
.section-heading,
.principles-grid,
.focus-grid,
.project-grid,
.contact-section,
.site-footer {
  width: min(var(--max), 100%);
  margin-inline: auto;
}

.intro-grid,
.split {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(280px, 1fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: start;
}

.intro h2,
.split h2,
.section-heading h2,
.contact-section h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4.5vw, 4rem);
}

.intro p,
.copy-stack p,
.contact-block p {
  color: rgba(243, 239, 231, 0.74);
  font-size: 1.02rem;
}

.copy-stack p:last-child {
  margin-bottom: 0;
}

.section-heading {
  margin-bottom: clamp(34px, 6vw, 66px);
}

.section-heading h2 {
  max-width: 820px;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.principles-grid article,
.focus-panel,
.project-card {
  background: #171512;
}

.principles-grid article {
  min-height: 270px;
  padding: 30px;
}

.rule {
  display: block;
  width: 38px;
  height: 1px;
  margin-bottom: 38px;
  background: var(--bronze);
}

h3 {
  margin-bottom: 18px;
  font-size: 1.55rem;
}

.principles-grid p,
.focus-panel li,
.project-card p,
.site-footer p {
  color: rgba(243, 239, 231, 0.68);
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.focus-panel {
  min-height: 360px;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
}

.panel-index,
.project-card span {
  margin-bottom: 76px;
  color: var(--bronze-soft);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.focus-panel ul {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.focus-panel li {
  padding-top: 12px;
  border-top: 1px solid rgba(243, 239, 231, 0.1);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(176, 138, 90, 0.13), rgba(243, 239, 231, 0.025) 46%),
    var(--ink);
}

.project-card span {
  margin-bottom: auto;
}

.project-card.muted {
  background: var(--panel);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 0.7fr);
  gap: 44px;
  align-items: end;
}

.contact-block {
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.contact-block a {
  display: inline-block;
  margin-top: 8px;
  color: var(--bronze-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.3rem, 2.6vw, 2rem);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 34px;
  padding: 32px clamp(20px, 5vw, 64px) 44px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
}

.site-footer p {
  margin-bottom: 0;
}

.site-footer p:last-child {
  max-width: 660px;
  text-align: right;
}

@media (max-width: 900px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 820px;
  }

  .hero-inner {
    padding-top: 24px;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(17, 16, 14, 0.95), rgba(17, 16, 14, 0.58)),
      linear-gradient(0deg, rgba(17, 16, 14, 0.92), rgba(17, 16, 14, 0.12) 58%);
  }

  .intro-grid,
  .split,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .principles-grid,
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .focus-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: grid;
  }

  .site-footer p:last-child {
    text-align: left;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding-top: 18px;
  }

  .brand-line {
    width: 22px;
  }

  .hero {
    min-height: 760px;
  }

  .hero-media {
    background-position: 61% center;
  }

  .hero-footer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .principles-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .principles-grid article,
  .focus-panel,
  .project-card {
    min-height: auto;
  }

  .panel-index {
    margin-bottom: 46px;
  }
}
