@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  color-scheme: light;
  --ink: #202c22;
  --muted: #4f5d51;
  --accent: #3d6149;
  --deep: #274632;
  --paper: #f7f7ef;
  --section: #eef0e6;
  --card: #fafaf3;
  --line: #dbe0d3;
  --display: 'Instrument Serif', Georgia, serif;
  --body: 'DM Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.65 var(--body); }
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, [tabindex]:focus-visible { outline: 3px solid #4e7252; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.03; }
.wrap { width: min(100% - 6.5rem, 72rem); margin-inline: auto; }
.skip { position: absolute; z-index: 10; inset: .75rem auto auto .75rem; padding: .65rem 1rem; background: white; transform: translateY(-200%); }
.skip:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; }
.header-inner { min-height: 4.7rem; }
.wordmark { display: inline-flex; align-items: center; gap: .7rem; flex: none; text-decoration: none; font: 400 1.72rem/1 var(--display); }
.wordmark-icon { width: 1.85rem; height: 1.85rem; border-radius: 50%; background: var(--deep); display: grid; place-items: center; position: relative; }
.wordmark-icon::before { content: ''; width: .54rem; height: .83rem; border-radius: 85% 4% 85% 4%; background: #d9e5cb; rotate: 26deg; translate: 1px -1px; }
.wordmark-icon::after { content: ''; position: absolute; width: 1px; height: .75rem; background: var(--deep); rotate: 31deg; translate: 0 2px; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 1.6rem; }
.main-nav a { color: #37483b; font-size: .92rem; font-weight: 600; text-decoration: none; text-underline-offset: .25rem; }
.main-nav a:hover { text-decoration: underline; }

.hero { display: grid; grid-template-columns: 1fr 1.07fr; gap: clamp(2.5rem, 6.3vw, 6.5rem); align-items: center; padding-block: clamp(3rem, 6.2vw, 5.15rem); }
.hero-copy { padding-block: .45rem; }
.hero h1 { font-size: clamp(3.5rem, 6.25vw, 6.1rem); letter-spacing: -.025em; }
.hero h1 em { color: var(--accent); font-weight: 400; }
.hero-intro { max-width: 25rem; margin-top: 1.15rem; color: var(--muted); font-size: clamp(1.05rem, 1.65vw, 1.22rem); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.1rem; margin-top: 1.65rem; padding: .7rem 1.27rem; border: 1px solid var(--deep); border-radius: .3rem; background: var(--deep); color: #fff; text-decoration: none; font-weight: 650; }
.button:hover { background: #396049; }
.hero-media, .article-media, .card-media { overflow: hidden; background: #dde4d5; }
.hero-media { aspect-ratio: 1.36; border-radius: .45rem; }
.hero-media img, .article-media img, .card-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media img { object-position: 50% 48%; }

.library-section { background: var(--section); border-block: 1px solid var(--line); padding: 3.15rem 0 3.6rem; scroll-margin-top: 1rem; }
.section-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: .65rem 1rem; margin-bottom: 1.6rem; }
.section-heading h2, .related h2 { font-size: clamp(2.5rem, 4vw, 3.5rem); }
.section-heading p { color: var(--muted); margin-bottom: .12rem; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.guide-card { min-width: 0; height: 100%; }
.guide-link { display: block; height: 100%; border: 1px solid var(--line); border-radius: .5rem; background: var(--card); color: inherit; text-decoration: none; overflow: hidden; transition: border-color .22s, box-shadow .22s; }
.guide-link:hover { border-color: #78927a; box-shadow: 0 5px 18px #304f3314; }
.card-media { aspect-ratio: 1.83; }
.card-media img { transition: scale .25s ease; }
.guide-link:hover img { scale: 1.035; }
.card-copy { padding: 1rem 1.1rem 1.2rem; }
.topic { display: block; margin-bottom: .3rem; color: var(--accent); font-size: .875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.card-copy h3 { font-size: clamp(1.7rem, 2.75vw, 2.3rem); max-width: 17ch; }
.card-copy p { color: var(--muted); margin-top: .65rem; }
.footer-inner { padding-block: 1.65rem; }
.footer-inner p { color: var(--muted); }
.footer-nav { display: flex; flex-wrap: wrap; gap: .6rem 1.3rem; }
.footer-nav a { color: var(--accent); text-underline-offset: .18rem; }
.care-section { border-top: 0; }
.guide-text-link { padding: 1.25rem 1.1rem 1.4rem; }
.guide-text-link h3 { font-size: clamp(1.7rem, 2.75vw, 2.3rem); }
.guide-text-link p { margin-top: .65rem; color: var(--muted); }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: .35rem .65rem; margin-block: 1.65rem; font-size: .925rem; color: var(--muted); }
.breadcrumbs a { text-underline-offset: .2rem; }
.article-header { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 6vw, 5.25rem); align-items: center; padding-bottom: 2.8rem; border-bottom: 1px solid var(--line); }
.article-heading .topic { margin-bottom: .65rem; }
.article-heading h1 { font-size: clamp(3rem, 5.8vw, 5.25rem); letter-spacing: -.02em; }
.article-intro { margin-top: 1rem; max-width: 38rem; color: var(--muted); font-size: 1.08rem; }
.editorial-note { margin-top: 1rem; color: var(--muted); font-size: .9rem; }
.editorial-note a { text-underline-offset: .18rem; }
.article-figure { margin: 0; min-width: 0; }
.article-figure figcaption { margin-top: .65rem; color: var(--muted); font-size: .875rem; line-height: 1.5; }
.information-wrap > .article-content { margin-top: 2.5rem; }
.article-header-text { grid-template-columns: minmax(0, 1fr); }
.article-header-text h1 { max-width: 20ch; }
.information-wrap { padding-bottom: 3.6rem; }
.information-wrap h1 { font-size: clamp(3rem, 6vw, 5rem); }
.information-wrap a { color: var(--accent); text-underline-offset: .18rem; }
.article-media { aspect-ratio: 1.42; border-radius: .45rem; }
.article-main { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: clamp(1.6rem, 5vw, 4.5rem); padding-top: 2.3rem; }
.article-side nav { position: sticky; top: 1.5rem; }
.article-side h2 { font: 700 .875rem/1.4 var(--body); letter-spacing: .07em; text-transform: uppercase; margin-bottom: .7rem; }
.article-side ul { margin: 0; padding: 0; list-style: none; }
.article-side li + li { margin-top: .6rem; }
.article-side a, .references a { text-underline-offset: .2em; color: var(--accent); }
.article-side a { text-decoration: none; }
.article-side a:hover, .references a:hover { text-decoration: underline; }
.article-content { max-width: 54rem; min-width: 0; }
.quick { padding: 1.2rem 1.4rem; border-left: 3px solid var(--accent); border-radius: 0 .35rem .35rem 0; background: #eaf0e3; }
.quick h2 { font-size: 1.85rem; margin-bottom: .35rem; }
.quick p { max-width: 72ch; }
.prose-section { margin-top: 2.65rem; scroll-margin-top: 1rem; }
.prose-section h2 { font-size: clamp(2.15rem, 3.6vw, 3rem); margin-bottom: .8rem; }
.prose-section p { max-width: 69ch; }
.prose-section p + p { margin-top: .75rem; }
.care-list { padding-left: 1.35rem; }
.care-list li + li { margin-top: .5rem; }
.table-scroll { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: .45rem; background: var(--card); }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: .8rem 1rem; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { background: #e9eee2; color: #284432; }
tbody th { width: 8.75rem; font-weight: 700; }
tbody tr:last-child > * { border-bottom: 0; }
.references ul { margin-block: 0; padding-left: 1.2rem; }
.related { margin-top: 3rem; padding: 2.35rem 0 3.3rem; border-top: 1px solid var(--line); }
.related h2 { margin-bottom: 1.25rem; }
.related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 53rem; }
.site-footer { border-top: 1px solid var(--line); }

.room-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.room-card { margin: 0; border: 1px solid var(--line); background: var(--card); border-radius: .45rem; overflow: hidden; }
.room-card figcaption { padding: .8rem; }
.room-card h3 { font-size: 1.55rem; margin-bottom: .35rem; }
.room-illustration { height: 7rem; position: relative; overflow: hidden; background: linear-gradient(#dfe5d7 0 78%, #b9c6b0 78%); }
.room-window { position: absolute; width: 28%; height: 55%; top: 13%; left: 15%; border: 4px solid #798d78; border-radius: .25rem .25rem 0 0; background: linear-gradient(90deg, transparent 48%, #798d78 48% 52%, transparent 52%), linear-gradient(180deg, #dce5ef 48%, #798d78 48% 52%, #ebeee5 52%); box-shadow: 0 3px #7f917a; }
.room-light { position: absolute; top: 24%; height: 66%; width: 44%; left: 34%; background: #f6efcd; opacity: .65; clip-path: polygon(0 0, 100% 69%, 100% 100%, 0 61%); }
.room-plant { position: absolute; width: 19%; height: 49%; bottom: 14%; left: 52%; }
.room-plant::before { content: ''; position: absolute; width: 2px; height: 63%; left: 50%; bottom: 28%; background: #537552; }
.room-plant::after { content: ''; position: absolute; width: 76%; height: 31%; left: 12%; bottom: 0; background: #a86f57; clip-path: polygon(0 0, 100% 0, 84% 100%, 16% 100%); }
.room-plant span { position: absolute; width: 48%; height: 23%; background: #4f7957; border-radius: 95% 0 95% 0; }
.room-plant span:nth-child(1) { top: 13%; left: 51%; rotate: -12deg; }
.room-plant span:nth-child(2) { top: 30%; left: 6%; rotate: 65deg; }
.room-plant span:nth-child(3) { top: 41%; left: 50%; rotate: 3deg; }
.room-patio .room-light { opacity: .43; width: 28%; }
.room-patio .room-window { background: linear-gradient(90deg, #b4bcac 48%, #798d78 48% 53%, #c3cbbc 53%); }
.room-fondo { background: linear-gradient(90deg, #dfe5d7, #a2ae9c); }
.room-fondo .room-window { width: 20%; left: 8%; }
.room-fondo .room-light { opacity: .27; left: 20%; width: 42%; }
.room-fondo .room-plant { left: 73%; }

@media (max-width: 900px) {
  .wrap { width: calc(100% - 3rem); }
  .hero { gap: 2.4rem; }
  .article-main { grid-template-columns: 10rem minmax(0, 1fr); }
}

@media (max-width: 700px) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { min-height: auto; padding-block: .9rem; flex-wrap: wrap; gap: .7rem 1.25rem; }
  .main-nav { gap: 1rem; }
  .main-nav a { display: inline-block; padding-block: .25rem; }
  .hero { grid-template-columns: 1fr; padding-block: 2.25rem 2.15rem; gap: 1.55rem; }
  .hero h1 { font-size: clamp(3.2rem, 10vw, 4.75rem); }
  .hero-break { display: none; }
  .hero-media { aspect-ratio: 1.52; }
  .library-section { padding-block: 2.35rem 2.6rem; }
  .guide-grid { grid-template-columns: 1fr; gap: 1rem; }
  .card-copy h3 { max-width: none; font-size: 2rem; }
  .footer-inner { align-items: start; flex-direction: column; gap: .55rem; }
  .article-header, .article-main { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
  .article-header { padding-bottom: 1.65rem; }
  .article-main { padding-top: 1.5rem; }
  .article-heading h1 { font-size: clamp(2.85rem, 8vw, 4.5rem); }
  .article-side nav { position: static; }
  .article-side li + li { margin-top: .2rem; }
  .article-media { aspect-ratio: 1.75; }
  .room-grid { grid-template-columns: 1fr; }
  .room-illustration { height: 6.25rem; }
  table { min-width: 32rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
