@font-face {
  font-family: system-serif;
  src: local("Iowan Old Style"), local("Palatino Linotype"), local("Georgia");
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f5f4ed;
  --ink: #253d32;
  --muted: #60675e;
  --line: #d4d8cb;
  --terracotta: #b56842;
  --serif: system-serif, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}

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

a {
  color: inherit;
  text-underline-offset: 4px;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 4px;
}

svg {
  display: block;
  max-width: 100%;
}

.page-shell {
  max-width: 1360px;
  margin: auto;
  padding: 0 5%;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  padding: 10px 18px;
  background: var(--ink);
  color: white;
  z-index: 2;
}

.skip-link:focus {
  top: 12px;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 20px;
  border-bottom: 1px solid var(--line);
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
}

.brand-badge {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 9px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand:hover .brand-badge {
  transform: scale(1.05);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand-text small {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--terracotta);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  color: var(--muted);
}

.header-nav a {
  text-decoration: none;
  transition: color 0.15s;
}

.header-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.header-link-anchor {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--ink);
}

.header-link-anchor span {
  font-size: 16px;
  color: var(--terracotta);
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  padding: 64px 0 52px;
  align-items: end;
}

.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin: 0 0 18px;
  color: var(--muted);
}

.hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
}

.hero .eyebrow > span {
  height: 7px;
  width: 7px;
  border-radius: 50%;
  background: var(--terracotta);
}

h1, h2, h3, p {
  overflow-wrap: break-word;
}

h1 {
  font: clamp(40px, 4.8vw, 68px)/1.08 var(--serif);
  letter-spacing: -0.04em;
  margin: 0;
  color: var(--ink);
}

h1 em {
  font-weight: 400;
  font-style: italic;
  color: #43634b;
}

.hero-description {
  max-width: 540px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
  margin: 20px 0 0;
}

.hero-note {
  border-left: 1px solid var(--line);
  padding: 4px 0 4px 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-note-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 16px;
  color: var(--terracotta);
}

.hero-note p {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.45;
  margin: 0 0 16px;
  color: var(--ink);
}

.hero-note > span {
  display: block;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* Tools Section & Filters */
.tools-section {
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 24px;
}

.section-heading h2 {
  font: 26px/1.2 var(--serif);
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}

.section-heading p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.filter-btn {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 7px 16px;
  border-radius: 3px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  transition: all 140ms ease;
}

.filter-btn:hover {
  background: #eae7db;
  color: var(--ink);
  border-color: #c4c8bb;
}

.filter-btn.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* Tool Grid & Cards */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 64px;
}

.tool-card {
  display: flex;
  flex-direction: column;
  background: #fbfaf6;
  border: 1px solid #dde0d4;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s;
}

.tool-card:hover {
  transform: translateY(-2px);
  border-color: #bcc3b3;
}

/* Card Art with authentic internal SVGs */
.card-art {
  position: relative;
  height: 215px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-bottom: 1px solid #dde0d4;
}

.card-art > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.art-bake   { background: #ebd7b6; }
.art-screen { background: #dce7f1; }
.art-room   { background: #e2e8db; }
.art-paper  { background: #f1e5db; }
.art-garden { background: #e0e7d6; }
.art-stitch { background: #eee2d7; }
.art-time   { background: #e1e6e5; }

.art-caption {
  position: absolute;
  bottom: 10px;
  left: 14px;
  font-size: 8px;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: #3b493e;
  background: rgba(245, 244, 237, 0.88);
  padding: 3px 7px;
  border-radius: 2px;
  backdrop-filter: blur(4px);
}

.art-number {
  position: absolute;
  right: 14px;
  top: 12px;
  font: italic 15px var(--serif);
  color: #475449;
  background: rgba(245, 244, 237, 0.88);
  padding: 2px 8px;
  border-radius: 2px;
  backdrop-filter: blur(4px);
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px 22px 20px;
}

.card-label {
  font-size: 8.5px;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: #68725d;
  margin: 0 0 10px;
}

.tool-card h3 {
  font: 26px/1.18 var(--serif);
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  color: var(--ink);
}

.card-description {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 16px;
}

.card-detail {
  font-size: 9.5px;
  color: #73776e;
  line-height: 1.6;
  margin: auto 0 18px;
  padding-top: 8px;
  border-top: 1px dashed #e3e6dc;
}

.card-actions {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.card-primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  color: var(--ink);
  gap: 10px;
  transition: color 0.15s;
}

.card-primary span {
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  color: var(--terracotta);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-primary:hover {
  color: var(--terracotta);
}

.card-primary:hover span {
  transform: translateX(4px);
}

.card-secondary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 12px;
  font-size: 10px;
  color: #6b7367;
}

.card-secondary a {
  text-decoration: none;
  color: #6b7367;
  transition: color 0.15s;
}

.card-secondary a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* Principles / Approach Section */
.approach {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  padding: 64px 0 60px;
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.approach .eyebrow {
  font-size: 9px;
  margin-bottom: 14px;
}

.approach h2 {
  font: 34px/1.18 var(--serif);
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ink);
}

.approach h2 em {
  font-weight: 400;
  font-style: italic;
  color: var(--terracotta);
}

.approach-copy {
  max-width: 480px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
}

.approach-copy p {
  margin: 0 0 14px;
}

/* Values Grid */
.values-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.value-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.value-col h4 {
  font: 18px/1.2 var(--serif);
  margin: 0;
  color: var(--ink);
}

.value-col p {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

/* Footer */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
  font-size: 11px;
  color: var(--muted);
}

.site-footer > span {
  font-weight: 650;
  color: var(--ink);
}

.site-footer p {
  margin: 0;
}

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

.footer-nav a {
  text-decoration: none;
  color: var(--muted);
}

.footer-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* Legal Pages Shell */
.legal-page {
  padding: 60px 0 80px;
  max-width: 760px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 28px;
}

.back-link:hover {
  color: var(--ink);
  text-decoration: underline;
}

.legal-page h1 {
  font: 44px/1.12 var(--serif);
  letter-spacing: -0.03em;
  margin: 0 0 24px;
  color: var(--ink);
}

.legal-page h2 {
  font: 22px/1.25 var(--serif);
  margin: 36px 0 12px;
  color: var(--ink);
}

.legal-page p, .legal-page li {
  font-size: 14.5px;
  line-height: 1.8;
  color: #4a544b;
  margin: 0 0 16px;
}

.legal-page a {
  color: var(--terracotta);
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 1080px) {
  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  .hero {
    grid-template-columns: 1fr 240px;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .page-shell {
    padding: 0 6%;
  }
  .site-header {
    padding: 18px 0;
    flex-wrap: wrap;
  }
  .header-nav {
    gap: 16px;
    font-size: 12px;
  }
  .hero {
    display: block;
    padding: 44px 0 36px;
  }
  .hero-note {
    display: none;
  }
  h1 {
    font-size: clamp(36px, 8.5vw, 54px);
  }
  .hero-description {
    font-size: 14.5px;
    margin-top: 16px;
  }
  .section-heading {
    display: block;
  }
  .section-heading p {
    margin-top: 6px;
  }
  .tool-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .approach {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 44px 0;
  }
  .values-strip {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
