/* Mynarch website. Colors come from brand/mynarch-brand-color-palette.md; type is the system's own. */

:root {
	--page: #FFFFFF;
	--ivory: #F7F4EE;
	--ink: #202A30;
	--ink-soft: #5B6467;
	--monarch: #C86A3A;
	--monarch-deep: #A9532A;
	--line: #E5E0D7;
	--night: #151B1E;
	--night-text: #F5F1E9;
	--night-soft: #AEB7BA;
	--night-line: #2F393D;
	--night-monarch: #E08A54;

	--font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--wide: 76rem;
	--text: 40rem;
	--gutter: clamp(1.25rem, 4vw, 2.5rem);
	color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
	:root {
		--page: #151B1E;
		--ivory: #1A2125;
		--ink: #F5F1E9;
		--ink-soft: #AEB7BA;
		--monarch: #E08A54;
		--monarch-deep: #E08A54;
		--line: #2F393D;
		--night: #0F1416;
	}
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 1.0625rem/1.55 var(--font); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.022em; line-height: 1.1; text-wrap: balance; }
a { color: var(--monarch-deep); text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid var(--monarch); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--page); padding: 0.6rem 1rem; z-index: 10; }
.skip:focus { left: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--ivory) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.site-header .wrap { display: flex; align-items: center; gap: 1.75rem; min-height: 3.5rem; }
.brand { color: var(--ink); display: block; }
.brand svg { width: 6.25rem; }
.site-nav { display: flex; gap: 1.6rem; margin-left: auto; }
.site-nav a { color: var(--ink-soft); text-decoration: none; font-size: 0.9375rem; font-weight: 500; }
.site-nav a:hover { color: var(--ink); }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 3.25rem; padding: 0 1.75rem; border: 0; border-radius: 999px; background: var(--monarch); color: #fff; font: 600 1.125rem/1 var(--font); letter-spacing: -0.01em; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--monarch-deep); }
.button svg { width: 1.25rem; height: 1.25rem; flex: none; }
.button.small { min-height: 2.125rem; padding: 0 1rem; font-size: 0.9375rem; }
.button.plain { background: var(--ink); color: var(--page); min-height: 2.75rem; padding: 0 1.25rem; font-size: 1rem; }
.button.plain:hover { background: color-mix(in srgb, var(--ink) 85%, var(--page)); }
@media (prefers-color-scheme: dark) {
	.button { color: #1B1108; }
	.button:hover { background: #EDA070; }
}

/* Hero: the mark, one sentence, the way in, then the app itself. */
.hero { background: var(--ivory); text-align: center; padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.hero-mark { width: clamp(5.5rem, 10vw, 8rem); margin-inline: auto; color: var(--ink); }
.hero h1 { font-size: clamp(2.375rem, 5.6vw, 4.25rem); letter-spacing: -0.035em; line-height: 1.04; max-width: 17ch; margin: 1.5rem auto 0; }
.hero .lede { font-size: clamp(1.125rem, 1.7vw, 1.375rem); line-height: 1.45; color: var(--ink-soft); max-width: 38rem; margin: 1.4rem auto 0; }
.get { display: flex; flex-direction: column; align-items: center; gap: 0.9rem; margin-top: 2.1rem; }
.fine { font-size: 0.9375rem; color: var(--ink-soft); }

.notify { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; width: 100%; max-width: 27rem; }
.notify input[type="email"] { flex: 1 1 12rem; min-width: 0; min-height: 2.75rem; padding: 0 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--page); color: var(--ink); font: inherit; font-size: 1rem; }
.notify input[type="email"]::placeholder { color: var(--ink-soft); }
.notify .trap { position: absolute; left: -9999px; }
.notify-status { flex-basis: 100%; font-size: 0.9375rem; min-height: 1.5em; color: var(--ink-soft); }
.notify-status[data-state="ok"] { color: var(--ink); font-weight: 600; }
.notify-status[data-state="error"] { color: var(--monarch-deep); }

/* A screenshot of the real app, framed as its window. */
.window { position: relative; border-radius: 12px; overflow: hidden; background: #161B1E; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.28), 0 1px 1px rgba(0, 0, 0, 0.12), 0 22px 44px -12px rgba(22, 27, 30, 0.38), 0 60px 110px -30px rgba(22, 27, 30, 0.4); }
.window img { width: 100%; }
.hero .window { margin-top: clamp(2.5rem, 5vw, 4rem); margin-bottom: clamp(-9rem, -11vw, -3rem); z-index: 1; }
.after-hero { padding-top: clamp(5rem, 14vw, 12rem); }
.caption { font-size: 0.875rem; color: var(--ink-soft); text-align: center; margin-top: 1.1rem; }

/* Features: a few words, then the page they describe at a size you can read. */
.rows { display: grid; gap: clamp(5rem, 11vw, 9rem); padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(5rem, 11vw, 9rem); }
.row-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 1.25rem clamp(2rem, 6vw, 5rem); align-items: start; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.row h2 { font-size: clamp(1.875rem, 3.6vw, 2.875rem); letter-spacing: -0.03em; }
.row-words p { color: var(--ink-soft); font-size: 1.125rem; }
.row-words p + p { margin-top: 0.9rem; }
.row-words p strong { color: var(--ink); font-weight: 600; }
.row .window { box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.28), 0 18px 36px -12px rgba(22, 27, 30, 0.3), 0 44px 90px -34px rgba(22, 27, 30, 0.34); }

/* Privacy: what stays, what leaves. */
.band { background: var(--night); color: var(--night-text); padding-block: clamp(4.5rem, 10vw, 8rem); }
.band h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); letter-spacing: -0.03em; max-width: 18ch; }
.band .intro { color: var(--night-soft); font-size: 1.1875rem; max-width: var(--text); margin-top: 1.25rem; }
.ledger { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.ledger h3 { font-size: 0.9375rem; font-weight: 600; letter-spacing: 0; color: var(--night-soft); }
.ledger ul { list-style: none; padding: 0; margin-top: 1rem; }
.ledger li { padding-block: 0.85rem; border-top: 1px solid var(--night-line); }
.ledger .entry { display: block; font-weight: 600; }
.ledger .detail { display: block; color: var(--night-soft); font-size: 0.9375rem; }
.nothing { font-size: clamp(3.5rem, 9vw, 7rem); font-weight: 700; letter-spacing: -0.045em; line-height: 1; color: var(--night-monarch); margin-top: 0.6rem; }
.ledger .unless { color: var(--night-soft); margin-top: 1.25rem; max-width: 34rem; }
.ledger .unless strong { color: var(--night-text); font-weight: 600; }

/* Everything else it does. */
.more { padding-block: clamp(4.5rem, 10vw, 8rem); }
.more h2, .ai h2, .questions h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
.more .intro, .ai .intro { color: var(--ink-soft); font-size: 1.125rem; max-width: var(--text); margin-top: 0.9rem; }
.index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem clamp(1.5rem, 4vw, 3.5rem); margin-top: 3rem; }
.index dt { font-weight: 650; font-size: 1.0625rem; }
.index dd { color: var(--ink-soft); margin-top: 0.35rem; font-size: 1rem; }
.index dd strong { color: var(--ink); font-weight: 600; }

/* Two models, two jobs. */
.ai { background: var(--ivory); padding-block: clamp(4.5rem, 10vw, 8rem); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); margin-top: 3rem; }
.pair h3 { font-size: 1.375rem; }
.pair .role { color: var(--ink-soft); margin-top: 0.3rem; }
.pair ul { padding-left: 1.1rem; margin-top: 1rem; }
.pair li { margin-top: 0.45rem; }
.pair li::marker { color: var(--monarch); }

/* Questions */
.questions { padding-block: clamp(4.5rem, 10vw, 8rem); }
.faq { max-width: 46rem; margin-top: 2rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2.25rem 1.1rem 0; position: relative; font-weight: 600; font-size: 1.125rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 0.4rem; top: 1.45rem; width: 0.55rem; height: 0.55rem; border-right: 2px solid var(--ink-soft); border-bottom: 2px solid var(--ink-soft); transform: rotate(45deg); transition: transform 0.15s; }
.faq details[open] summary::after { transform: translateY(0.25rem) rotate(-135deg); }
.faq details p { padding-bottom: 1.3rem; color: var(--ink-soft); max-width: 40rem; }

/* Closing */
.closing { background: var(--ivory); text-align: center; padding-block: clamp(4.5rem, 10vw, 7.5rem); }
.closing .hero-mark { width: 4.5rem; }
.closing h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); letter-spacing: -0.03em; max-width: 16ch; margin: 1.25rem auto 0; }
.closing p.lede { color: var(--ink-soft); font-size: 1.1875rem; max-width: 34rem; margin: 1rem auto 0; }

/* Footer */
.site-footer { padding-block: 2.25rem; font-size: 0.9375rem; color: var(--ink-soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; align-items: center; }
.site-footer .brand svg { width: 5.25rem; }
.site-footer nav { display: flex; gap: 1.5rem; margin-left: auto; }
.site-footer a { color: var(--ink-soft); }

/* Plain text pages */
.prose { max-width: 44rem; padding-block: clamp(3rem, 8vw, 6rem); }
.prose h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.03em; }
.prose h2 { font-size: 1.375rem; margin-top: 2.5rem; }
.prose p, .prose ul { margin-top: 1rem; }
.prose li { margin-top: 0.4rem; }

@media (max-width: 60rem) {
	.row-head { grid-template-columns: 1fr; }
	.index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 44rem) {
	.site-nav { display: none; }
	.button { white-space: nowrap; font-size: 1rem; padding-inline: 1.25rem; }
	.site-header .button { margin-left: auto; }
	.ledger, .pair, .index { grid-template-columns: 1fr; }
	.window { border-radius: 8px; }
	.site-footer nav { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.faq summary::after { transition: none; }
}
