/* nima.house · the Ghatan Group page (4.21.0, plain since 4.21.4). Paper, ink and one quiet accent: a single
   centred column that reads like a well-set letterhead. */
@font-face { font-family: "Bodoni Moda"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("../fonts/bodoni-moda-latin-standard-normal.woff2") format("woff2"); }
@font-face { font-family: "Albert Sans"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/albert-sans-latin-wght-normal.woff2") format("woff2"); }

:root {
	--serif: "Bodoni Moda", Didot, Georgia, serif; --sans: "Albert Sans", system-ui, -apple-system, sans-serif;
	--paper: #f7f5f0; --ink: #16201c; --muted: #5c645f; --soft: #8a8f8a; --line: #ddd8cc; --accent: #7a5c22;
	color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body.p1 { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: clamp(28px, 6vh, 72px) 20px; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }

.p1-page { width: 100%; max-width: 680px; }

.p1-marks { display: flex; align-items: center; gap: 22px; margin-bottom: clamp(32px, 6vh, 56px); color: var(--ink); }
.p1-mark svg { display: block; height: 30px; width: auto; }
.p1-rule { width: 1px; height: 26px; background: var(--line); }

.p1-k { margin: 0 0 14px; font: 600 11px/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.p1-h { margin: 0; font: 400 clamp(2rem, 4.6vw, 2.9rem)/1.12 var(--serif); letter-spacing: -0.01em; text-wrap: balance; }
.p1-p { margin: 18px 0 0; max-width: 36rem; color: var(--muted); font-size: 1.02rem; line-height: 1.7; }

.p1-go { margin: 28px 0 0; }
.p1-cta { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 4px; background: var(--ink); color: var(--paper); font: 600 14px/1 var(--sans); letter-spacing: 0.02em; text-decoration: none; transition: background-color 0.2s; }
.p1-cta:hover { background: #2a3631; }
.p1-cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.p1-wait { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.p1-wait b { color: var(--ink); font-variant-numeric: tabular-nums; }
.p1-wait button { margin-left: 6px; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.p1-res, .p1-help { margin-top: clamp(36px, 6vh, 52px); padding-top: 22px; border-top: 1px solid var(--line); }
.p1-sh { margin: 0 0 14px; font: 600 11px/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--soft); }

.p1-dl { margin: 0; display: grid; gap: 10px; }
.p1-dl > div { display: grid; grid-template-columns: 13rem 1fr; gap: 16px; align-items: baseline; }
.p1-dl dt { color: var(--muted); font-size: 14px; }
.p1-dl dd { margin: 0; font-size: 15px; }
.p1-dl a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color 0.2s; }
.p1-dl a:hover, .p1-dl a:focus-visible { border-bottom-color: var(--ink); outline: none; }

.p1-help ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.p1-help li { border-bottom: 1px solid var(--line); }
.p1-help a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 2px; text-decoration: none; transition: color 0.2s; }
.p1-help a span { font-size: 15px; }
.p1-help a em { font-style: normal; font-size: 14px; color: var(--muted); white-space: nowrap; }
.p1-help a em::after { content: "\2192\FE0E"; margin-left: 10px; color: var(--soft); transition: color 0.2s, margin 0.2s; }
.p1-help a:hover em, .p1-help a:focus-visible em { color: var(--ink); }
.p1-help a:hover em::after, .p1-help a:focus-visible em::after { color: var(--accent); margin-left: 14px; }
.p1-help a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.p1-foot { margin-top: clamp(36px, 6vh, 52px); font-size: 13px; color: var(--muted); }
.p1-foot p { margin: 0; }
.p1-reco { margin-top: 8px !important; font-size: 11px; line-height: 1.5; color: var(--soft); }

@media (max-width: 560px) {
	body.p1 { align-items: flex-start; }
	.p1-mark svg { height: 26px; }
	.p1-dl > div { grid-template-columns: 1fr; gap: 2px; }
	.p1-help a { flex-direction: column; gap: 2px; }
	.p1-cta { width: 100%; justify-content: center; }
}

/* on a computer: two calm columns, so everything sits on one screen */
@media (min-width: 960px) {
	.p1-page { max-width: 1080px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-areas: "marks marks" "lead res" "lead help" "foot foot"; column-gap: clamp(48px, 7vw, 104px); align-items: start; }
	.p1-marks { grid-area: marks; }
	.p1-lead { grid-area: lead; }
	.p1-res { grid-area: res; margin-top: 6px; padding-top: 0; border-top: 0; }
	.p1-help { grid-area: help; margin-top: 34px; padding-top: 0; border-top: 0; }
	.p1-dl > div { grid-template-columns: 11.5rem 1fr; }
	.p1-foot { grid-area: foot; margin-top: clamp(40px, 7vh, 64px); padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; }
	.p1-reco { margin-top: 0 !important; max-width: 40rem; }
}

/* 4.22.0 · the lead window: the same paper and ink, a plain form */
html.p1-locked { overflow: hidden; }
.p1-dlg { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; }
.p1-dlg[hidden] { display: none; }
.p1-dlg__veil { position: absolute; inset: 0; background: rgba(22, 32, 28, 0.42); opacity: 0; transition: opacity 0.2s; }
.p1-dlg__box { position: relative; width: min(100%, 520px); max-height: calc(100dvh - 40px); overflow: auto; padding: 32px 32px 28px; border-radius: 6px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 24px 60px -24px rgba(22, 32, 28, 0.45); opacity: 0; transform: translateY(8px); transition: opacity 0.2s, transform 0.2s; outline: none; }
.p1-dlg.is-on .p1-dlg__veil { opacity: 1; }
.p1-dlg.is-on .p1-dlg__box { opacity: 1; transform: none; }
.p1-dlg__x { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--muted); cursor: pointer; }
.p1-dlg__x svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.p1-dlg__x:hover, .p1-dlg__x:focus-visible { color: var(--ink); background: rgba(22, 32, 28, 0.06); outline: none; }
.p1-dlg__h { margin: 0; font: 400 1.7rem/1.15 var(--serif); }
.p1-dlg__p { margin: 10px 0 0; color: var(--muted); font-size: 0.95rem; line-height: 1.6; }
.p1-form { margin-top: 20px; display: grid; gap: 12px; }
.p1-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.p1-f { display: grid; gap: 5px; font-size: 13px; color: var(--muted); }
.p1-f i { font-style: normal; color: var(--soft); }
.p1-f input, .p1-f select, .p1-f textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); font: 400 15px/1.4 var(--sans); }
.p1-f textarea { resize: vertical; min-height: 76px; }
.p1-f input:focus, .p1-f select:focus, .p1-f textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(22, 32, 28, 0.08); }
.p1-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.45; cursor: pointer; }
.p1-check input { margin: 2px 0 0; width: 16px; height: 16px; accent-color: var(--ink); flex: none; }
.p1-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.p1-err { margin: 0; padding: 9px 12px; border-radius: 4px; background: #f6e9e4; color: #8a3b26; font-size: 13px; }
.p1-err[hidden] { display: none; }
.p1-acts { display: flex; align-items: center; gap: 16px; margin-top: 4px; }
.p1-acts .p1-cta { border: 0; cursor: pointer; }
.p1-acts .p1-cta:disabled { opacity: 0.6; cursor: default; }
.p1-later { padding: 0; border: 0; background: none; color: var(--muted); font: 400 14px/1 var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.p1-later:hover { color: var(--ink); }
.p1-done .p1-acts { margin-top: 22px; }
@media (max-width: 560px) {
	.p1-dlg { padding: 0; align-items: end; }
	.p1-dlg__box { width: 100%; max-height: 92dvh; border-radius: 10px 10px 0 0; padding: 26px 20px 22px; }
	.p1-row { grid-template-columns: 1fr; }
	.p1-acts .p1-cta { width: auto; }
}
