/* HoundDogDealz v2 - cream paper, ink, rust. Soft reading contrast. */
:root {
  --paper: #f3ebdC;
  --paper-deep: #eadfcb;
  --ink: #33251c;
  --body: #4a3b30;
  --muted: #6b5748;
  --rust: #c85a2c;
  --rust-dark: #a84820;
  --rule: #cbb9a4;
  --note: #efe0c4;
  --cream: #f8f1e6;
  --font-sans: Outfit, "Segoe UI", system-ui, sans-serif;
  --font-body: Newsreader, Georgia, "Times New Roman", serif;
  --font-hand: Caveat, "Segoe Script", cursive;
  --measure: 38rem;
  --wrap: 1080px;
}

@font-face {
  font-family: Outfit;
  src: url("../fonts/outfit-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Newsreader;
  src: url("../fonts/newsreader-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Caveat;
  src: url("../fonts/caveat-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

body {
  margin: 0;
  color: var(--body);
  font-family: var(--font-body);
  font-size: 1.125rem; /* 18px */
  font-weight: 450;
  font-optical-sizing: auto;
  line-height: 1.65;
  background-color: var(--paper);
  background-image: url("../img/paper.png");
  background-repeat: repeat;
  background-size: 128px 128px;
}

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

a {
  color: var(--rust);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--rust-dark);
}

:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 3px;
}

::selection {
  background: #e8c4b0;
  color: var(--ink);
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3.2rem;
  background: var(--ink);
  color: var(--cream);
  padding: 0.5rem 0.8rem;
  z-index: 20;
  border-radius: 3px;
}

.skip-link:focus {
  top: 0.75rem;
  color: var(--cream);
}

.wrap {
  width: min(var(--wrap), calc(100% - 3.25rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  padding: 1.15rem 0 0.95rem;
}

.site-header .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand img {
  width: 36px;
  height: 37px;
}

.wordmark {
  font-family: var(--font-sans);
  font-size: 1.28rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.25rem 1.1rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.dash {
  border: 0;
  border-top: 1px dashed var(--rule);
  margin: 0;
}

/* Intro: asymmetric, not a centered hero */
.intro {
  display: grid;
  grid-template-columns: minmax(180px, 0.82fr) minmax(0, 1.35fr);
  gap: 1.75rem 3.25rem;
  align-items: start;
  padding: 2.35rem 0 2.25rem;
}

.portrait {
  margin: 0.6rem 0 0 0.15rem;
  justify-self: start;
}

.portrait img {
  width: min(230px, 100%);
  height: auto;
  transform: rotate(-5deg);
  transform-origin: 50% 70%;
}

.portrait figcaption {
  font-family: var(--font-hand);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--rust);
  line-height: 1;
  margin: 0.15rem 0 0 1.7rem;
  transform: rotate(-4deg);
}

.kicker {
  margin: 0 0 0.35rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.intro h1 {
  margin: 0 0 1rem;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(2rem, 3.6vw, 2.7rem);
  font-weight: 550;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.intro-copy {
  padding-top: 1.15rem;
}

.lede {
  margin: 0 0 1.15rem;
  max-width: 34rem;
}

.follow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--rust);
  color: var(--cream);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 0.7rem 1.05rem;
  border-radius: 3px;
}

.follow-link:hover {
  background: var(--rust-dark);
  color: var(--cream);
}

.follow-link svg {
  width: 0.85rem;
  height: 0.85rem;
  fill: currentColor;
}

/* Sections */
.block {
  padding: 2.15rem 0 2.35rem;
}

.block h2,
.note h2,
.page h1 {
  color: var(--ink);
}

.block h2 {
  margin: 0 0 0.7rem;
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 4rem;
  align-items: start;
}

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding: 0.18rem 0 0.18rem 1.35rem;
}

.checklist li::before {
  position: absolute;
  left: 0;
  top: 0.18rem;
  font-family: var(--font-hand);
  font-size: 1.35rem;
  line-height: 1;
}

.post li::before {
  content: "+";
  color: var(--rust);
  font-weight: 600;
}

.skip-list li::before {
  content: "x";
  color: var(--muted);
  font-weight: 600;
}

.tag-row {
  margin-top: 1.75rem;
}

.tag-label {
  margin: 0 0 0.7rem;
  font-family: var(--font-hand);
  font-size: 1.35rem;
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.7rem;
  align-items: center;
}

.tag {
  display: inline-block;
  background: var(--cream);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 550;
  letter-spacing: 0.01em;
  padding: 0.32rem 0.7rem 0.3rem;
  border: 1px solid var(--ink);
  box-shadow: 1px 1px 0 var(--ink);
}

.tag:hover {
  color: var(--ink);
  background: #fff6ea;
}

.tag:nth-child(1) { transform: rotate(-1.4deg); }
.tag:nth-child(2) { transform: rotate(1.2deg); }
.tag:nth-child(3) { transform: rotate(-0.8deg); }
.tag:nth-child(4) { transform: rotate(1.6deg); }

/* Scrap of paper */
.note {
  max-width: 36.5rem;
  margin: 0.25rem 0 0 1.25rem;
  padding: 1.35rem 1.55rem 1.4rem;
  background: var(--note);
  box-shadow: 2px 3px 0 rgba(51, 37, 28, 0.08);
  transform: rotate(-0.9deg);
}

.note h2 {
  margin: 0 0 0.45rem;
  font-family: var(--font-hand);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.1;
}

.note p {
  margin: 0;
  max-width: none;
}

.prose {
  max-width: var(--measure);
}

.prose p {
  margin: 0 0 1rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.legal {
  color: var(--muted);
  font-size: 1.05rem;
}

.legal strong {
  color: var(--body);
  font-weight: 550;
}

/* Footer */
.site-footer {
  padding: 1.35rem 0 2.1rem;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.4rem;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

/* Interior pages */
.page {
  padding: 2.4rem 0 3.4rem;
}

.page h1 {
  margin: 0 0 0.4rem;
  font-family: var(--font-body);
  font-size: clamp(1.9rem, 3.5vw, 2.4rem);
  font-weight: 550;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.page .mark {
  display: block;
  width: 3rem;
  height: 0;
  border-top: 1px dashed var(--rust);
  margin: 0 0 1.35rem;
}

.page .prose p {
  margin-bottom: 1.05rem;
}

/* Responsive */
@media (max-width: 800px) {
  .intro {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 1.5rem 0 2rem;
  }

  .portrait {
    margin: 0 0 0.25rem;
  }

  .portrait img {
    width: min(160px, 52vw);
  }

  .split {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .note {
    margin-left: 0.15rem;
    margin-right: 0.15rem;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 1.0625rem; /* 17px */
  }

  .wrap {
    width: min(var(--wrap), calc(100% - 1.85rem));
  }

  .site-header .wrap {
    flex-wrap: wrap;
    gap: 0.55rem;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    gap: 0.25rem 0.95rem;
  }

  .intro h1 {
    font-size: 1.85rem;
  }

  .portrait figcaption {
    font-size: 1.35rem;
    margin-left: 1.1rem;
  }

  .note {
    transform: rotate(-0.4deg);
    padding: 1.15rem 1.15rem 1.2rem;
  }

  .tag:nth-child(n) {
    transform: none;
  }

  /* keep a little life without crowding the edges */
  .tag:nth-child(2) { transform: rotate(0.8deg); }
  .tag:nth-child(4) { transform: rotate(-0.8deg); }
}
