/* Newsreader © 2020 The Newsreader Project Authors, SIL OFL 1.1 — /fonts/NEWSREADER-OFL.txt
   Figtree © 2022 The Figtree Project Authors, SIL OFL 1.1 — /fonts/FIGTREE-OFL.txt */

@font-face {
	font-family: "Newsreader";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("/fonts/newsreader-latin-ext-400-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Newsreader";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("/fonts/newsreader-latin-400-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Newsreader";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("/fonts/newsreader-latin-ext-400-italic.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Newsreader";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("/fonts/newsreader-latin-400-italic.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Newsreader";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("/fonts/newsreader-latin-ext-500-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Newsreader";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("/fonts/newsreader-latin-500-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Newsreader";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("/fonts/newsreader-latin-ext-600-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Newsreader";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("/fonts/newsreader-latin-600-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Figtree";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("/fonts/figtree-latin-ext-400-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Figtree";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("/fonts/figtree-latin-400-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Figtree";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("/fonts/figtree-latin-ext-500-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Figtree";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("/fonts/figtree-latin-500-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Figtree";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("/fonts/figtree-latin-ext-600-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Figtree";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("/fonts/figtree-latin-600-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--paper: #f3ecdf;
	--paper-deep: #e7dcc8;
	--ink: #1c1915;
	--ink-soft: #4a433a;
	--muted: #74695c;
	--oxblood: #7a2e2a;
	--olive: #3d4a38;
	--line: rgba(28, 25, 21, 0.16);
	--serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
	--sans: "Figtree", "Avenir Next", "Segoe UI", sans-serif;
	color-scheme: light;
}

* { box-sizing: border-box; }

html { background: var(--paper); }

body {
	margin: 0;
	min-height: 100vh;
	color: var(--ink);
	background:
		linear-gradient(90deg, rgba(61, 74, 56, 0.07), transparent 7rem),
		var(--paper);
	font-family: var(--sans);
	font-size: 1.05rem;
	line-height: 1.55;
	font-weight: 400;
}

a { color: inherit; }

a:hover { color: var(--oxblood); }

:focus-visible {
	outline: 2px solid var(--oxblood);
	outline-offset: 3px;
}

.shell {
	display: grid;
	grid-template-columns: 4.5rem minmax(0, 1fr);
	min-height: 100vh;
}

.rail {
	margin: 0;
	padding: 1.4rem 0;
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	font-size: 0.72rem;
	font-weight: 600;
	color: var(--olive);
}

.sheet {
	padding: 1.6rem 6vw 4rem 2.2rem;
	max-width: 74rem;
}

.top {
	display: grid;
	grid-template-columns: minmax(12rem, 1fr) auto auto;
	gap: 1rem 1.4rem;
	align-items: end;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--ink);
}

.mark {
	font-family: var(--serif);
	font-size: 1.15rem;
	font-weight: 500;
	text-decoration: none;
	letter-spacing: -0.02em;
}

.nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1.1rem;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.nav a { text-decoration: none; }

.nav a[aria-current="page"] {
	color: var(--oxblood);
	box-shadow: inset 0 -1px 0 var(--oxblood);
}

.nav-write { color: var(--oxblood); }

.lang {
	justify-self: end;
	text-decoration: none;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	border: 1px solid var(--ink);
	padding: 0.35rem 0.45rem;
}

.hero { padding: 3.2rem 0 2rem; max-width: 46rem; }

.kicker {
	margin: 0 0 0.8rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--olive);
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.03em; }

h1 {
	margin: 0;
	font-size: clamp(3.4rem, 8vw, 6.4rem);
	line-height: 0.88;
	font-weight: 500;
}

.role {
	margin: 1.4rem 0 0;
	max-width: 36rem;
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.01em;
}

.lede {
	margin: 1rem 0 0;
	max-width: 38rem;
	font-family: var(--serif);
	font-style: italic;
	font-size: 1.35rem;
	line-height: 1.35;
	color: var(--ink-soft);
}

.button {
	display: inline-block;
	margin-top: 1.8rem;
	padding: 0.75rem 1.15rem;
	background: var(--oxblood);
	color: var(--paper);
	text-decoration: none;
	font-weight: 600;
	letter-spacing: 0.04em;
}

.button:hover { color: var(--paper); background: #5e221f; }

.hires, .index, .proofs, .page-intro { margin-top: 3.2rem; }

.hires h2, .index h2, .proofs h2, .page-intro h1, .service-list h2, .points h2, .timeline h2 {
	font-size: 1.7rem;
	margin: 0;
}

.hires ul {
	list-style: none;
	margin: 1rem 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.4rem 2rem;
	max-width: 42rem;
}

.hires li {
	padding-top: 0.45rem;
	border-top: 1px solid var(--line);
}

.section-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	margin-bottom: 0.4rem;
}

.section-head a {
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.index ol, .service-list, .points, .timeline {
	list-style: none;
	margin: 0;
	padding: 0;
}

.index li {
	display: grid;
	grid-template-columns: 3rem 1fr;
	gap: 0.8rem;
	align-items: baseline;
	padding: 0.85rem 0;
	border-top: 1px solid var(--line);
}

.index li span, .service-list li > span, .points li > span {
	font-variant-numeric: tabular-nums;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	color: var(--olive);
}

.index a {
	font-family: var(--serif);
	font-size: 1.45rem;
	text-decoration: none;
	line-height: 1.15;
}

.proofs > div {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.4rem;
	margin-top: 1rem;
}

.proofs article {
	border-top: 2px solid var(--olive);
	padding-top: 0.8rem;
}

.proofs h3 {
	margin: 0 0 0.4rem;
	font-size: 1.15rem;
}

.proofs p, .page-intro p, .service-list p, .points p, .timeline p, .prose p {
	margin: 0.35rem 0 0;
	color: var(--ink-soft);
}

.page-intro { max-width: 40rem; padding-top: 2.4rem; }

.page-intro h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 0.95; }

.service-list li, .points li, .timeline li {
	display: grid;
	grid-template-columns: 3rem 1fr;
	gap: 0.6rem 1rem;
	padding: 1.3rem 0;
	border-top: 1px solid var(--line);
}

.timeline { max-width: 46rem; }

.years {
	grid-column: 1 / -1;
	margin: 0;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--oxblood);
}

.where { font-weight: 600; color: var(--ink); }

.prose { max-width: 40rem; padding-bottom: 2rem; }

.prose p + p { margin-top: 1rem; }

.helper {
	margin: 0 0 1.2rem;
	padding-left: 0.9rem;
	border-left: 3px solid var(--oxblood);
	color: var(--ink-soft);
	max-width: 40rem;
}

.inquiry { max-width: 40rem; }

.fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem 1.2rem;
}

.fields label {
	display: grid;
	gap: 0.35rem;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.wide { grid-column: 1 / -1; }

input, select, textarea {
	width: 100%;
	border: 0;
	border-bottom: 1px solid var(--ink);
	background: transparent;
	color: var(--ink);
	font: inherit;
	font-size: 1rem;
	letter-spacing: 0;
	text-transform: none;
	font-weight: 400;
	padding: 0.45rem 0;
	border-radius: 0;
}

textarea {
	resize: vertical;
	min-height: 8rem;
	border: 1px solid var(--line);
	padding: 0.7rem 0.8rem;
	background: rgba(255, 252, 247, 0.45);
}

.hp {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.cf-turnstile { margin: 1rem 0; }

.inquiry button, .status-form button, .delete-form button {
	margin-top: 0.6rem;
	border: 0;
	background: var(--ink);
	color: var(--paper);
	font: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	padding: 0.7rem 1.1rem;
	cursor: pointer;
}

.delete-form button { background: transparent; color: var(--oxblood); padding-left: 0; }

.form-error, .mail-fail {
	color: var(--oxblood);
	font-weight: 600;
}

.notice, .success {
	max-width: 36rem;
	padding-top: 0.8rem;
	border-top: 2px solid var(--olive);
}

.success strong { display: block; font-family: var(--serif); font-size: 1.4rem; font-weight: 500; }

.foot {
	margin-top: 4rem;
	padding-top: 1rem;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 0.92rem;
}

.foot p { margin: 0.2rem 0; }

.foot a { margin-right: 1.2rem; }

.admin {
	max-width: 52rem;
	margin: 0 auto;
	padding: 2.5rem 1.4rem 4rem;
}

.admin-top h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 0.95; }

.admin-top p { color: var(--ink-soft); }

.empty {
	font-family: var(--serif);
	font-style: italic;
	font-size: 1.25rem;
	max-width: 32rem;
}

.inbox { list-style: none; margin: 1.5rem 0 0; padding: 0; }

.inbox li { border-top: 1px solid var(--line); padding: 0.9rem 0; }

.inbox a {
	display: grid;
	grid-template-columns: 7rem 1.4fr 1fr 1fr auto;
	gap: 0.6rem;
	align-items: baseline;
	text-decoration: none;
}

.inbox strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; }

.inbox em { font-style: normal; color: var(--ink-soft); }

.inbox time, .inbox a > span:last-child { color: var(--muted); font-size: 0.92rem; }

.status { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }

.status-nueva { color: var(--oxblood); }
.status-leida, .status-respondida { color: var(--olive); }
.status-archivada { color: var(--muted); }

.meta {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	margin: 1.5rem 0;
}

.meta div { border-top: 1px solid var(--line); padding-top: 0.45rem; }

.meta dt {
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
}

.meta dd { margin: 0.2rem 0 0; }

.message {
	margin: 1rem 0 1.6rem;
	padding: 1rem 0;
	border-top: 2px solid var(--ink);
	border-bottom: 1px solid var(--line);
	white-space: pre-wrap;
	font-family: var(--serif);
	font-size: 1.2rem;
	line-height: 1.45;
}

.status-form { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.status-form button { margin-top: 0; }

.delete-form {
	margin-top: 2rem;
	padding-top: 1rem;
	border-top: 1px solid var(--line);
}

.delete-form label {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	width: fit-content;
	font-size: 0.95rem;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
}

.delete-form input {
	width: 1rem;
	height: 1rem;
	margin: 0;
	border: 1px solid var(--ink);
	accent-color: var(--oxblood);
}

@media (max-width: 800px) {
	.shell { grid-template-columns: 1fr; }
	.rail {
		writing-mode: horizontal-tb;
		transform: none;
		padding: 0.8rem 1rem 0;
	}
	.sheet { padding: 1rem 1rem 3rem; }
	.top { grid-template-columns: 1fr auto; }
	.nav { grid-column: 1 / -1; letter-spacing: 0.04em; }
	.section-head { flex-direction: column; align-items: flex-start; }
	.hires ul, .proofs > div, .fields, .meta, .inbox a {
		grid-template-columns: 1fr;
	}
	.years { grid-column: auto; }
	h1 { font-size: 3.1rem; }
}

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