/*
Theme Name: Mark Twain Society Letter
Theme URI: https://www.marktwainsociety.com/
Author: Mark Twain Society
Description: A simple one-page WordPress theme styled as a typewritten letter, featuring a portrait of Mark Twain. Edit the front page in the block editor to change the message; everything else (paper, photo, letterhead) is fixed design.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mark-twain-letter
*/

:root {
	--paper: #f5efdd;
	--paper-shadow: #e3dac0;
	--ink: #2b2420;
	--ink-soft: #4a4038;
	--desk-dark: #1f1a17;
	--desk-light: #3a2f28;
}

* {
	box-sizing: border-box;
}

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

body {
	background: radial-gradient(ellipse at top, var(--desk-light) 0%, var(--desk-dark) 70%);
	color: var(--ink);
	font-family: "Courier Prime", "Courier New", Courier, monospace;
	font-size: 18px;
	line-height: 1.5;
	min-height: 100vh;
	padding: 40px 16px 80px;
}

.letter-page {
	max-width: 680px;
	margin: 20px auto;
	background-color: var(--paper);
	background-image:
		repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.015) 0, rgba(0, 0, 0, 0.015) 1px, transparent 1px, transparent 3px),
		radial-gradient(ellipse at 20% 10%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 55%);
	box-shadow:
		0 2px 4px rgba(0, 0, 0, 0.15),
		0 25px 60px rgba(0, 0, 0, 0.55),
		inset 0 0 90px rgba(120, 100, 70, 0.12);
	padding: 64px 56px 56px;
	position: relative;
}

.letter-portrait {
	text-align: center;
	margin-bottom: 28px;
}

.letter-portrait img {
	width: 160px;
	height: auto;
	border: 1px solid rgba(43, 36, 32, 0.25);
	padding: 6px;
	background: #fffdf6;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
	filter: sepia(65%) contrast(1.05) brightness(0.96) saturate(1.1);
}

.letter-heading {
	text-align: center;
	margin-bottom: 36px;
	border-bottom: 3px double var(--ink-soft);
	padding-bottom: 20px;
}

.letter-heading h1 {
	font-family: "Special Elite", "Courier Prime", monospace;
	font-size: 1.6rem;
	text-transform: uppercase;
	letter-spacing: 3px;
	margin: 0 0 8px;
	color: var(--ink);
}

.letter-tagline {
	font-style: italic;
	color: var(--ink-soft);
	margin: 0;
	letter-spacing: 1px;
}

.letter-dateline {
	text-align: right;
	font-style: italic;
	color: var(--ink-soft);
	margin-bottom: 28px;
}

.letter-salutation {
	margin-bottom: 20px;
}

.letter-body p {
	margin: 0 0 1.3em;
	text-align: left;
	hyphens: none;
}

.letter-body p:first-of-type::first-letter {
	font-size: 1.3em;
}

.letter-closing {
	margin-top: 40px;
	text-align: right;
}

.letter-closing p {
	margin: 0 0 4px;
}

.letter-signature {
	font-family: "Special Elite", "Courier Prime", monospace;
	font-size: 1.1rem;
	letter-spacing: 1px;
}

@media (max-width: 600px) {
	body {
		font-size: 16px;
		padding: 16px 10px 48px;
	}

	.letter-page {
		padding: 40px 28px 36px;
	}

	.letter-portrait img {
		width: 120px;
	}

	.letter-heading h1 {
		font-size: 1.25rem;
		letter-spacing: 2px;
	}
}
