:root {
  color-scheme: light;
  --paper: #f8f6ee;
  --white: #fffcf6;
  --ink: #1e3126;
  --muted: #4b5b50;
  --green: #245242;
  --deep: #173d31;
  --sage: #e6ebe0;
  --line: #cbd2c4;
  --imprint: #71452f;
  --heading: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --body: system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.65 var(--body); }
main { min-height: 52vh; }
a { color: var(--green); text-underline-offset: .22em; }
a:hover { color: var(--deep); text-decoration-thickness: .13em; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid #a05b2c; outline-offset: 4px;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--heading); font-weight: 500; line-height: 1.09; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.1vw, 4.8rem); letter-spacing: -.046em; margin: .3em 0 .38em; }
h2 { font-size: clamp(1.65rem, 3.15vw, 2.65rem); letter-spacing: -.027em; margin: 0 0 .55em; }
h3 { font-size: 1.45rem; margin: 0 0 .45em; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
figure { margin: 0; }
form { margin: 0; }
.shell { width: min(75rem, calc(100% - 4.5rem)); margin-inline: auto; }
.narrow { max-width: 50rem; }
.section-space { padding-block: clamp(2rem, 6vw, 5.5rem); }
.form-page { max-width: 36rem; }
.eyebrow { font-size: .77rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--imprint); }
.lede { color: var(--muted); font-size: clamp(1.06rem, 1.55vw, 1.22rem); max-width: 55ch; }
.muted { color: var(--muted); }
.skip { position: fixed; z-index: 2; top: .6rem; left: .6rem; padding: .6rem 1rem; background: var(--white); transform: translateY(-200%); }
.skip:focus { transform: none; }

.header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: .85rem 2rem; padding-block: 1.1rem; }
.header nav, .footer nav { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem 1.5rem; }
.header nav a, .footer nav a { color: var(--ink); font-weight: 580; font-size: .92rem; text-decoration: none; }
.header nav a:hover, .footer nav a:hover { text-decoration: underline; }
.nav-account { border: 1px solid #9eafa0; padding: .42rem .85rem; border-radius: .18rem; }
.brand { display: inline-flex; align-items: center; gap: .36em; color: var(--ink); font: 1.65rem/1.1 var(--heading); text-decoration: none; white-space: nowrap; letter-spacing: -.035em; }
.brand small { font: 600 .65rem/1.3 var(--body); letter-spacing: .11em; text-transform: uppercase; max-width: 3.2rem; white-space: normal; }
.brand-mark { display: block; width: 1.35rem; height: 1.35rem; margin-inline: .12rem .2rem; border: 2px solid var(--green); transform: rotate(45deg); position: relative; }
.brand-mark::after { content: ""; position: absolute; inset: .22rem; border: 1px solid var(--green); }
.notice { text-align: center; background: var(--deep); color: #f5f5ef; padding: .32rem 1.1rem; font-size: .82rem; letter-spacing: .015em; }
.footer { border-top: 1px solid var(--line); background: var(--sage); }
.footer-inner { padding-block: 2rem; align-items: flex-start; }
.footer p { font-size: .95rem; color: var(--muted); margin-top: .6rem; }
.footer nav { align-self: center; }

.hero { display: grid; grid-template-columns: .83fr 1.17fr; align-items: center; gap: clamp(1.8rem, 4vw, 4rem); padding-block: clamp(2rem, 5vw, 4.5rem); }
.hero h1 { font-size: clamp(3.2rem, 6.45vw, 6.25rem); line-height: .99; margin: .19em 0 .29em; }
.hero .eyebrow { margin-bottom: 0; }
.hero .lede { max-width: 42ch; margin-top: 1rem; }
.hero-topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.hero-topics a {
  display: flex; flex-direction: column; justify-content: space-between; gap: .22rem;
  padding: .7rem .85rem; border: 1px solid #a9bcaa; border-radius: .2rem;
  background: var(--sage); color: var(--deep); text-decoration: none; line-height: 1.3;
}
.hero-topics span { font-size: .96rem; font-weight: 700; }
.hero-topics small { color: var(--muted); font-size: .82rem; }
.hero-topics a:hover { border-color: var(--green); }
.hero-topics a:hover span { text-decoration: underline; }
.hero-image { width: 100%; aspect-ratio: 1.29; object-fit: cover; object-position: 52%; border-radius: .22rem; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; }
.hero .actions { margin-top: 1.65rem; }
.button {
  display: inline-flex; justify-content: center; align-items: center;
  min-height: 2.85rem; padding: .58rem 1rem; border: 1px solid var(--green);
  border-radius: .2rem; background: var(--green); color: white; font: 650 .93rem/1.35 var(--body);
  text-decoration: none; cursor: pointer; text-align: center;
}
.button:hover { background: var(--deep); color: white; }
.button.secondary { background: transparent; color: var(--green); }
.button.secondary:hover { background: var(--sage); color: var(--ink); }
.button.light { background: #f7f3e6; color: var(--deep); border-color: #f7f3e6; }
.button.light:hover { background: #e6eadb; border-color: #e6eadb; }
.button.outline-light { background: transparent; border-color: #d8e1d6; }
.button.outline-light:hover { background: #295646; }
.hero .bedroom-action { display: none; }
.text-link { display: inline-block; font-weight: 650; }
.feature { display: grid; grid-template-columns: .82fr 1.18fr; align-items: center; gap: clamp(1.2rem, 5vw, 5.1rem); padding: clamp(1.25rem, 4vw, 3.3rem); background: var(--sage); border-radius: .2rem; }
.feature h2 { font-size: clamp(2rem, 4.1vw, 3.5rem); }
.feature p:not(.eyebrow) { max-width: 38ch; }
.feature img { width: 100%; max-height: 21rem; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: .15rem; }
.reading-grid, .shop-grid { display: grid; gap: 1rem; align-items: stretch; }
.reading-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 1.5rem; }
.shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1.65rem; }
.reading-card, .box { background: var(--white); border: 1px solid var(--line); padding: clamp(1.05rem, 2.8vw, 1.8rem); border-radius: .22rem; }
.reading-card { display: block; color: var(--ink); text-decoration: none; }
.reading-card h2 { font-size: 1.55rem; }
.reading-card p { color: var(--muted); }
.reading-card:hover { border-color: var(--green); }
.reading-card:hover :is(h2, h3) { text-decoration: underline; text-underline-offset: .17em; }
.offer-band { background: var(--deep); color: #f9f8f1; }
.offers { display: grid; grid-template-columns: 1fr 1fr; gap: 1.55rem 3rem; padding-block: clamp(2rem, 4vw, 3.5rem); }
.offers p { color: #e0e9df; }
.product { display: flex; align-items: flex-start; flex-direction: column; gap: .65rem; scroll-margin-block: 1rem; }
.product > * { margin-block: 0; }
.product ul, .prose ul, .prose ol { padding-inline-start: 1.3rem; }
.product li, .prose li { margin-bottom: .4rem; }
.product .button { margin-top: auto; }
.product.featured { background: var(--sage); }
.membership-example, .workbook-preview { margin: clamp(2.5rem, 6vw, 4rem) auto 0; scroll-margin-block-start: 1rem; }
.membership-example .box + .box, .membership-example .actions, .workbook-preview .actions { margin-top: 1rem; }
.desk-comparison { margin-block: 1.35rem; }
.desk-comparison-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.desk-comparison-card {
  background: #f7f5ed; border: 1px solid var(--line); border-radius: .22rem;
  padding: .85rem; font-size: .9rem; line-height: 1.45;
}
.desk-comparison-recommended { background: #edf1e9; border-color: #a9bcaa; }
.desk-comparison-title { display: flex; align-items: center; gap: .55rem; margin-bottom: .4rem; font-weight: 700; }
.desk-comparison-title strong {
  display: inline-grid; place-items: center; width: 1.65rem; height: 1.65rem;
  background: #ece4d5; border-radius: .16rem;
}
.desk-comparison-recommended .desk-comparison-title strong { background: var(--deep); color: white; }
.desk-plan { display: block; width: 100%; max-width: 22rem; height: auto; margin: 0 auto .4rem; }
.desk-plan text { fill: #253a2f; font: 650 12px var(--body); }
.desk-plan .desk-plan-dimension { fill: var(--muted); }
.desk-plan-floor { fill: var(--white); }
.desk-plan-clearance, .desk-legend-clearance { fill: #e6d9b9; background: #e6d9b9; }
.desk-plan-desk { fill: #c9d9ca; stroke: #577463; stroke-width: 1.2; }
.desk-plan-chair { fill: #faf3e3; stroke: #86683b; stroke-width: 1.35; }
.desk-plan-wall, .desk-plan-window, .desk-plan-swing, .desk-plan-door,
.desk-plan-route, .desk-plan-face, .desk-plan-measure { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.desk-plan-wall { stroke: #465b4f; stroke-width: 3; }
.desk-plan-window { stroke: #337187; stroke-width: 1.65; }
.desk-plan-door, .desk-plan-swing, .desk-plan-measure, .desk-plan-outlet { stroke: #805837; stroke-width: 1.45; }
.desk-plan-swing { stroke-dasharray: 3 3; }
.desk-plan-outlet { fill: var(--white); }
.desk-plan-route { stroke: #286653; stroke-width: 2.1; stroke-dasharray: 5 4; }
.desk-plan-face { stroke: #253a2f; stroke-width: 1.8; }
.desk-comparison figcaption { margin-top: .65rem; color: var(--muted); font-size: .83rem; }
.desk-comparison-legend { display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin: 0 0 .35rem; padding: 0; list-style: none; }
.desk-comparison-legend li { display: inline-flex; align-items: center; gap: .4rem; }
.desk-legend-route { width: 1.12rem; border-top: 2px dashed #286653; }
.desk-legend-clearance { display: inline-block; width: 1rem; height: .68rem; border: 1px solid #86683b; border-radius: .1rem; }
.price { font: 500 clamp(2rem, 4vw, 2.8rem)/1.1 var(--heading); }
.price small { display: inline-block; font: .92rem var(--body); color: var(--muted); }
.plan { margin-block: 1.35rem; }
.plan img { max-height: 38rem; object-fit: contain; border: 1px solid var(--line); border-radius: .15rem; }
.plan figcaption { padding-top: .65rem; color: var(--muted); }
.prose h2 { margin-top: 1.5em; margin-bottom: .52em; }
.prose h3 { margin-top: 1.3em; }
.prose aside { margin-top: 2rem; }
.prose aside h2 { margin-top: 0; }
.prose { overflow-wrap: anywhere; }
.prose table { border-collapse: collapse; }
.prose td, .prose th { padding: .35rem; border: 1px solid var(--line); text-align: left; }
.workbook-scorecard table { width: 100%; table-layout: fixed; }
.workbook-scorecard th { background: var(--sage); }
.workbook-scorecard th:not(:first-child) { width: 23%; }
.workbook-scorecard td:empty::after { content: ''; display: block; min-height: 1em; border-bottom: 1px solid var(--line); }

.form { display: grid; gap: 1rem; }
.form label, .form .field { display: grid; gap: .4rem; }
.form label { font-weight: 650; }
.form input, .form textarea, .form select {
  width: 100%; min-width: 0; padding: .7rem; font: 1rem var(--body); color: var(--ink);
  background: white; border: 1px solid #9caaa0; border-radius: .18rem;
}
.form select {
  appearance: none; padding-right: 2.2rem;
  background-image: linear-gradient(45deg, transparent 52%, var(--green) 52%),
    linear-gradient(135deg, var(--green) 52%, transparent 52%);
  background-position: calc(100% - 1.1rem) center, calc(100% - .78rem) center;
  background-size: .34rem .34rem; background-repeat: no-repeat;
}
.form textarea { resize: vertical; line-height: 1.5; }
.form .button { justify-self: start; }
.form h2, .form p { margin-bottom: 0; }
.form p.muted { margin-top: -.55rem; font-size: .91rem; }
.form-footer, .inline-form { margin-top: .9rem; }
.alerts { padding-top: 1rem; }
.alert { padding: .65rem 1rem; border: 1px solid #9db29c; background: #e7eedf; border-radius: .18rem; }
.alert.error { color: #713725; border-color: #ccb0a0; background: #f8e9e2; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.page-heading h1 { margin-bottom: .12em; }
.page-heading p { color: var(--muted); overflow-wrap: anywhere; }
.account-section { margin-top: 2.3rem; }
.record-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.record-list li { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .15rem 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.record-list li > span:last-child { color: var(--muted); font-size: .92rem; }
.preserve { white-space: pre-wrap; overflow-wrap: anywhere; }

@media (max-width: 51rem) {
  .shell { width: min(44rem, calc(100% - 2.5rem)); }
  .hero { grid-template-columns: 1fr; }
  .hero-image { aspect-ratio: 1.62; }
  .footer-inner { flex-wrap: wrap; }
  .reading-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 35rem) {
  .shell { width: calc(100% - 2rem); }
  .header-inner { flex-wrap: wrap; }
  .header nav { width: 100%; gap: .35rem .75rem; }
  .header nav a { font-size: .87rem; }
  .nav-account { padding-inline: .55rem; }
  .feature, .reading-grid, .shop-grid, .offers, .desk-comparison-plans { grid-template-columns: 1fr; }
  .hero { padding-top: 1.35rem; }
  .hero-copy { display: flex; flex-direction: column; }
  .hero h1 { font-size: clamp(2.5rem, 13.1vw, 3.2rem); }
  .hero .lede { order: 1; margin-bottom: 0; }
  .hero-topics a { padding: .65rem; }
  .hero .actions { margin-top: 1.25rem; }
  .hero .button { flex: 1; }
  .hero .bedroom-action { display: inline-flex; flex-basis: 100%; }
  .hero .guides-action { display: none; }
  .form .button { max-width: 100%; }
}
@media print {
  body { background: white; color: black; font-size: 11pt; }
  .header, .notice, .skip, .footer, .alerts, .screen-only { display: none; }
  .workbook { width: 100%; max-width: none; padding: 0; }
  .workbook h1 { font-size: 25pt; }
  .workbook h2 { font-size: 17pt; break-after: avoid; }
  .workbook table, .workbook tr { break-inside: avoid; }
}

.form .checkout-consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-weight: normal;
}
.form .checkout-consent input[type="checkbox"] {
  width: auto;
  min-width: auto;
  margin: 0.4em 0 0;
}
.order-data { margin: 0; overflow-wrap: anywhere; }
.order-data dt { font-weight: 650; }
.order-data dd { margin: 0 0 0.8rem; }
