/*
 * #mektup (John'dan mektup), PORT of the prototype's `.letter` rules
 * (assets-source/handoff/jj_handoff/src/template.html lines 220-230,
 * CLAUDE.md "PROTOTYPE v23 IS THE REFERENCE"). Selectors match the pattern
 * markup in theme/jacksonjohn/patterns/mektup.php (core group/paragraph/
 * heading blocks carrying the prototype's own class names) verbatim,
 * except `.way`: the prototype's `.way` had bare `<span>`/`<strong>`
 * children, which are not editable as blocks, so the pattern uses three
 * `core/paragraph`s instead and this file targets them positionally
 * (`:nth-child`) to reproduce the same three-line look.
 */
.letter {
	background: var( --jj-dark, #1C110B );
	color: var( --jj-cream, #F2E6CF );
	padding: clamp( 96px, 14vh, 150px ) clamp( 20px, 5vw, 80px );
}
.letter .lw { max-width: 1180px; margin: 0 auto; }
.letter .eyebrow {
	font: 600 12px/1 var( --jj-text ); letter-spacing: .16em; text-transform: uppercase; opacity: .65; margin: 0 0 16px;
}
.letter .ltitle {
	font-family: var( --jj-display ); font-weight: 800; text-transform: uppercase;
	font-size: clamp( 44px, 7vw, 112px ); line-height: .98; margin: 0 0 clamp( 28px, 5vh, 56px ); max-width: 14ch;
}
.letter .lgrid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp( 24px, 5vw, 80px ); }
.letter .ltext p { font-size: clamp( 17px, 1.3vw, 20px ); line-height: 1.6; margin: 0 0 1.1em; max-width: 48ch; opacity: .92; }
.letter .ltext .lead {
	font-family: var( --jj-display ); font-weight: 800; text-transform: uppercase;
	font-size: clamp( 24px, 2.4vw, 36px ); line-height: 1.1; opacity: 1;
}
/* .way: three paragraphs standing in for the prototype's span/strong/span. */
.letter .way {
	display: flex; flex-direction: column; gap: 6px;
	border-top: 1.5px solid rgba( 242, 230, 207, .6 ); border-bottom: 1.5px solid rgba( 242, 230, 207, .6 );
	padding: 20px 0; margin: 28px 0 30px;
}
.letter .way p {
	margin: 0; font: 600 12px/1 var( --jj-text ); letter-spacing: .14em; text-transform: uppercase; opacity: .7;
}
.letter .way p:nth-child(2) {
	font-family: var( --jj-display ); font-weight: 900; text-transform: uppercase;
	font-size: clamp( 34px, 3.6vw, 56px ); line-height: 1; opacity: 1; letter-spacing: normal;
}
.letter .way p:nth-child(2) strong { color: var( --jj-amber, #E9A93A ); font-weight: inherit; }
.letter .lq {
	font-family: var( --jj-display ); font-weight: 800; text-transform: uppercase;
	font-size: clamp( 26px, 3vw, 46px ); line-height: 1.1; margin: clamp( 36px, 6vh, 72px ) 0 18px; max-width: 24ch;
}
.letter .lclose { font-size: clamp( 16px, 1.2vw, 19px ); line-height: 1.6; max-width: 60ch; opacity: .85; margin: 0; }
.letter .lclose strong { color: var( --jj-amber, #E9A93A ); }
@media (max-width: 767px) { .letter .lgrid { grid-template-columns: 1fr; } }

/* Landscape iPhone (viewport-fit=cover): clear of the notch (28 Sep 2026). */
.letter > * {
	padding-left: max( 0px, var( --jj-sl, 0px ) - clamp( 20px, 5vw, 80px ) );
	padding-right: max( 0px, var( --jj-sr, 0px ) - clamp( 20px, 5vw, 80px ) );
}
