@font-face { font-family: 'MM Display'; src: url('assets/Lora-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
:root {
  color-scheme: light;
  --paper: #e6e3dd;
  --ink: #0f0f17;
  --blue: #495869;
  --brown: #705a4d;
  --khaki: #b6a77a;
  --rule: rgba(73,88,105,.46);
  --display: "MM Display", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --type: "American Typewriter", "Courier New", Courier, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--type); }
.sheet { width: min(100% - clamp(40px, 9.7vw, 166px), 1440px); margin: auto; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
header, footer { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
header { border-bottom: 3px double var(--rule); padding: clamp(22px, 3.2vw, 48px) 0 20px; }
.name { font-family: var(--display); font-weight: 650; font-size: clamp(1.35rem, 1.9vw, 2rem); letter-spacing: -.04em; }
.gen { color: var(--blue); font-style: italic; font-family: var(--display); font-size: 1.08rem; }
main { flex: 1; display: grid; grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr); gap: clamp(38px, 8.5vw, 145px); align-items: center; padding: clamp(50px, 6.8vw, 116px) clamp(0px, 3vw, 45px); }
figure { margin: 0 auto; width: 90%; max-width: 425px; padding: 5px 0; transform: rotate(-4.3deg); }
.photo { position: relative; box-shadow: 1px 4px 9px rgba(31,30,33,.23), 0 17px 28px -19px rgba(31,30,33,.5); }
.photo::before { content: ''; position: absolute; width: 26%; height: 6.5%; top: -2.6%; left: 35%; background: rgba(182,167,122,.55); border-left: 1px dashed rgba(112,90,77,.35); border-right: 1px dashed rgba(112,90,77,.35); transform: rotate(4deg); }
.photo img { width: 100%; height: auto; display: block; }
figcaption { color: var(--brown); font: italic 1.1rem/1.45 var(--display); margin: 13px 0 0; text-align: center; }
.letter { padding: 5px 0 10px; }
.status { color: var(--brown); margin: 0 0 clamp(25px, 3vw, 43px); font-family: "Courier New", monospace; text-transform: uppercase; letter-spacing: .135em; font-size: .79rem; font-weight: bold; line-height: 1.5; }
h1 { margin: 0; font: 400 clamp(4.4rem, 8.75vw, 9.5rem)/.85 var(--display); letter-spacing: -.066em; }
h1 em { color: var(--blue); font-weight: 500; }
.intro { max-width: 35ch; font-size: clamp(1.12rem, 1.4vw, 1.36rem); line-height: 1.53; margin: 30px 0 23px; }
.postscript { margin: 0; color: var(--brown); font-size: 1rem; line-height: 1.5; }
.handle { width: fit-content; max-width: 100%; display: inline-flex; align-items: center; gap: 9px; margin-top: 5px; color: var(--blue); font: 600 1rem/1.5 "Helvetica Neue", Arial, sans-serif; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em; min-height: 44px; overflow-wrap: anywhere; }
.handle:hover { color: var(--brown); }
.handle:focus-visible { outline: 2px solid var(--brown); outline-offset: 4px; }
.handle svg { width: 21px; height: 21px; flex: 0 0 21px; }
footer { border-top: 1px solid var(--rule); padding: 18px 0 22px; color: var(--blue); font: .82rem/1.5 "Courier New", monospace; }
footer span:last-child { font: italic 1rem/1.4 var(--display); }
@media (max-width: 880px) {
  .sheet { width: min(100% - 40px, 540px); }
  header { padding: 20px 0 17px; } .gen { font-size: .94rem; }
  main { display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 0; }
  .letter { order: -1; padding: 42px 0 26px; }
  .status { margin-bottom: 22px; font-size: .73rem; }
  h1 { font-size: clamp(3.4rem, 16vw, 6.8rem); }
  .intro { margin: 23px 0 15px; }
  figure { width: min(74%, 300px); margin: 12px auto 40px; }
  footer { flex-wrap: wrap; align-items: flex-start; gap: 5px 16px; }
}
@media (max-width: 365px) { .sheet { width: calc(100% - 32px); } .name { font-size: 1.2rem; } .handle { font-size: .94rem; } }
