:root {
  --tp-bg: #f6f1e7;
  --tp-paper: #fffdf8;
  --tp-ink: #221814;
  --tp-muted: #6f6259;
  --tp-line: #d7cabd;
  --tp-accent: #8a2c1a;
  --tp-accent-soft: #ead4ca;
  --tp-deep: #1e1815;
  --tp-gold: #c9963c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Instrument Sans", sans-serif;
  background:
    linear-gradient(180deg, #f3eadc 0%, #f8f4ec 38%, #f4efe7 100%);
  color: var(--tp-ink);
}

a {
  color: inherit;
}

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

.tp-skip {
  position: absolute;
  top: -80px;
  left: 1rem;
  background: #fff;
  color: #000;
  padding: 0.7rem 0.95rem;
  z-index: 20;
}

.tp-skip:focus {
  top: 1rem;
}

.tp-masthead,
.tp-opening,
.tp-briefbar,
.tp-ranking,
.tp-columns,
.tp-strip-image,
.tp-method,
.tp-help,
.tp-footer,
.tp-page-head,
.tp-page-body {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
}

.tp-masthead {
  padding-top: 1rem;
}

.tp-topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--tp-line);
  color: var(--tp-muted);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.74rem;
}

.tp-brandline {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1.15rem 0 1rem;
  border-bottom: 2px solid var(--tp-deep);
}

.tp-mini-nav {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.tp-mini-nav--right {
  justify-content: flex-end;
}

.tp-mini-nav a,
.tp-footer a {
  text-decoration: none;
}

.tp-mini-nav a:hover,
.tp-footer a:hover,
.tp-help-side a:hover {
  color: var(--tp-accent);
}

.tp-logo img {
  width: 262px;
}

.tp-opening {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 420px;
  gap: 2rem;
  padding: 2.4rem 0 1.8rem;
}

.tp-label {
  margin: 0 0 0.75rem;
  color: var(--tp-accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
}

.tp-opening h1,
.tp-section-head h2,
.tp-note h2,
.tp-strip-copy h2,
.tp-help h2,
.tp-page-head h1 {
  margin: 0;
  font-family: "Literata", serif;
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.tp-opening h1 {
  font-size: clamp(2.6rem, 5vw, 4.8rem);
}

.tp-opening-text,
.tp-briefbar p,
.tp-entry p,
.tp-note p,
.tp-strip-copy p,
.tp-method-row p,
.tp-help p,
.tp-page-body p,
.tp-page-body li {
  line-height: 1.75;
}

.tp-window-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0.85rem;
  align-self: start;
}

.tp-window {
  min-height: 180px;
  background-size: cover;
  background-position: center;
  border-radius: 22px 6px 22px 6px;
  box-shadow: 0 10px 30px rgba(34, 24, 20, 0.12);
}

.tp-window--tall {
  grid-row: span 2;
  min-height: 370px;
}

.tp-briefbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1.5rem;
  padding: 1rem 1.2rem;
  background: var(--tp-paper);
  border: 1px solid var(--tp-line);
  border-left: 6px solid var(--tp-accent);
}

.tp-ranking {
  padding: 2.4rem 0 1rem;
}

.tp-section-head h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.tp-entry {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 230px;
  gap: 1.4rem;
  padding: 1.3rem 0;
  border-top: 1px solid var(--tp-line);
}

.tp-entry:last-child {
  border-bottom: 1px solid var(--tp-line);
}

.tp-entry--featured {
  border-top-width: 2px;
}

.tp-entry-left {
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

.tp-index {
  display: inline-flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  border-radius: 18px 4px 18px 4px;
  background: var(--tp-deep);
  color: #fff;
  font-weight: 800;
}

.tp-entry-left img {
  width: 150px;
}

.tp-entry h3 {
  margin: 0 0 0.65rem;
  font-size: 1.5rem;
}

.tp-bonus {
  margin: 0.7rem 0;
}

.tp-entry-main ul {
  margin: 0.7rem 0 0;
  padding-left: 1.2rem;
}

.tp-entry-side {
  display: grid;
  align-content: start;
  gap: 0.9rem;
  justify-items: start;
}

.tp-score {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--tp-accent);
}

.tp-entry-side a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1rem;
  border-radius: 18px 4px 18px 4px;
  background: var(--tp-deep);
  color: #fff;
  text-decoration: none;
}

.tp-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 2.2rem 0;
}

.tp-note {
  padding: 1.2rem;
  background: rgba(255, 253, 248, 0.8);
  border: 1px solid var(--tp-line);
}

.tp-note--accent {
  background: linear-gradient(180deg, #fff7f3, #f7e6dd);
  border-color: #ddb4a5;
}

.tp-note h2 {
  font-size: 1.8rem;
}

.tp-strip-image {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 1.4rem;
  align-items: stretch;
  padding: 0.5rem 0 2rem;
}

.tp-strip-photo {
  min-height: 320px;
  background-size: cover;
  background-position: center;
  border-radius: 28px 8px 28px 8px;
}

.tp-strip-copy {
  padding: 1.3rem 0;
  border-top: 1px solid var(--tp-line);
  border-bottom: 1px solid var(--tp-line);
}

.tp-strip-copy h2,
.tp-help h2,
.tp-page-head h1 {
  font-size: clamp(1.9rem, 4vw, 3.2rem);
}

.tp-method {
  padding: 1rem 0 2rem;
}

.tp-method-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--tp-line);
}

.tp-method-row:last-child {
  border-bottom: 1px solid var(--tp-line);
}

.tp-help {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1.4rem;
  padding: 0 0 3rem;
}

.tp-help-side {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  padding: 1.3rem;
  background: var(--tp-deep);
  color: #f5efe7;
  border-radius: 24px 6px 24px 6px;
}

.tp-help-side strong {
  font-size: 2rem;
  color: var(--tp-gold);
}

.tp-help-side a {
  color: #fff0d4;
}

.tp-footer {
  padding: 2rem 0 3rem;
  background: #1b1512;
  color: #f2ebe3;
}

.tp-footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
}

.tp-footer-top img {
  width: 250px;
}

.tp-footer-pills {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.tp-footer-pills span {
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #d8cfc4;
}

.tp-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: 1.6rem;
}

.tp-footer-grid h3 {
  margin-top: 0;
}

.tp-footer-grid a {
  display: block;
  margin: 0.5rem 0;
}

.tp-subpage {
  background: linear-gradient(180deg, #f5ede0 0%, #fbf7f0 100%);
}

.tp-submain {
  padding-bottom: 3rem;
}

.tp-page-head {
  padding: 2rem 0 1rem;
}

.tp-page-body {
  padding-bottom: 1rem;
}

.tp-date {
  margin-bottom: 1rem;
  color: var(--tp-muted);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.78rem;
}

.tp-page-body article {
  padding: 1.4rem;
  background: rgba(255, 253, 248, 0.88);
  border: 1px solid var(--tp-line);
}

.tp-page-body h2 {
  margin-top: 1.8rem;
  font-family: "Literata", serif;
  font-size: 1.8rem;
}

.tp-footer--sub {
  margin-top: 2rem;
}

@media (max-width: 980px) {
  .tp-brandline,
  .tp-opening,
  .tp-entry,
  .tp-columns,
  .tp-strip-image,
  .tp-help,
  .tp-footer-top,
  .tp-footer-grid,
  .tp-method-row,
  .tp-briefbar {
    grid-template-columns: 1fr;
  }

  .tp-mini-nav,
  .tp-mini-nav--right {
    justify-content: center;
  }

  .tp-logo {
    justify-self: center;
  }
}

@media (max-width: 720px) {
  .tp-masthead,
  .tp-opening,
  .tp-briefbar,
  .tp-ranking,
  .tp-columns,
  .tp-strip-image,
  .tp-method,
  .tp-help,
  .tp-footer,
  .tp-page-head,
  .tp-page-body {
    width: min(100%, calc(100% - 1.2rem));
  }

  .tp-window-grid {
    grid-template-columns: 1fr;
  }

  .tp-window--tall {
    min-height: 240px;
  }

  .tp-page-body article {
    padding: 1.1rem;
  }
}
