:root {
  --tf-ground: #D9C7A6;
  --tf-ink: #26150F;
  --tf-oxblood: #8E1B26;
  --tf-paper: #F1E4CC;
  --tf-display: 'Big Shoulders Inline Text', Impact, 'Arial Narrow', sans-serif;
  --tf-reading: 'Bitter', Georgia, serif;
  --tf-masthead-height: 276px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body {
  margin: 0;
  background: var(--tf-ground);
  color: var(--tf-ink);
  font: 400 19px / 1.8 var(--tf-reading);
  overflow-wrap: break-word;
}
::selection { background: var(--tf-oxblood); color: var(--tf-paper); }
a {
  color: var(--tf-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: .24em;
  transition: color .18s ease, text-decoration-thickness .18s ease;
}
a:hover { color: var(--tf-oxblood); text-decoration-thickness: 2px; }
a:focus-visible {
  outline: 3px solid var(--tf-oxblood);
  outline-offset: 6px;
  background: var(--tf-paper);
  color: var(--tf-ink);
}
img { display: block; max-width: 100%; }
h1, h2, h3, .tf-wordmark { font: 700 1em / 1.03 var(--tf-display); }
h1, h2, h3, p, figure { margin: 0; }
h2 { font-size: clamp(44px, 4.3vw, 66px); }
h3 { font-size: clamp(32px, 2.8vw, 42px); margin: 1.3em 0 .6em; }
p + p { margin-top: 1.15em; }
ul { padding-left: 1.25em; margin: 1.4em 0; }
li { padding-left: .25em; }
li::marker { color: var(--tf-oxblood); }
li + li { margin-top: .7em; }
main { display: block; }
.tf-skip {
  position: absolute;
  top: 12px;
  left: 24px;
  z-index: 10;
  padding: 10px 18px;
  background: var(--tf-paper);
  transform: translateY(-180%);
}
.tf-skip:focus { transform: translateY(0); }

/* A public name, a sentence of readings, then a separate word about the guide. */
.tf-masthead {
  min-height: var(--tf-masthead-height);
  padding: 20px 5.55vw 25px;
  max-width: 1680px;
  margin-inline: auto;
}
.tf-wordmark {
  display: block;
  width: fit-content;
  max-width: 100%;
  font-size: clamp(60px, 11.7vw, 176px);
  letter-spacing: -.025em;
  white-space: nowrap;
  text-decoration: none;
  animation: tf-ink-arrival .7s cubic-bezier(.2,.7,.3,1) both;
}
.tf-reading-sentence { font-size: 19px; line-height: 1.8; margin-top: 12px; }
.tf-about-phrase { margin-top: 4px; font-size: 18px; text-align: right; }

/* The opening is entirely type. The photograph has its own second beat. */
.tf-home-opening {
  min-height: calc(100svh - var(--tf-masthead-height));
  padding: 36px 0 68px;
  max-width: 1680px;
  margin-inline: auto;
}
.tf-home-title {
  width: min(1260px, 89%);
  margin: 0 auto 62px;
  font-size: clamp(68px, 7.8vw, 116px);
  text-align: center;
  text-wrap: balance;
}
.tf-title-prelude {
  display: block;
  font-size: .405em;
  line-height: 1.18;
  margin-bottom: 16px;
}
.tf-title-turn { display: block; }
.tf-title-primary { color: var(--tf-oxblood); }
.tf-title-close { display: block; }
.tf-opening-account {
  padding: 24px 40px 22px;
  background: var(--tf-paper);
}
.tf-opening-account h2 {
  margin: 0 0 14px -60px;
  font-size: clamp(38px, 3.5vw, 52px);
}
.tf-opening-account p { max-width: 64ch; font-size: 19px; line-height: 1.75; }
.tf-opening-first { width: 62%; margin-left: 8.4%; }
.tf-opening-next { width: 59%; margin: 36px 5.55% 0 auto; }
.tf-baseline { height: 1px; background: var(--tf-oxblood); margin-top: 24px; }
.tf-opening-first .tf-baseline, .tf-account-initial .tf-baseline { width: 88%; }
.tf-opening-next .tf-baseline, .tf-account-following .tf-baseline { width: 59%; }
.tf-ending {
  background: var(--tf-oxblood);
  color: var(--tf-paper);
  padding: 54px max(8.4vw, 24px) 30px;
}
.tf-ending p {
  max-width: 1198px;
  margin-inline: auto;
  font-size: clamp(25px, 2.65vw, 38px);
  line-height: 1.55;
  text-wrap: pretty;
}
.tf-shared-divider {
  max-width: 1198px;
  margin: 32px auto 0;
  height: 1px;
  background: var(--tf-paper);
}
.tf-second-beat {
  background: var(--tf-oxblood);
  border-left: 80px solid var(--tf-ground);
  border-right: 24px solid var(--tf-ground);
  padding: 64px 0 76px;
}
.tf-hero-figure { width: min(980px, calc(100% - 80px)); margin-inline: auto; }
.tf-hero-figure img {
  width: 980px;
  height: auto;
  aspect-ratio: 980 / 650;
  object-fit: cover;
  border-radius: 0 0 16px 0;
}
.tf-hero-figure figcaption {
  padding: 32px 0 0;
  color: var(--tf-paper);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 42px;
  align-items: start;
}
.tf-hero-figure h2 { font-size: clamp(36px, 3.6vw, 52px); max-width: 15ch; }
.tf-hero-figure figcaption p { font-size: 18px; line-height: 1.8; padding-top: 3px; }

/* Each essay takes a different origin; no component comparison cards. */
.tf-page-opening { margin: 48px auto 98px; width: 83.2%; max-width: 1398px; }
.tf-page-opening h1 { font-size: clamp(60px, 7.6vw, 112px); max-width: 1150px; text-wrap: balance; }
.tf-page-intro { width: min(760px, 88%); margin: 36px 0 0 8.4vw; font-size: 22px; line-height: 1.75; }
.tf-breadcrumbs { font-size: 18px; margin-bottom: 28px; }
.tf-breadcrumbs span { margin-left: 14px; }
.tf-accounts { padding: 52px 0 116px; max-width: 1680px; margin-inline: auto; }
.tf-account { position: relative; padding: 42px 52px 38px; background: var(--tf-paper); max-width: 1000px; }
.tf-account-initial { width: 62%; margin-left: 8.4%; }
.tf-account-following { width: 60%; margin: 126px 5.55% 0 auto; }
.tf-account-heading {
  position: relative;
  margin: -8px 0 32px -86px;
  max-width: 850px;
  text-wrap: balance;
}
.tf-account p { max-width: 67ch; }
.tf-account > p:first-of-type { font-size: 21px; line-height: 1.75; }
.tf-account .tf-baseline { margin-top: 36px; }
.tf-photo-heading { display: flex; align-items: flex-start; gap: 18px; max-width: 760px; }
.tf-photo-heading > :first-child { width: 25px; height: 25px; flex: 0 0 25px; margin-top: 7px; color: var(--tf-oxblood); }
.tf-photo-reading { width: calc(100% + 152px); max-width: none; margin: 30px -56px 42px -96px; }
.tf-account-following .tf-photo-reading { margin-left: -56px; margin-right: -96px; }
.tf-photo-reading img { width: 100%; height: auto; aspect-ratio: 920 / 460; object-fit: cover; border-radius: 0 0 16px 0; }
.tf-photo-reading figcaption { width: min(640px, calc(100% - 96px)); margin: 22px 0 0 96px; font-size: 18px; line-height: 1.8; }
.tf-account-following .tf-photo-reading figcaption { margin-left: 56px; }

/* An onward-reading index, with a different Lucide marker for each subject. */
.tf-tail-reading { padding: 78px 8.4vw 38px; max-width: 1680px; margin-inline: auto; }
.tf-tail-reading h2 { font-size: clamp(48px, 5vw, 72px); }
.tf-footer-contents { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 30px 48px; margin: 42px 0 68px; }
.tf-footer-contents p + p { margin-top: 0; }
.tf-footer-contents a { display: inline-flex; gap: 14px; align-items: baseline; min-height: 44px; font-size: 18px; }
.tf-footer-contents [data-lucide], .tf-footer-contents svg { width: 24px; height: 24px; flex: 0 0 24px; align-self: center; color: var(--tf-oxblood); transition: transform .18s ease; }
.tf-footer-contents a:hover svg, .tf-footer-contents a:focus-visible svg { transform: translateX(3px); }
.tf-footer-note { max-width: 850px; font-size: 18px; }
.tf-copyright { font-size: 18px; margin-top: 24px; }
.tf-error { min-height: 50svh; padding: 55px 8.4vw 100px; }
.tf-error h1 { font-size: clamp(65px, 8vw, 120px); max-width: 1000px; }
.tf-error p { max-width: 660px; margin-top: 35px; }
@keyframes tf-ink-arrival { from { transform: translateY(6px); } to { transform: translateY(0); } }

@media (min-width: 1800px) {
  .tf-masthead { padding-inline: 80px; }
  .tf-wordmark { font-size: 176px; }
}
@media (max-width: 1000px) {
  :root { --tf-masthead-height: 240px; }
  .tf-masthead { padding-inline: 32px; }
  .tf-home-title { margin-bottom: 48px; }
  .tf-title-prelude { font-size: .48em; }
  .tf-opening-account { padding-inline: 32px; }
  .tf-opening-account h2 { margin-left: -44px; }
  .tf-opening-first { width: 76%; margin-left: 8%; }
  .tf-opening-next { width: 73%; margin-right: 4%; }
  .tf-account { padding: 36px; }
  .tf-account-initial { width: 76%; margin-left: 9%; }
  .tf-account-following { width: 75%; margin-right: 5%; }
  .tf-account-heading { margin-left: -52px; }
  .tf-photo-reading { width: calc(100% + 88px); margin-left: -52px; margin-right: -36px; }
  .tf-account-following .tf-photo-reading { margin-left: -36px; margin-right: -52px; }
  .tf-photo-reading figcaption { width: calc(100% - 88px); margin-left: 52px; }
  .tf-account-following .tf-photo-reading figcaption { margin-left: 36px; }
  .tf-footer-contents { grid-template-columns: 1fr 1fr; }
  .tf-hero-figure { width: calc(100% - 48px); }
  .tf-hero-figure figcaption { gap: 28px; }
}
@media (max-width: 600px) {
  :root { --tf-masthead-height: 260px; }
  html { scroll-padding-top: 20px; }
  body { font-size: 18px; line-height: 1.8; }
  .tf-masthead { padding: 23px 24px 24px; }
  .tf-wordmark { font-size: clamp(41px, 12.1vw, 72px); line-height: 1.12; }
  .tf-reading-sentence { font-size: 18px; line-height: 1.8; margin-top: 18px; }
  .tf-about-phrase { text-align: left; margin-top: 12px; }
  .tf-home-opening { padding: 28px 0 48px; }
  .tf-home-title { width: calc(100% - 48px); margin-bottom: 48px; font-size: clamp(49px, 13.8vw, 80px); line-height: 1.03; }
  .tf-title-prelude { font-size: .58em; line-height: 1.2; margin-bottom: 20px; }
  .tf-title-primary { display: inline; }
  .tf-opening-account { width: calc(100% - 48px); margin-inline: 24px; padding: 24px; }
  .tf-opening-next { margin-top: 44px; }
  .tf-opening-account h2 { margin-left: -12px; font-size: 39px; }
  .tf-opening-account p { font-size: 18px; line-height: 1.8; }
  .tf-baseline { margin-top: 24px; }
  .tf-ending { padding: 34px 24px 25px; }
  .tf-ending p { font-size: 24px; line-height: 1.65; }
  .tf-shared-divider { margin-top: 28px; }
  .tf-second-beat { padding: 32px 0 40px; }
  .tf-hero-figure { width: 100%; }
  .tf-hero-figure figcaption { display: block; padding-top: 26px; }
  .tf-hero-figure h2 { font-size: 36px; max-width: none; margin-bottom: 20px; }
  .tf-hero-figure figcaption p { padding: 0; font-size: 18px; }
  .tf-page-opening { width: auto; margin: 28px 24px 58px; }
  .tf-page-opening h1 { font-size: clamp(51px, 14vw, 80px); line-height: 1.04; }
  .tf-page-intro { width: auto; margin: 28px 0 0; font-size: 20px; line-height: 1.75; }
  .tf-breadcrumbs { margin-bottom: 26px; }
  .tf-accounts { padding: 6px 0 60px; }
  .tf-account { width: calc(100% - 48px); margin-inline: 24px; padding: 28px 24px; }
  .tf-account-following { margin-top: 64px; }
  .tf-account-heading { margin-left: -12px; margin-bottom: 26px; font-size: 44px; }
  .tf-account > p:first-of-type { font-size: 20px; }
  h3 { font-size: 34px; }
  .tf-photo-heading { gap: 12px; }
  .tf-photo-heading > :first-child { width: 22px; height: 22px; flex-basis: 22px; margin-top: 5px; }
  .tf-photo-reading, .tf-account-following .tf-photo-reading { width: calc(100% + 48px); margin: 28px -24px 34px; }
  .tf-photo-reading figcaption, .tf-account-following .tf-photo-reading figcaption { width: auto; margin: 20px 24px 0; }
  .tf-tail-reading { padding: 56px 24px 32px; }
  .tf-footer-contents { grid-template-columns: 1fr; gap: 16px; margin: 32px 0 44px; }
  .tf-footer-contents a { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
