:root {
  color-scheme: light;
  --ink: #1e2421;
  --muted: #65706a;
  --paper: #f5f2eb;
  --paper-strong: #ebe6dc;
  --card: rgba(255, 255, 255, 0.78);
  --line: rgba(30, 36, 33, 0.12);
  --sage: #52695a;
  --sage-soft: #dfe7df;
  --clay: #9a684e;
  --sand: #cdbb9d;
  --shadow: 0 22px 70px rgba(44, 50, 45, 0.1);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 17px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 18% 0%, rgba(205, 187, 157, 0.22), transparent 33rem),
    radial-gradient(circle at 92% 18%, rgba(82, 105, 90, 0.11), transparent 31rem),
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 3px solid rgba(82, 105, 90, 0.35);
  outline-offset: 4px;
  border-radius: 8px;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.container {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 242, 235, 0.82);
  border-bottom: 1px solid rgba(30, 36, 33, 0.08);
  backdrop-filter: blur(18px);
}

.header-row {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  letter-spacing: 0;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.06;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #4b5550;
  font-size: 14px;
  font-weight: 600;
}

.nav a {
  transition: color 160ms ease;
}

.nav a:hover {
  color: var(--ink);
}

.hero {
  padding: 70px 0 42px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  gap: 52px;
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--sage);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin: 18px 0 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(49px, 6.4vw, 84px);
  line-height: 0.98;
  font-weight: 500;
  letter-spacing: -0.055em;
}

.hero-copy > p {
  max-width: 600px;
  margin-bottom: 30px;
  color: #57615c;
  font-size: clamp(17px, 2vw, 20px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 48px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  font-size: 14px;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  background: white;
  box-shadow: 0 12px 34px rgba(45, 50, 46, 0.08);
}

.button.primary {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.room-board {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(30, 36, 33, 0.08);
  border-radius: 42px 42px 132px 42px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(235, 230, 220, 0.76)),
    var(--paper-strong);
  box-shadow: var(--shadow);
}

.room-wall-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 122px;
  height: 1px;
  background: rgba(30, 36, 33, 0.11);
}

.window {
  position: absolute;
  top: 56px;
  right: 54px;
  width: 180px;
  height: 220px;
  border: 10px solid #e5dfd3;
  background:
    linear-gradient(90deg, transparent 48%, rgba(245, 242, 235, 0.9) 49%, rgba(245, 242, 235, 0.9) 52%, transparent 53%),
    linear-gradient(0deg, transparent 49%, rgba(245, 242, 235, 0.9) 50%, rgba(245, 242, 235, 0.9) 53%, transparent 54%),
    linear-gradient(155deg, #d9e2dd, #f4eee3 68%);
  box-shadow: inset 0 0 0 1px rgba(30, 36, 33, 0.08);
}

.shelf {
  position: absolute;
  left: 42px;
  top: 98px;
  width: 185px;
  height: 14px;
  border-radius: 4px;
  background: #725b48;
  box-shadow: 0 58px 0 #725b48;
}

.shelf::before,
.shelf::after {
  content: "";
  position: absolute;
  bottom: 14px;
  border-radius: 4px 4px 2px 2px;
}

.shelf::before {
  left: 16px;
  width: 26px;
  height: 58px;
  background: var(--sage);
  box-shadow: 30px 11px 0 #be9c77, 63px -7px 0 #d8cbb6;
}

.shelf::after {
  left: 118px;
  width: 42px;
  height: 34px;
  background: #b88266;
}

.sofa {
  position: absolute;
  left: 76px;
  bottom: 87px;
  width: 295px;
  height: 112px;
  border-radius: 28px 28px 19px 19px;
  background: #6d796f;
  box-shadow: inset 0 -13px 0 rgba(0, 0, 0, 0.05);
}

.sofa::before {
  content: "";
  position: absolute;
  left: -24px;
  right: -24px;
  bottom: -8px;
  height: 78px;
  border-radius: 22px;
  background: #607066;
}

.cushion {
  position: absolute;
  z-index: 2;
  width: 74px;
  height: 63px;
  border-radius: 18px;
  background: #d7bda0;
  left: 105px;
  bottom: 145px;
  transform: rotate(-5deg);
}

.cushion.second {
  left: 250px;
  width: 66px;
  height: 58px;
  background: #d9ddd3;
  transform: rotate(4deg);
}

.lamp {
  position: absolute;
  right: 50px;
  bottom: 72px;
  width: 8px;
  height: 174px;
  background: #343b37;
}

.lamp::before {
  content: "";
  position: absolute;
  left: -43px;
  top: -45px;
  width: 92px;
  height: 56px;
  border-radius: 50px 50px 15px 15px;
  background: #b89065;
}

.lamp::after {
  content: "";
  position: absolute;
  left: -38px;
  bottom: -4px;
  width: 84px;
  height: 10px;
  border-radius: 50%;
  background: #343b37;
}

.section {
  padding: 58px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}

.section-heading h2 {
  max-width: 700px;
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4.3vw, 53px);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.section-heading p {
  max-width: 420px;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 14px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.article-card {
  min-height: 350px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: 0 8px 30px rgba(44, 50, 45, 0.045);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 45px rgba(44, 50, 45, 0.08);
}

.card-visual {
  min-height: 170px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.card-visual.light {
  background:
    radial-gradient(circle at 61% 40%, rgba(255, 238, 183, 0.95), transparent 7rem),
    linear-gradient(145deg, #26302b, #6f7b70);
}

.card-visual.light::after {
  content: "";
  position: absolute;
  left: 51%;
  top: 18px;
  width: 2px;
  height: 82px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 80px 0 26px rgba(251, 225, 166, 0.8);
}

.card-visual.storage {
  background:
    linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,.12) 1px, transparent 1px),
    #b58e6b;
  background-size: 72px 72px;
}

.card-visual.storage::after {
  content: "";
  position: absolute;
  inset: 38px 46px;
  border: 9px solid rgba(70, 54, 43, 0.62);
  border-top: 0;
  box-shadow: inset 0 42px 0 rgba(246, 241, 231, .58);
}

.card-visual.work {
  background: linear-gradient(135deg, #dce3db, #e8dfcf);
}

.card-visual.work::before {
  content: "";
  position: absolute;
  left: 42px;
  right: 42px;
  bottom: 44px;
  height: 12px;
  background: #735f4c;
  box-shadow: 0 36px 0 -4px #735f4c;
}

.card-visual.work::after {
  content: "";
  position: absolute;
  left: 71px;
  bottom: 57px;
  width: 96px;
  height: 62px;
  border: 6px solid #39413d;
  background: #eef0ea;
}

.card-body {
  padding: 22px 22px 24px;
}

.card-meta {
  margin-bottom: 9px;
  color: var(--clay);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-body h3 {
  margin-bottom: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.card-body p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.principles {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 18px;
}

.principle-intro,
.principle-list {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
}

.principle-intro {
  padding: 38px;
  background: var(--ink);
  color: #f9f7f1;
}

.principle-intro h2 {
  margin: 15px 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.principle-intro p {
  color: rgba(249,247,241,.7);
}

.principle-list {
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.5);
}

.principle-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 17px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.principle-row:last-child {
  border-bottom: 0;
}

.principle-number {
  color: var(--clay);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
}

.principle-row h3 {
  margin-bottom: 6px;
  font-size: 16px;
}

.principle-row p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.palette {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.swatch {
  min-height: 180px;
  padding: 16px;
  display: flex;
  align-items: end;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.swatch:nth-child(1) { background: #ded7c9; }
.swatch:nth-child(2) { background: #c7b79e; }
.swatch:nth-child(3) { background: #7b887d; color: white; }
.swatch:nth-child(4) { background: #945f47; color: white; }
.swatch:nth-child(5) { background: #2f3733; color: white; }

.note-block {
  margin-top: 30px;
  padding: 30px 34px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.54);
}

.note-block h3 {
  margin-bottom: 7px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 500;
}

.note-block p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.article-hero {
  padding: 68px 0 35px;
}

.article-shell {
  width: min(calc(100% - 40px), 830px);
  margin: 0 auto;
}

.article-hero h1 {
  max-width: 820px;
  font-size: clamp(44px, 6vw, 72px);
}

.article-lead {
  max-width: 700px;
  color: var(--muted);
  font-size: 19px;
}

.article-meta-line {
  margin-top: 24px;
  padding-top: 18px;
  display: flex;
  gap: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.article-content {
  padding: 20px 0 80px;
}

.article-content h2 {
  margin: 42px 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.article-content h3 {
  margin: 30px 0 10px;
  font-size: 18px;
}

.article-content p,
.article-content li {
  color: #4f5954;
  font-size: 17px;
}

.article-content p {
  margin-bottom: 18px;
}

.article-content ul {
  margin: 12px 0 24px;
  padding-left: 22px;
}

.article-content li + li {
  margin-top: 8px;
}

.article-callout {
  margin: 32px 0;
  padding: 25px 28px;
  border-left: 4px solid var(--sage);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: rgba(223, 231, 223, 0.55);
}

.article-callout strong {
  display: block;
  margin-bottom: 5px;
}

.article-callout p {
  margin: 0;
  font-size: 15px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sage);
  font-size: 13px;
  font-weight: 700;
}

.back-link::before {
  content: "←";
}

.legal-card {
  margin: 65px auto 90px;
  padding: 42px;
  width: min(calc(100% - 40px), 800px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.58);
}

.legal-card h1 {
  margin-bottom: 22px;
  font-size: clamp(40px, 6vw, 64px);
}

.legal-card h2 {
  margin: 30px 0 8px;
  font-size: 20px;
}

.legal-card p {
  color: var(--muted);
}

.not-found {
  min-height: calc(100vh - 160px);
  display: grid;
  place-items: center;
  text-align: center;
}

.not-found-inner {
  max-width: 610px;
  padding: 70px 20px;
}

.not-found-code {
  display: block;
  color: var(--clay);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 90px;
  line-height: 1;
}

.not-found h1 {
  margin: 10px auto 17px;
  font-size: clamp(38px, 6vw, 64px);
}

.not-found p {
  margin-bottom: 28px;
  color: var(--muted);
}

.site-footer {
  padding: 30px 0 40px;
  border-top: 1px solid var(--line);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 12px;
}

.footer-links {
  display: flex;
  gap: 18px;
}

@media (max-width: 900px) {
  .hero-grid,
  .principles {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 34px;
  }

  .room-board {
    min-height: 470px;
  }

  .card-grid {
    grid-template-columns: 1fr 1fr;
  }

  .article-card:last-child {
    grid-column: 1 / -1;
  }

  .palette {
    grid-template-columns: repeat(3, 1fr);
  }

  .swatch:nth-child(4),
  .swatch:nth-child(5) {
    min-height: 130px;
  }
}

@media (max-width: 650px) {
  .container,
  .article-shell {
    width: min(calc(100% - 28px), var(--max));
  }

  .header-row {
    min-height: 66px;
  }

  .brand-copy small {
    display: none;
  }

  .nav {
    gap: 13px;
    font-size: 12px;
  }

  .nav a:nth-child(2) {
    display: none;
  }

  .hero {
    padding-top: 46px;
  }

  h1 {
    font-size: clamp(45px, 14vw, 65px);
  }

  .room-board {
    min-height: 390px;
    border-radius: 30px 30px 90px 30px;
  }

  .window {
    right: 27px;
    top: 38px;
    width: 135px;
    height: 165px;
  }

  .shelf {
    left: 25px;
    top: 77px;
    transform: scale(.82);
    transform-origin: left top;
  }

  .sofa {
    left: 47px;
    bottom: 73px;
    width: 225px;
    height: 95px;
  }

  .cushion {
    left: 68px;
    bottom: 125px;
  }

  .cushion.second {
    left: 186px;
  }

  .lamp {
    right: 32px;
    bottom: 59px;
    height: 150px;
  }

  .section {
    padding: 42px 0;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }

  .card-grid,
  .palette {
    grid-template-columns: 1fr;
  }

  .article-card:last-child {
    grid-column: auto;
  }

  .swatch {
    min-height: 105px !important;
  }

  .principle-intro {
    padding: 29px;
  }

  .principle-list {
    padding: 8px 21px;
  }

  .note-block {
    grid-template-columns: 1fr;
    padding: 25px;
  }

  .article-hero {
    padding-top: 48px;
  }

  .article-content p,
  .article-content li {
    font-size: 16px;
  }

  .legal-card {
    width: calc(100% - 28px);
    margin-top: 45px;
    padding: 28px;
  }

  .footer-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
