/* Corby website. Colors and type follow the app (packages/shared COLORS, D37). */
@font-face { font-family: "Bitter"; font-weight: 700; font-display: swap; src: url(/fonts/bitter-700.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url(/fonts/inter-400.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url(/fonts/inter-600.woff2) format("woff2"); }

:root {
  --limestone: #E9E7E1; --paper: #F4F2EC; --cut-stone: #D8D4CA; --stone-line: #B9B5AA;
  --slate: #1E2428; --slate-soft: #3A4248; --muted: #5A6066; --white: #FFFFFF;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--limestone); color: var(--slate-soft); font: 400 16px/1.5 Inter, system-ui, sans-serif; }
h1, h2 { font-family: Bitter, Georgia, serif; font-weight: 700; color: var(--slate); margin: 0; }
h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.1; }
h2 { font-size: clamp(26px, 4vw, 36px); line-height: 1.2; }
h3 { font: 600 18px/1.45 Inter, system-ui, sans-serif; color: var(--slate); margin: 0; }
p, ul { margin: 0; }
a { color: var(--slate); }
a:hover { color: var(--slate-soft); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--slate); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--white); padding: 12px 16px; border: 2px solid var(--slate); }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.narrow { max-width: 848px; }
.lead { font-size: 20px; line-height: 1.5; }
.big { font-size: 18px; line-height: 1.55; }
.small { font-size: 14px; line-height: 1.5; color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 8px; font-weight: 600; text-decoration: none; background: var(--slate); color: var(--white); border: 2px solid var(--slate); }
.btn:hover { background: var(--slate-soft); color: var(--white); }
.btn.light { background: var(--white); color: var(--slate); }
.btn.light:hover { background: var(--paper); color: var(--slate); }
.more { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* Header and footer */
.top { background: var(--paper); border-bottom: 2px solid var(--slate); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; font: 700 28px/1 Bitter, Georgia, serif; color: var(--slate); }
.top nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; }
.top nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; text-decoration: none; border-bottom: 2px solid transparent; }
.top nav a[aria-current="page"] { font-weight: 600; border-bottom-color: var(--slate); }
.foot { background: var(--slate); color: var(--cut-stone); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 32px; padding-top: 48px; padding-bottom: 48px; }
.foot .brand, .foot a { color: var(--white); }
.foot a:hover { color: var(--cut-stone); }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 32px; align-items: flex-start; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; }
.foot p { font-size: 14px; max-width: 420px; }

/* Home */
.hero { background: var(--limestone) url(/img/hero-map.jpg) center right / cover no-repeat; border-bottom: 2px solid var(--slate); padding: clamp(32px, 7vw, 72px) 0; }
.hero .card { max-width: 560px; background: var(--paper); border: 2px solid var(--slate); padding: clamp(24px, 5vw, 40px); display: flex; flex-direction: column; gap: 20px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.soon { align-self: flex-start; display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 999px; background: var(--cut-stone); color: var(--slate); font-weight: 600; font-size: 15px; }
.band { padding: clamp(48px, 8vw, 72px) 0; }
.band.paper { background: var(--paper); border-top: 2px solid var(--slate); border-bottom: 2px solid var(--slate); }
.band > .wrap { display: flex; flex-direction: column; gap: 32px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.cols.wide { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; align-items: center; }
.cols.top-align { align-items: start; }
.step { background: var(--paper); border: 2px solid var(--slate); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.step h3 { font: 700 24px/1.25 Bitter, Georgia, serif; }
.pills { display: flex; flex-wrap: wrap; gap: 12px; padding: 0; list-style: none; }
.pills li { display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 999px; background: var(--cut-stone); color: var(--slate); font-weight: 600; font-size: 15px; }
.pills li.draft { background: var(--white); border: 2px dashed var(--slate); }

/* Support and privacy (rendered from Markdown) */
.doc { padding-top: clamp(40px, 7vw, 64px); padding-bottom: 72px; display: flex; flex-direction: column; gap: 32px; }
.doc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.doc-head > div { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 8px; }
.doc section { display: flex; flex-direction: column; gap: 14px; }
.doc.cards section, .doc section.card { background: var(--paper); border: 2px solid var(--slate); padding: clamp(20px, 4vw, 32px); }
.doc.cards section { gap: 8px; }
.doc.cards section h3 { margin-top: 12px; }
.doc h2 { font-size: 28px; }
.doc h3 { margin-top: 6px; }
.doc ul { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.table { overflow-x: auto; }
table { width: 100%; min-width: 420px; border-collapse: collapse; background: var(--paper); border: 2px solid var(--slate); }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--stone-line); }
th { color: var(--slate); border-bottom: 2px solid var(--slate); }
tr:last-child td { border-bottom: 0; }
.help { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; background: var(--slate); color: var(--paper); padding: clamp(20px, 4vw, 32px); }
.help h2 { color: var(--white); font-size: 28px; }
.help > div { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 6px; }
.notfound { text-align: center; align-items: center; padding-top: 96px; padding-bottom: 96px; }
