/*
Theme Name: Dossier — Fake Profile Generator
Theme URI: https://example.com/dossier
Author: Your Studio
Author URI: https://example.com
Description: A single front page theme that stamps out a fully fictitious, randomly generated character profile — name, physical description, personality, family, and career — styled as a manila case file. Pick a country from the tab and every generated detail (names, cities, language, currency, units) follows that country's conventions.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dossier
*/

/* =========================================================
   TOKENS
   ========================================================= */
:root {
	--paper:        #eae2cf;
	--paper-raised: #f3ecdb;
	--paper-dark:   #ddd2b3;
	--ink:          #21201c;
	--ink-soft:     #55503f;
	--ink-faint:    #8a8168;
	--stamp-red:    #a3392b;
	--stamp-red-dk: #832c21;
	--tab-tan:      #cbb488;
	--highlight:    #e0aa3e;
	--line:         rgba(33, 32, 28, 0.22);
	--line-strong:  rgba(33, 32, 28, 0.4);
	--shadow:       0 10px 30px rgba(33, 32, 28, 0.18);

	--font-stamp:  'Special Elite', 'Courier New', monospace;
	--font-body:   'IBM Plex Serif', Georgia, serif;
	--font-mono:   'IBM Plex Mono', 'Courier New', monospace;

	--radius: 2px;
}

/* =========================================================
   RESET / BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background:
		radial-gradient(ellipse at top left, rgba(255,255,255,0.35), transparent 55%),
		var(--paper-dark);
	background-attachment: fixed;
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

/* subtle paper grain */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	background-image:
		repeating-linear-gradient(0deg, rgba(33,32,28,0.015) 0px, rgba(33,32,28,0.015) 1px, transparent 1px, transparent 3px);
	z-index: 0;
}

img { max-width: 100%; display: block; }

button { font-family: inherit; cursor: pointer; }

a { color: var(--stamp-red); }

::selection { background: var(--highlight); color: var(--ink); }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
	html { scroll-behavior: auto; }
}

/* =========================================================
   FALLBACK TEMPLATE (index.php)
   ========================================================= */
.dossier-fallback__inner {
	max-width: 720px;
	margin: 4rem auto;
	padding: 2rem;
	background: var(--paper-raised);
	border: 1px solid var(--line);
}

/* =========================================================
   LAYOUT SHELL
   ========================================================= */
.dossier {
	position: relative;
	z-index: 1;
	max-width: 980px;
	margin: 0 auto;
	padding: 2.5rem 1.25rem 5rem;
}

/* -----------------------------------------------------------
   FOLDER TAB HEADER
   ----------------------------------------------------------- */
.folder-tab {
	display: flex;
	align-items: flex-end;
	gap: 0.5rem;
	margin-bottom: -1px;
	padding-left: 1.5rem;
}

.folder-tab__label {
	background: var(--tab-tan);
	border: 1px solid var(--line-strong);
	border-bottom: none;
	border-radius: var(--radius) var(--radius) 0 0;
	padding: 0.6rem 1.25rem 0.9rem;
	font-family: var(--font-stamp);
	font-size: 0.95rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink);
	box-shadow: 0 -2px 0 rgba(255,255,255,0.25) inset;
}

.folder-tab__spacer { flex: 1; }

/* -----------------------------------------------------------
   MASTHEAD
   ----------------------------------------------------------- */
.masthead {
	background: var(--paper-raised);
	border: 1px solid var(--line-strong);
	box-shadow: var(--shadow);
	padding: 2rem 2rem 1.75rem;
	position: relative;
}

.masthead__eyebrow {
	font-family: var(--font-mono);
	font-size: 0.72rem;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--stamp-red);
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin-bottom: 0.6rem;
}

.masthead__eyebrow::before {
	content: "";
	width: 8px; height: 8px;
	background: var(--stamp-red);
	border-radius: 50%;
	display: inline-block;
}

.masthead h1 {
	font-family: var(--font-stamp);
	font-size: clamp(2rem, 5vw, 3rem);
	line-height: 1.05;
	margin: 0 0 0.5rem;
	letter-spacing: 0.01em;
}

.masthead p.lede {
	max-width: 56ch;
	color: var(--ink-soft);
	font-size: 1.02rem;
	margin: 0;
}

.masthead__notice {
	margin-top: 1.25rem;
	font-family: var(--font-mono);
	font-size: 0.75rem;
	color: var(--ink-faint);
	border-top: 1px dashed var(--line);
	padding-top: 0.75rem;
}

/* -----------------------------------------------------------
   LANDING PAGE INTRO (SEO pages only)
   ----------------------------------------------------------- */
.landing-intro-extra {
	margin: 1rem 0 1.25rem;
	padding: 1rem 1.1rem;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.landing-intro-extra p {
	margin: 0 0 0.6rem;
	color: var(--ink-soft);
	font-size: 0.98rem;
	line-height: 1.6;
}

.landing-jump-link {
	display: inline-block;
	font-family: var(--font-mono);
	font-size: 0.78rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--stamp-red);
	text-decoration: none;
	border-bottom: 1px solid currentColor;
}

.landing-jump-link:hover { opacity: 0.75; }

/* Briefly highlight whichever section a landing page's "jump to" link
   points at. The anchored id sits on each section's <h3> (for proper
   aria-labelledby semantics), so :has() finds the containing section. */
.file-sheet:target {
	outline: 2px solid var(--stamp-red);
	outline-offset: 4px;
	scroll-margin-top: 1.5rem;
}

.dfile-section:has(:target) {
	outline: 2px solid var(--stamp-red);
	outline-offset: 4px;
}

.dfile-section h3:target {
	color: var(--stamp-red);
	scroll-margin-top: 1.5rem;
}

/* -----------------------------------------------------------
   CONTROL BAR (country tab select + stamp button)
   ----------------------------------------------------------- */
.control-bar {
	background: var(--paper);
	border: 1px solid var(--line-strong);
	border-top: none;
	padding: 1.25rem 2rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.25rem;
	justify-content: space-between;
}

.control-field label {
	display: block;
	font-family: var(--font-mono);
	font-size: 0.7rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink-soft);
	margin-bottom: 0.35rem;
}

.control-field select {
	appearance: none;
	background: var(--paper-raised) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%2321201c' stroke-width='2' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E") no-repeat right 0.9rem center;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius);
	padding: 0.65rem 2.4rem 0.65rem 0.9rem;
	font-family: var(--font-mono);
	font-size: 0.95rem;
	color: var(--ink);
	min-width: 230px;
}

.control-field select:focus-visible {
	outline: 2px solid var(--stamp-red);
	outline-offset: 2px;
}

.control-field select optgroup {
	font-family: var(--font-mono);
	font-weight: 600;
	font-style: normal;
}

.control-field select option {
	font-family: var(--font-body);
}

.site-color-picker {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.site-color-picker .idcard-customize__label {
	margin-bottom: 0;
}

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

/* -----------------------------------------------------------
   CUSTOM COUNTRY DROPDOWN
   Always anchored to the bottom of the trigger (top: 100%) so it
   can never "flip" upward the way a native <select> sometimes does
   when there isn't room below it in the viewport.
   ----------------------------------------------------------- */
.country-dropdown {
	position: relative;
}

.country-dropdown__trigger {
	appearance: none;
	width: 100%;
	min-width: 230px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	background: var(--paper-raised);
	border: 1px solid var(--line-strong);
	border-radius: var(--radius);
	padding: 0.65rem 0.9rem;
	font-family: var(--font-mono);
	font-size: 0.95rem;
	color: var(--ink);
	text-align: left;
}

.country-dropdown__trigger:hover { background: var(--paper); }

.country-dropdown__trigger:focus-visible {
	outline: 2px solid var(--stamp-red);
	outline-offset: 2px;
}

.country-dropdown__chevron {
	width: 12px; height: 8px;
	flex-shrink: 0;
	color: var(--ink-soft);
	transition: transform 0.15s ease;
}

.country-dropdown__trigger[aria-expanded="true"] .country-dropdown__chevron {
	transform: rotate(180deg);
}

.country-dropdown__panel {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	z-index: 40;
	background: var(--paper-raised);
	border: 1px solid var(--line-strong);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	max-height: min(60vh, 420px);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.country-dropdown__panel[hidden] {
	display: none;
}

.country-dropdown__search-wrap {
	padding: 0.6rem;
	border-bottom: 1px solid var(--line);
	flex-shrink: 0;
}

.country-dropdown__search {
	width: 100%;
	background: var(--paper);
	border: 1px solid var(--line-strong);
	border-radius: var(--radius);
	padding: 0.55rem 0.75rem;
	font-family: var(--font-body);
	font-size: 0.95rem;
	color: var(--ink);
}

.country-dropdown__search:focus-visible {
	outline: 2px solid var(--stamp-red);
	outline-offset: 1px;
}

.country-dropdown__list {
	overflow-y: auto;
	padding: 0.4rem 0;
}

.country-dropdown__group-label {
	position: sticky;
	top: 0;
	background: var(--paper-raised);
	font-family: var(--font-mono);
	font-size: 0.68rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ink-faint);
	padding: 0.5rem 0.9rem 0.3rem;
}

.country-dropdown__option {
	display: block;
	width: 100%;
	text-align: left;
	background: none;
	border: none;
	padding: 0.5rem 0.9rem;
	font-family: var(--font-body);
	font-size: 0.98rem;
	color: var(--ink);
	cursor: pointer;
}

.country-dropdown__option:hover,
.country-dropdown__option.is-active {
	background: var(--paper);
}

.country-dropdown__option[aria-selected="true"] {
	color: var(--stamp-red);
	font-weight: 600;
}

.country-dropdown__empty {
	padding: 1rem 0.9rem;
	font-size: 0.9rem;
	color: var(--ink-faint);
	margin: 0;
}

.stamp-btn {
	position: relative;
	background: var(--stamp-red);
	color: #fbf3e2;
	border: 2px solid var(--stamp-red-dk);
	border-radius: var(--radius);
	padding: 0.95rem 1.75rem;
	font-family: var(--font-stamp);
	font-size: 1rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	transform: rotate(-1deg);
	transition: transform 0.12s ease, box-shadow 0.12s ease;
	box-shadow: 3px 4px 0 rgba(33,32,28,0.25);
}

.stamp-btn:hover { transform: rotate(-1deg) translateY(-1px); }

.stamp-btn:active,
.stamp-btn.is-stamping {
	transform: rotate(-1deg) scale(0.94);
	box-shadow: 1px 1px 0 rgba(33,32,28,0.25);
}

.stamp-btn:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 3px;
}

.stamp-btn--outline {
	background: transparent;
	color: var(--stamp-red);
	border: 2px solid var(--stamp-red);
	box-shadow: none;
	transform: rotate(0deg);
}

.stamp-btn--outline:hover { transform: translateY(-1px); background: rgba(163,57,43,0.06); }

.stamp-btn--outline:active,
.stamp-btn--outline.is-stamping {
	transform: scale(0.96);
}

/* -----------------------------------------------------------
   ID CARD PREVIEW BLOCK
   ----------------------------------------------------------- */
.idcard-block {
	background: var(--paper-raised);
	border: 1px solid var(--line-strong);
	border-top: none;
	box-shadow: var(--shadow);
	padding: 2rem;
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	gap: 2rem;
	align-items: center;
}

.idcard-block__text h3 {
	font-family: var(--font-stamp);
	font-size: 1.35rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	margin: 0 0 0.6rem;
}

.idcard-block__hint {
	color: var(--ink-soft);
	font-size: 0.92rem;
	max-width: 44ch;
	margin: 0 0 1.1rem;
}

/* -----------------------------------------------------------
   ID CARD CUSTOMIZATION CONTROLS
   ----------------------------------------------------------- */
.idcard-customize {
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 1rem 1.1rem;
	margin: 0 0 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
}

.idcard-customize__row {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.idcard-customize__label {
	font-family: var(--font-mono);
	font-size: 0.7rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ink-soft);
}

.color-swatches {
	display: flex;
	gap: 0.5rem;
}

.color-swatch {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--sw);
	border: 2px solid transparent;
	box-shadow: 0 0 0 1px var(--line-strong);
	cursor: pointer;
	padding: 0;
}

.color-swatch.is-active {
	border-color: var(--paper-raised);
	box-shadow: 0 0 0 2px var(--sw), 0 0 0 1px var(--line-strong);
}

.color-swatch:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 2px;
}

.idcard-customize__input,
.idcard-customize__select {
	background: var(--paper-raised);
	border: 1px solid var(--line-strong);
	border-radius: var(--radius);
	padding: 0.5rem 0.7rem;
	font-family: var(--font-body);
	font-size: 0.95rem;
	color: var(--ink);
	max-width: 320px;
}

.idcard-customize__select { font-family: var(--font-mono); }

.idcard-customize__input:focus-visible,
.idcard-customize__select:focus-visible {
	outline: 2px solid var(--stamp-red);
	outline-offset: 1px;
}

.idcard-customize__checks {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.2rem;
}

.idcard-customize__checks label {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.92rem;
	color: var(--ink);
}

.idcard-customize__note {
	font-size: 0.8rem;
	color: var(--ink-faint);
	max-width: 46ch;
}

.idcard-block__canvas-wrap {
	display: flex;
	justify-content: center;
}

#dossier-idcard {
	width: 100%;
	max-width: 420px;
	height: auto;
	border-radius: 10px;
	box-shadow: 0 14px 34px rgba(33,32,28,0.28);
	transform: rotate(-1.5deg);
	background: #fff;
}

@media (max-width: 720px) {
	.idcard-block { grid-template-columns: 1fr; }
	.idcard-block__canvas-wrap { order: -1; }
}

/* -----------------------------------------------------------
   FILE SHEET (photo block + ID strip)
   ----------------------------------------------------------- */
.file-sheet {
	background: var(--paper-raised);
	border: 1px solid var(--line-strong);
	border-top: none;
	box-shadow: var(--shadow);
	padding: 2rem;
	display: grid;
	grid-template-columns: 172px 1fr;
	gap: 2rem;
	position: relative;
	overflow: hidden;
}

.photo-block {
	position: relative;
}

.photo-frame {
	width: 100%;
	aspect-ratio: 3 / 4;
	background:
		linear-gradient(155deg, var(--paper-dark), var(--tab-tan));
	border: 1px solid var(--line-strong);
	display: flex;
	align-items: flex-end;
	justify-content: center;
	overflow: hidden;
	position: relative;
}

.photo-frame svg { width: 78%; opacity: 0.85; }

.photo-block .paperclip {
	position: absolute;
	top: -14px;
	left: 14px;
	width: 34px;
	transform: rotate(-8deg);
	opacity: 0.85;
	z-index: 2;
}

.photo-block .fict-ribbon {
	position: absolute;
	top: 14px;
	left: -38px;
	width: 170px;
	transform: rotate(-40deg);
	background: var(--ink);
	color: var(--paper);
	font-family: var(--font-mono);
	font-size: 0.58rem;
	letter-spacing: 0.08em;
	text-align: center;
	padding: 0.25rem 0;
	box-shadow: 0 2px 4px rgba(0,0,0,0.25);
	z-index: 3;
}

.photo-caption {
	margin-top: 0.65rem;
	font-family: var(--font-mono);
	font-size: 0.7rem;
	color: var(--ink-faint);
	text-align: center;
}

.id-strip {
	min-width: 0;
}

.id-strip__row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	border-bottom: 1px dashed var(--line);
	padding-bottom: 0.9rem;
	margin-bottom: 1.1rem;
}

.id-strip h2 {
	font-family: var(--font-stamp);
	font-size: 1.7rem;
	margin: 0;
	line-height: 1.1;
}

.id-strip .id-number {
	font-family: var(--font-mono);
	font-size: 0.85rem;
	color: var(--ink-faint);
}

.id-quickfacts {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 0.9rem 1.5rem;
}

.qf {
	border-left: 2px solid var(--stamp-red);
	padding-left: 0.65rem;
}

.qf__label {
	font-family: var(--font-mono);
	font-size: 0.66rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ink-faint);
	display: block;
	margin-bottom: 0.2rem;
}

.qf__value {
	font-size: 1rem;
	color: var(--ink);
}

/* -----------------------------------------------------------
   SECTIONS (perforated pages)
   ----------------------------------------------------------- */
.dossier-sections {
	background: var(--paper-raised);
	border: 1px solid var(--line-strong);
	border-top: none;
	box-shadow: var(--shadow);
}

.dfile-section {
	padding: 1.9rem 2rem;
	border-top: 1px dashed var(--line);
	position: relative;
}

.dfile-section::before {
	content: "";
	position: absolute;
	left: 0; right: 0; top: -1px;
	height: 1px;
	background-image: radial-gradient(circle, var(--ink-faint) 1px, transparent 1.4px);
	background-size: 10px 1px;
	opacity: 0.5;
}

.dfile-section__head {
	display: flex;
	align-items: baseline;
	gap: 0.75rem;
	margin-bottom: 1.1rem;
}

.dfile-section__num {
	font-family: var(--font-mono);
	font-size: 0.8rem;
	color: var(--stamp-red);
}

.dfile-section__head h3 {
	font-family: var(--font-stamp);
	font-size: 1.15rem;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	margin: 0;
}

.dfile-section__hint {
	font-size: 0.85rem;
	color: var(--ink-faint);
	margin: -0.5rem 0 1.1rem;
}

.field-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 1.1rem 1.75rem;
}

.field-grid.field-grid--wide { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.field {
	min-width: 0;
}

.field dt {
	font-family: var(--font-mono);
	font-size: 0.66rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ink-faint);
	margin-bottom: 0.2rem;
}

.field dd {
	margin: 0;
	font-size: 0.98rem;
	color: var(--ink);
	word-break: break-word;
}

/* -----------------------------------------------------------
   COPY-TO-CLIPBOARD BUTTONS
   Added via JS to every field. .copy-field-wrap is the original
   dd/span/h2, made into a flex row of [value text] + [copy button].
   ----------------------------------------------------------- */
.copy-field-wrap {
	align-items: flex-start;
	gap: 0.45em;
}

.id-strip .copy-field-wrap,
.qf__value.copy-field-wrap {
	align-items: center;
}

.copy-value-text {
	min-width: 0;
	flex: 1 1 auto;
}

.copy-btn {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	margin-top: 0.1em;
	padding: 0;
	background: transparent;
	border: 1px solid var(--line);
	border-radius: 4px;
	color: var(--ink-faint);
	opacity: 0.55;
	cursor: pointer;
	transition: opacity 0.12s ease, color 0.12s ease, border-color 0.12s ease, background 0.12s ease, transform 0.12s ease;
}

.id-strip .copy-btn { margin-top: 0; }

.copy-field-wrap:hover .copy-btn,
.copy-btn:hover,
.copy-btn:focus-visible {
	opacity: 1;
	color: var(--stamp-red);
	border-color: var(--stamp-red);
	background: rgba(163, 57, 43, 0.06);
}

.copy-btn:focus-visible {
	outline: 2px solid var(--stamp-red);
	outline-offset: 2px;
}

.copy-btn:active { transform: scale(0.9); }

.copy-btn.is-copied {
	opacity: 1;
	color: #2f6b3a;
	border-color: #2f6b3a;
	background: rgba(47, 107, 58, 0.08);
}

.copy-btn.is-copy-failed {
	opacity: 1;
	color: var(--stamp-red);
	border-color: var(--stamp-red);
	animation: copy-shake 0.3s ease;
}

@keyframes copy-shake {
	0%, 100% { transform: translateX(0); }
	25% { transform: translateX(-2px); }
	75% { transform: translateX(2px); }
}

@media (max-width: 640px) {
	/* Touch devices have no hover — keep copy buttons visible enough to find. */
	.copy-btn { opacity: 0.7; }
}

/* -----------------------------------------------------------
   FOOTER
   ----------------------------------------------------------- */
.dossier-footer {
	margin-top: 2.5rem;
	text-align: center;
	font-family: var(--font-mono);
	font-size: 0.72rem;
	color: var(--ink-faint);
	letter-spacing: 0.04em;
}

.dossier-footer a {
	color: var(--ink-faint);
	text-decoration: underline;
}

.dossier-footer a:hover { color: var(--stamp-red); }

.site-footer-links {
	margin-top: 0.6rem;
	text-align: center;
	font-family: var(--font-mono);
	font-size: 0.72rem;
	letter-spacing: 0.04em;
}

.site-footer-links a {
	color: var(--ink-soft);
	text-decoration: underline;
}

.site-footer-links a:hover { color: var(--stamp-red); }

.site-footer-links span.sep {
	color: var(--ink-faint);
	margin: 0 0.6rem;
}

/* -----------------------------------------------------------
   STATIC PAGES (About Us, Privacy Policy, etc.)
   ----------------------------------------------------------- */
.dossier--page {
	max-width: 760px;
}

.page-sheet {
	background: var(--paper-raised);
	border: 1px solid var(--line-strong);
	box-shadow: var(--shadow);
	padding: 2.5rem;
}

.page-sheet__header {
	margin-bottom: 1.5rem;
	border-bottom: 1px dashed var(--line);
	padding-bottom: 1.25rem;
}

.page-sheet__header h1 {
	font-family: var(--font-stamp);
	font-size: clamp(1.6rem, 4vw, 2.2rem);
	margin: 0.4rem 0 0;
	line-height: 1.15;
}

.page-sheet__content {
	font-size: 1.02rem;
	line-height: 1.7;
	color: var(--ink);
}

.page-sheet__content h2 {
	font-family: var(--font-stamp);
	font-size: 1.25rem;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	margin: 2rem 0 0.75rem;
}

.page-sheet__content h2:first-child { margin-top: 0; }

.page-sheet__content h3 {
	font-family: var(--font-mono);
	font-size: 0.95rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ink-soft);
	margin: 1.5rem 0 0.5rem;
}

.page-sheet__content p { margin: 0 0 1.1rem; }

.page-sheet__content ul,
.page-sheet__content ol {
	margin: 0 0 1.1rem;
	padding-left: 1.4rem;
}

.page-sheet__content li { margin-bottom: 0.4rem; }

.page-sheet__content a { color: var(--stamp-red); }

/* -----------------------------------------------------------
   RESPONSIVE
   ----------------------------------------------------------- */
@media (max-width: 720px) {
	.file-sheet { grid-template-columns: 1fr; }
	.photo-block { max-width: 200px; }
	.control-bar { flex-direction: column; align-items: stretch; }
	.stamp-btn { justify-content: center; }
}

@media (max-width: 480px) {
	.masthead, .control-bar, .file-sheet, .dfile-section { padding-left: 1.15rem; padding-right: 1.15rem; }
	.folder-tab { padding-left: 0.75rem; }
	.page-sheet { padding: 1.5rem; }
}
