:root {
  --paper: #f5f0e5;
  --ink: #24302a;
  --soft: #5f6456;
  --field: #192b24;
  --light: #fbf2db;
  --gold: #e2c591;
  --rule: #d3c9b5;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
:focus-visible { outline: 2px solid #a05b36; outline-offset: 4px; }
.hero :focus-visible, .about :focus-visible { outline-color: var(--gold); }
.wrap { width: min(1190px, calc(100% - 84px)); margin-inline: auto; }
.skip { position: fixed; top: 12px; left: 12px; z-index: 5; padding: 9px 16px; color: var(--ink); background: var(--paper); transform: translateY(-150%); }
.skip:focus { transform: none; }

.site-header { border-bottom: 1px solid #d7ccb6; }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header-inner { min-height: 73px; }
.wordmark { display: inline-flex; align-items: center; gap: 11px; font: 700 25px/1 var(--serif); white-space: nowrap; }
.spindle-mark { display: inline-grid; place-items: center; width: 33px; height: 33px; border: 1px solid #b5a384; border-radius: 50%; color: #875839; font: 19px/1 Georgia, serif; }
.site-header nav, .footer-inner > div { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 28px; }
.site-header nav a, .footer-inner > div a { color: #4c5146; font-size: 14px; }
.site-header nav a:hover, .footer-inner > div a:hover, .browse-link:hover, figcaption a:hover { text-decoration: underline; text-underline-offset: 4px; }

.hero { background: var(--field); color: var(--light); }
.hero-inner { display: grid; grid-template-columns: 1fr 1.04fr; align-items: center; gap: clamp(20px, 5vw, 82px); padding-block: clamp(48px, 6.4vw, 90px); }
.hero-copy { min-width: 0; }
.eyebrow { margin: 0 0 20px; color: var(--gold); font-size: 11px; font-weight: 650; letter-spacing: .19em; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
h1 { margin: 0; font-size: clamp(53px, 6.35vw, 105px); line-height: .96; letter-spacing: -.057em; }
h1 em { color: var(--gold); font-weight: inherit; }
.lede { max-width: 38ch; margin: 26px 0 28px; color: #dfdfcb; font-size: clamp(15px, 1.65vw, 18px); line-height: 1.65; }
.lookup { width: min(100%, 450px); }
.lookup label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 650; }
.lookup-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px; padding: 4px; background: #f9f3e6; border-radius: 5px; }
.lookup input { min-width: 0; width: 100%; border: 0; border-radius: 3px; padding: 10px; background: transparent; color: #27362d; font-size: 15px; }
.lookup input::placeholder { color: #666b59; }
.lookup input:focus-visible { outline: 2px solid #86563c; outline-offset: -1px; }
.lookup button { min-height: 43px; border: 0; border-radius: 3px; padding-inline: 13px; background: #85533a; color: white; font-size: 14px; font-weight: 650; cursor: pointer; }
.lookup button:hover { background: #683d2e; }
.lookup button:focus-visible { outline-color: #4b3827; outline-offset: 2px; }
.browse-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 6px; color: var(--gold); font-size: 14px; }

.hero-illustration { min-width: 0; width: 100%; max-width: 570px; margin: 0; justify-self: end; }
.plate {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 1.18;
  border: 1px solid #ddc49548;
  background:
    repeating-linear-gradient(118deg, transparent 0 6px, #ffe9b204 6px 7px),
    radial-gradient(ellipse at 50% 50%, #465945 0, #223c32 48%, #14271f 91%);
}
.plate::before, .plate::after { content: ""; position: absolute; pointer-events: none; }
.plate::before { inset: 10px; border: 1px solid #f8e4b521; }
.plate::after { inset: 0; background: linear-gradient(0deg, #07150d45, transparent 32%); z-index: -1; }
.plate-orbit { position: absolute; inset: 14% 10%; border: 1px solid #e3d0ab43; border-radius: 50%; transform: rotate(-24deg); }
.plate-orbit::after { content: ""; position: absolute; inset: 12% -8%; border: 1px solid #e3d0ab29; border-radius: 50%; transform: rotate(48deg); }
.plate-star { position: absolute; color: #ddc9a0; line-height: 1; font-size: clamp(13px, 2.35vw, 30px); }
.plate-star.first { top: 10%; left: 14%; }
.plate-star.second { bottom: 13%; right: 12%; }
.plate-card { position: absolute; display: block; height: auto; border-radius: 3%; border: 1px solid #d9c6a3a0; box-shadow: 0 12px 24px #06120bb3; }
.plate-card.left { width: 29%; top: 26%; left: 14%; transform: rotate(-13deg); }
.plate-card.right { width: 29%; top: 24%; right: 14%; transform: rotate(13deg); }
.plate-card.center { width: 32%; top: 15%; left: 34%; transform: rotate(-2deg); }
figcaption { display: flex; justify-content: center; gap: clamp(13px, 3vw, 38px); margin-top: 12px; font-size: 12px; color: #e4d1ac; }
figcaption a { display: inline-flex; align-items: center; min-height: 35px; }
figcaption a + a::before { content: "·"; position: relative; left: calc(clamp(13px, 3vw, 38px) / -2); }

.tools-section { padding-block: clamp(47px, 6vw, 84px); }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 24px; padding-bottom: 23px; }
h2 { margin: 0; font-size: clamp(35px, 4.6vw, 60px); letter-spacing: -.05em; line-height: 1.08; }
.section-heading p { margin: 0; color: var(--soft); }
.tools-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tool { display: flex; flex-direction: column; border: 1px solid var(--rule); background: #faf5e9; }
.tool:hover { border-color: #92754f; }
.tool:hover .tool-link { text-decoration: underline; text-underline-offset: 4px; }
.tool-art { height: 117px; position: relative; display: grid; place-items: center; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--rule); }
.tool-art::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, transparent 0 5px, #fff8d715 5px 6px); }
.tool-art i { position: absolute; display: grid; place-items: center; width: 44px; height: 69px; border: 1px solid currentColor; border-radius: 4px; font: normal 23px/1 Georgia, serif; }
.art-spread { background: #e6d8b7; color: #78573c; }
.art-spread i:nth-child(1) { transform: translateX(-28px) rotate(-15deg); }
.art-spread i:nth-child(3) { transform: translateX(28px) rotate(15deg); }
.art-spread i:nth-child(2) { background: #eee1c4; z-index: 1; }
.art-conversation { background: #e9c9b7; color: #764733; }
.art-conversation i { width: 65px; height: 44px; border-radius: 16px 16px 16px 2px; background: #edd2bd; }
.art-conversation i:first-child { transform: translate(-18px, -11px); }
.art-conversation i:last-child { transform: translate(20px, 12px); border-radius: 16px 16px 2px 16px; }
.art-chart { background: #d1dcc7; color: #466153; }
.art-chart i { width: 74px; height: 74px; border-radius: 50%; }
.art-chart i:nth-child(2) { width: 58px; height: 58px; }
.art-chart i:nth-child(3) { width: 68px; height: 35px; transform: rotate(-38deg); }
.art-chart b { font-size: 17px; }
.tool-copy { display: flex; flex: 1; flex-direction: column; padding: clamp(18px, 2.2vw, 29px); }
h3 { margin: 0; font-size: clamp(24px, 2.65vw, 36px); line-height: 1.12; letter-spacing: -.045em; }
.tool p { margin: 9px 0 21px; color: var(--soft); font-size: 14px; }
.tool-link { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--rule); color: #724930; font-size: 13px; font-weight: 650; }
.tool-link span { font-size: 18px; line-height: 1; }
.about { color: var(--light); background: #273c32; }
.about-inner { display: grid; grid-template-columns: .9fr 1fr; gap: 24px; align-items: baseline; padding-block: clamp(40px, 5vw, 66px); }
.about h2 { font-size: clamp(30px, 3.7vw, 44px); }
.about p { margin: 0; max-width: 56ch; color: #e2decb; }
.footer-inner { min-height: 94px; padding-block: 20px; }
.footer-inner .wordmark { font-size: 21px; }

@media (max-width: 820px) {
  .wrap { width: min(100% - 44px, 1190px); }
  .hero-inner { gap: 24px; }
  h1 { font-size: clamp(48px, 8.2vw, 67px); }
  .tools-grid { gap: 10px; }
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { flex-wrap: wrap; gap: 7px 16px; padding-block: 13px 8px; }
  .site-header nav { gap: 1px 20px; }
  .site-header nav a { display: inline-flex; align-items: center; min-height: 34px; }
  .hero-inner { grid-template-columns: 1fr; gap: 30px; padding-block: 40px 27px; }
  h1 { font-size: clamp(53px, 12.8vw, 76px); }
  .hero-illustration { max-width: 450px; justify-self: center; }
  .tools-grid, .about-inner { grid-template-columns: 1fr; gap: 15px; }
  .tool { display: grid; grid-template-columns: 90px 1fr; }
  .tool-art { height: auto; min-height: 100%; border-bottom: 0; border-right: 1px solid var(--rule); }
  .tool-art i, .tool-art b { scale: .74; }
  .tool-copy { min-width: 0; }
  .tool p { margin-bottom: 12px; }
  .footer-inner { flex-wrap: wrap; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
