/* Mariana Cura — shared stylesheet for index.html and certificados.html */

:root {
	--paper: oklch(98.6% 0.012 92);
	--ink: oklch(24% 0.018 80);
	--ink-soft: oklch(42% 0.02 80);
	--ink-softer: oklch(46% 0.02 80);
	--ink-faint: oklch(58% 0.02 80);
	--ink-fainter: oklch(62% 0.02 80);
	--rule: oklch(92% 0.018 85);
	--rule-strong: oklch(90% 0.02 85);
	--accent: oklch(84% 0.13 88);
	--accent-ink: oklch(64% 0.13 82);
	--serif: Newsreader, Georgia, "Times New Roman", serif;
	--mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
	--gutter: 120px;
	--pitch: 13px;
}

/* ---------- Base ---------- */

html,
body {
	margin: 0;
	padding: 0;
}

body {
	background: var(--paper);
	color: var(--ink);
	font-family: var(--serif);
	-webkit-font-smoothing: antialiased;
}

a {
	color: oklch(28% 0.02 80);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	text-decoration-color: var(--accent);
}

a:hover {
	color: oklch(18% 0.02 80);
	text-decoration-color: oklch(28% 0.02 80);
}

::selection {
	background: oklch(88% 0.14 90);
}

.page {
	box-sizing: border-box;
	min-height: 100vh;
	padding: 0 28px 96px;
}

.measure {
	max-width: 720px;
	margin: 0 auto;
}

/* Repeated small-caps mono label: field names, section eyebrows, kinds */
.label {
	font-family: var(--mono);
	font-size: 11px;
	font-weight: 400;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ink-faint);
}

/* ---------- Masthead ---------- */

.masthead {
	display: flex;
	flex-direction: column;
	gap: 34px;
	padding-top: 72px;
}

.masthead__identity {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.masthead__mark {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-left: -2px;
}

.masthead__logo {
	display: block;
	width: 52px;
	height: 52px;
	border-radius: 12px;
}

.masthead__name {
	margin: 0;
	font-size: 52px;
	font-weight: 400;
	line-height: 1.05;
	letter-spacing: -0.02em;
}

.masthead__role {
	margin: 0;
	max-width: 34em;
	font-size: 21px;
	font-weight: 300;
	line-height: 1.5;
	color: var(--ink-soft);
	text-wrap: pretty;
}

.details {
	display: grid;
	grid-template-columns: minmax(0, max-content) minmax(0, 1fr);
	gap: 10px 28px;
	align-items: baseline;
	margin: 0;
}

.details__value {
	margin: 0;
	font-size: 17px;
}

.crumb {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 14px;
	align-items: baseline;
}

.crumb__here {
	color: var(--ink);
	font-weight: 500;
}

/* ---------- Sections ---------- */

.section {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 84px;
}

.page--curriculum .section {
	gap: 0;
	margin-top: 76px;
}

.section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 24px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--ink);
}

.section__title {
	margin: 0;
	font-family: var(--mono);
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.section__meta {
	white-space: nowrap;
	letter-spacing: 0.08em;
}

.section__note {
	margin: 26px 0 0;
	font-size: 16px;
	font-weight: 300;
	color: oklch(50% 0.02 80);
}

/* ---------- Publications (index.html) ---------- */

.status {
	margin: 28px 0;
	font-family: var(--mono);
	font-size: 13px;
	color: var(--ink-fainter);
}

.works {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	list-style: none;
}

.work {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr);
	gap: 8px 20px;
	padding: 26px 0;
	border-bottom: 1px solid var(--rule);
}

.work__year {
	padding-top: 5px;
	font-family: var(--mono);
	font-size: 13px;
	color: var(--ink-faint);
}

.work__body {
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.work__title {
	margin: 0;
	font-size: 21px;
	font-weight: 400;
	line-height: 1.35;
	text-wrap: pretty;
}

.work__venue {
	margin: 0;
	font-size: 16px;
	font-style: italic;
	font-weight: 300;
	color: var(--ink-softer);
}

.work__doi {
	align-self: flex-start;
	margin-top: 3px;
	font-family: var(--mono);
	font-size: 12px;
	letter-spacing: 0.02em;
}

.contributors {
	display: flex;
	flex-direction: column;
	gap: 5px;
	margin-top: 3px;
}

.contributors__label {
	font-size: 10px;
	letter-spacing: 0.12em;
	color: var(--ink-fainter);
}

.contributors__list {
	display: flex;
	flex-wrap: wrap;
	gap: 3px 8px;
	margin: 0;
	padding: 0;
	font-size: 16px;
	font-weight: 300;
	color: oklch(38% 0.02 80);
	list-style: none;
}

.contributors__self {
	font-weight: 400;
	color: var(--accent-ink);
}

/* ---------- Time ruler (certificados.html) ----------
   A continuous vertical line at the gutter edge with fine graduations,
   dates set in the gutter to its left, and a tick per entry. Vertical
   distance follows elapsed time — see the .lead-* scale. */

.ruler {
	position: relative;
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ruler::before {
	position: absolute;
	left: var(--gutter);
	top: 0;
	bottom: 0;
	border-left: 1px solid var(--rule-strong);
	content: "";
}

/* Fine graduations: one continuous 7px strip beside the ruler line, on a
   single --pitch grid. Blocks are snapped to whole pitches at runtime
   (js/ruler.js) so every bold tick lands on a graduation. */
.ruler::after {
	position: absolute;
	left: calc(var(--gutter) - 7px);
	top: 0;
	bottom: 0;
	width: 7px;
	background-image: linear-gradient(to bottom, var(--rule) 0 1px, transparent 1px);
	background-repeat: repeat-y;
	background-position: left 8px;
	background-size: 7px var(--pitch);
	content: "";
}

.ruler__year {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* One pitch of ruler above the first year. */
.ruler__year:first-child {
	--lead: 13px;
}

/* Major graduation: the year, with a longer tick across the line. */
.ruler__mark {
	position: relative;
	box-sizing: border-box;
	width: var(--gutter);
	margin: 0;
	padding: var(--lead, 0px) 24px 6px 0;
	font-family: var(--mono);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.08em;
	color: var(--ink);
	text-align: right;
}

.ruler__mark::after {
	position: absolute;
	z-index: 1;
	right: -13px;
	top: calc(8px + var(--lead, 0px));
	width: 26px;
	height: 1px;
	background: var(--ink);
	content: "";
}

.ruler__items {
	--lead: 0px;
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	list-style: none;
}

.entry {
	position: relative;
	display: grid;
	grid-template-columns: var(--gutter) minmax(0, 1fr);
	padding: calc(12px + var(--lead, 0px)) 0 12px;
}

.entry__date {
	padding: 0 24px 0 0;
	font-family: var(--mono);
	font-size: 11px;
	font-weight: 400;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ink-soft);
	text-align: right;
}

/* Elapsed time since the previous entry, added above it. Applied to a
   year group when the gap crosses a year boundary, to an entry when it
   does not. Buckets: 1-3, 4-8, 9-18, 19-36, and 37+ months. */
.lead-1 {
	--lead: 13px;
}

.lead-2 {
	--lead: 39px;
}

.lead-3 {
	--lead: 65px;
}

.lead-4 {
	--lead: 91px;
}

.lead-5 {
	--lead: 130px;
}

.entry__body {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 7px;
	padding-left: 28px;
}

/* Entry graduation: a short accent rule meeting the line. */
.entry__body::before {
	position: absolute;
	z-index: 1;
	left: -13px;
	top: 9px;
	width: 14px;
	height: 1px;
	background: var(--accent-ink);
	content: "";
}

.entry__kind {
	color: var(--ink-fainter);
}

.entry__title {
	margin: 0;
	font-size: 21px;
	font-weight: 400;
	line-height: 1.35;
	text-wrap: pretty;
}

.entry__institution {
	margin: 0;
	font-size: 16px;
	font-style: italic;
	font-weight: 300;
	color: var(--ink-softer);
	text-wrap: pretty;
}

.entry__note {
	margin: 0;
	font-size: 16px;
	font-weight: 300;
	line-height: 1.5;
	color: oklch(38% 0.02 80);
	text-wrap: pretty;
}

.entry__doc {
	align-self: flex-start;
	margin-top: 3px;
	font-family: var(--mono);
	font-size: 12px;
	letter-spacing: 0.02em;
}

/* ---------- Footer ---------- */

.colophon {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px 32px;
	margin-top: 96px;
	padding-top: 28px;
	border-top: 1px solid var(--rule-strong);
	letter-spacing: 0.08em;
}

/* ---------- Small screens ---------- */

@media (max-width: 620px) {
	:root {
		--gutter: 92px;
	}

	.page--curriculum .masthead__name {
		font-size: 40px;
	}

	.ruler__mark {
		padding-right: 16px;
	}

	.entry__date {
		padding-right: 16px;
		font-size: 10px;
	}

	.entry__body {
		padding-left: 20px;
	}
}

@media (max-width: 560px) {
	.masthead__name {
		font-size: 40px;
	}

	.work {
		grid-template-columns: minmax(0, 1fr);
		gap: 7px;
	}

	.work__year {
		padding-top: 0;
	}
}
