:root {
  --paper: #f7f3ec;
  --paper-deep: #f1ebe0;
  --card: #fffdf9;
  --ink: #211f1a;
  --muted: #6d685c;
  --clay: #9a5b3c;
  --olive: #5f6f52;
  --line: #e0d8c8;
  --line-soft: #eae3d5;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}

h1 {
  max-width: 820px;
  font-size: clamp(2.5rem, 6vw, 4.6rem);
}

h2 {
  max-width: 760px;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
}

h3 {
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
}

p {
  margin: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--clay);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-index {
  color: var(--clay);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(22px, 4vw, 56px);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(247, 243, 236, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 2.4vw, 30px);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links a:hover {
  color: var(--ink);
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(64px, 9vw, 128px) clamp(22px, 4vw, 56px);
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: clamp(24px, 6vw, 96px);
  margin-bottom: clamp(36px, 5vw, 64px);
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(72px, 11vw, 150px) clamp(22px, 4vw, 56px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
  gap: clamp(36px, 7vw, 110px);
  align-items: end;
}

.hero h1 {
  margin-top: 18px;
}

.hero-note {
  max-width: 430px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.hero-note p {
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.13rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 0.92rem;
  font-weight: 600;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-dark {
  background: var(--ink);
  color: var(--paper);
}

.button-dark:hover {
  background: transparent;
  color: var(--ink);
}

.button-light {
  background: transparent;
  color: var(--ink);
}

.button-light:hover {
  border-color: var(--clay);
  color: var(--clay);
}

/* ---------- Building cards ---------- */

.building-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 26px);
}

.building-card {
  display: grid;
  align-content: start;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  padding: clamp(26px, 3vw, 40px);
  box-shadow: 0 12px 34px rgba(60, 50, 34, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

a.building-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(60, 50, 34, 0.09);
}

.building-card .eyebrow {
  margin: 0;
}

.building-card p {
  color: var(--muted);
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
}

.card-cta {
  margin-top: 6px;
  color: var(--clay);
  font-size: 0.88rem;
  font-weight: 700;
}

/* ---------- Work with me ---------- */

.work {
  background: var(--paper-deep);
}

.work-subline {
  max-width: 640px;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(1rem, 1.24vw, 1.12rem);
}

.offer-list {
  display: grid;
  gap: clamp(12px, 1.6vw, 18px);
}

.offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  padding: clamp(22px, 2.6vw, 34px);
}

.offer p {
  margin-top: 10px;
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(0.96rem, 1.15vw, 1.05rem);
}

.offer-price {
  white-space: nowrap;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-top: 6px;
}

.work-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: clamp(30px, 4vw, 48px);
}

.work-cta small {
  color: var(--muted);
  font-size: 0.88rem;
}

/* ---------- About ---------- */

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.about-copy {
  display: grid;
  gap: 18px;
  max-width: 640px;
  margin-top: clamp(26px, 4vw, 48px);
}

.about-copy p {
  color: var(--muted);
  font-size: clamp(1rem, 1.24vw, 1.12rem);
}

.about-portrait {
  margin: 0;
}

.about-portrait img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.about-portrait figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

/* ---------- Follow ---------- */

.follow {
  background: var(--paper-deep);
}

.follow-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.follow-note {
  max-width: 560px;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(1rem, 1.24vw, 1.12rem);
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 26px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.social-links a:hover {
  border-color: var(--clay);
  color: var(--clay);
}

.social-links svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.social-links svg path,
.social-links svg rect,
.social-links svg circle {
  fill: none;
}

.social-links .linkedin svg path {
  fill: currentColor;
  stroke: none;
}

/* ---------- Forms ---------- */

.signup-form,
.contact-form {
  display: grid;
  gap: 14px;
}

.signup-form {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  padding: clamp(22px, 2.6vw, 32px);
}

.signup-form h3 {
  font-size: 1.15rem;
}

.signup-form p {
  color: var(--muted);
  font-size: 0.94rem;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

label span {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

input,
textarea {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  padding: 12px 14px;
  font: inherit;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--clay);
}

form button {
  justify-self: start;
  min-height: 48px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 24px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

form button:hover {
  background: transparent;
  color: var(--ink);
}

.hidden-field {
  display: none;
}

/* ---------- Contact ---------- */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: clamp(32px, 6vw, 96px);
}

.contact-note {
  max-width: 460px;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(1rem, 1.24vw, 1.12rem);
}

.contact-email {
  display: inline-block;
  margin-top: 18px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  border-bottom: 1px solid var(--clay);
  padding-bottom: 2px;
}

.contact-lang {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
}

/* ---------- Footer ---------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(22px, 4vw, 56px) 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-footer a:hover {
  color: var(--ink);
}

/* ---------- Legal pages ---------- */

.legal-page {
  max-width: 720px;
  padding: clamp(56px, 8vw, 96px) clamp(22px, 4vw, 56px);
}

.legal-page .label {
  color: var(--clay);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-page h1 {
  margin: 12px 0 32px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.legal-section {
  margin-bottom: 30px;
}

.legal-section h2 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.legal-section p {
  color: var(--muted);
}

.legal-section a {
  color: var(--clay);
}

/* ---------- Responsive ---------- */

@media (max-width: 880px) {
  .hero-grid,
  .about-layout,
  .follow-layout,
  .contact-layout,
  .building-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-heading {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .offer {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .offer-price {
    order: -1;
  }

  .nav-links {
    font-size: 0.78rem;
  }
}
