/* Papers in the Attic */

@font-face {
  font-family: "Reddit Sans Condensed";
  src: url("/assets/fonts/reddit-sans-condensed-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --display: "Reddit Sans Condensed", "Arial Narrow", sans-serif;
  --body: "Times New Roman", Times, serif;
  --ink: #000;
  --navy: #001642;
  --accent: #cd853f;
  --rule: #69727d;
  --header-height: 84px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-height); }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--body);
  font-size: 22px;
  line-height: 1.5;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; line-height: 1; }
p { margin: 0 0 14.4px; }

.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed;
  z-index: 20;
  top: 8px;
  left: 8px;
  padding: 8px 16px;
  background: #fff;
  font-family: var(--display);
  font-size: 16px;
}

/* ---- Header ---- */
.site-header {
  position: fixed;
  z-index: 10;
  inset: 0 0 auto;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
}
.site-header__inner {
  display: grid;
  grid-template-columns: 40% 60%;
  align-items: center;
  height: var(--header-height);
  padding: 0 10px;
}
.logo { display: block; padding-left: 20px; }
.logo img { width: 24.2vw; }
.site-nav ul { display: flex; margin: 0; padding: 0; list-style: none; }
.site-nav a {
  display: block;
  padding: 8px 12px;
  color: #000;
  font-family: var(--display);
  font-size: 18px;
  line-height: 20px;
  letter-spacing: .15px;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); }
.menu-toggle { display: none; }

/* ---- Hero ---- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(75vh + 200px);
  padding: 80px 10px 20px;
  background: url("/wp-content/uploads/2025/03/StockCake-Sunlit-Attic-Treasures_1741471907-topaz-enhance-3.4x-scaled.jpg") center / cover no-repeat;
  color: #fff;
  text-align: center;
}
.hero::before { content: ""; position: absolute; inset: 0; background: #000; opacity: .52; }
.hero > * { position: relative; }
.hero h1 { padding-bottom: 20px; font-size: 70px; }
.hero h2 { margin-top: 20px; padding-bottom: 20px; font-size: 50px; }

/* ---- Home story ---- */
.home-intro { max-width: 1140px; margin: 60px auto 0; padding: 10px; text-align: center; }
.home-intro h2 { font-size: 70px; font-weight: 400; }
.home-intro strong { font-weight: 700; }
.home-story { max-width: 1140px; margin: 0 auto; }
.split { display: grid; grid-template-columns: 1fr 1fr; margin-top: 40px; }
.split > div { min-width: 0; padding: 10px; }
.split figure { margin: 0; }
.split img { width: 100%; }
.split img.bordered { border: 1px solid #000; }
.split p:last-child { margin-bottom: 0; }
.spill { padding: 0 10px 0 5px; }

/* ---- Cards ---- */
.listing { max-width: 1160px; margin: 0 auto; padding: 160px 10px 0; }
.listing--home { padding-top: 70px; }
.page-heading, .archive-heading { padding-bottom: 40px; font-size: 70px; color: #000; text-align: center; }
.not-found { text-align: center; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 35px 30px; }
.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, .15);
  overflow: hidden;
}
.card__thumb { position: relative; display: block; aspect-ratio: 1 / .66; overflow: hidden; }
.card__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, 0) 75%);
}
.card__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.card__thumb.is-full { background: #eee; }
.card__thumb.is-full::after { display: none; }
.card__thumb.is-full img { object-fit: contain; object-position: center; }
.card__text { padding: 40px 30px 20px; }
.card__title { margin-bottom: 25px; font-size: 21px; font-weight: 600; line-height: 1.2; }
.card__title a { color: #000; }
.card__more { display: inline-block; color: #000; font-size: 12px; line-height: 18px; }

/* ---- Posts ---- */
.post { padding: 200px 10px 0; }
.post__header { max-width: 1140px; margin: 0 auto; text-align: center; }
.prose { max-width: 900px; margin: 0 auto; }
.post__heading { font-size: 70px; }
.post__heading .post-subheading { font-size: 50px; }
.post__subheading { margin-top: 20px; font-size: 50px; }
.post__subheading.is-italic { font-style: italic; }
.post__meta {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 20px 0;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
}
.prose figure { margin: 20px auto; }
.prose img { margin: 0 auto; }
.prose figcaption { margin-top: 5px; font-size: 16px; font-style: italic; line-height: 1.3; text-align: center; }
.prose h2.sub { margin: 20px 0; color: var(--navy); font-size: 40px; font-weight: 400; text-align: center; }
.prose blockquote { margin: 20px 0; }
.prose blockquote p { margin: 0; }
.prose blockquote.quote { font-style: italic; }
.prose blockquote.pull { color: var(--navy); font-family: var(--display); font-size: 40px; line-height: 57px; }
.prose blockquote.caps { text-transform: uppercase; }
.prose .subhead { margin-top: 44px; color: var(--navy); font-family: var(--display); font-size: 30px; font-weight: 700; line-height: 1.2; }
.pair { display: grid; grid-template-columns: 2fr 3fr; gap: 10px; align-items: center; margin: 30px 0; }
.pair figure { margin: 0; }

/* ---- Footer ---- */
.signature { max-width: 1160px; margin: 20px auto 0; padding: 0 10px; }
.signature img { width: min(20vw, 228px); margin-left: auto; }
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  max-width: 1140px;
  margin: 30px auto 30px;
  padding: 30px 10px 0 27px;
  border-top: 1px dotted var(--rule);
  font-size: 18px;
}
.site-footer p { margin: 0; }
.site-footer__email { display: inline-flex; align-items: center; gap: 6px; }

/* ---- Tablet ---- */
@media (max-width: 1024px) {
  :root { --header-height: 82px; }
  .site-header__inner { position: relative; display: flex; }
  .logo img { width: 19vw; }
  .menu-toggle {
    position: absolute;
    top: 23px;
    left: 50%;
    display: block;
    width: 36px;
    height: 36px;
    margin-left: -18px;
    padding: 6px;
    border: 0;
    background: none;
    cursor: pointer;
  }
  .menu-toggle span,
  .menu-toggle span::before,
  .menu-toggle span::after {
    content: "";
    display: block;
    height: 3px;
    border-radius: 2px;
    background: #999;
  }
  .menu-toggle span { position: relative; }
  .menu-toggle span::before { position: absolute; inset: -7px 0 auto; }
  .menu-toggle span::after { position: absolute; inset: 7px 0 auto; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; text-align: center; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Phone ---- */
@media (max-width: 767px) {
  :root { --header-height: 129px; }
  body { font-size: 22px; }
  .site-header__inner { flex-direction: column; justify-content: center; gap: 6px; height: auto; min-height: var(--header-height); padding: 12px 10px; }
  .logo { padding: 0; }
  .logo img { width: 228px; margin: 0 auto; }
  .menu-toggle { position: static; margin: 0; }

  .hero { padding-top: 140px; }
  .home-story { padding: 0 10px; }
  .hero h1 { font-size: 50px; }
  .hero h2 { font-size: 30px; }
  .home-intro h2 { font-size: 60px; }
  .split { grid-template-columns: 1fr; gap: 0; margin-top: 0; }
  .split:nth-of-type(2n) > div:first-child { order: 2; }
  .cards { grid-template-columns: 1fr; }
  .listing { padding-top: 170px; }
  .listing--home { padding-top: 60px; }
  .page-heading, .archive-heading { font-size: 60px; }
  .post { padding-top: 200px; }
  .post__heading { font-size: min(13vw, 50px); }
  .post__heading .post-subheading { font-size: 34px; }
  .post__subheading { font-size: 30px; }
  .prose h2.sub { font-size: 30px; }
  .prose blockquote.pull { font-size: 30px; line-height: 1.35; }
  .site-footer { flex-direction: column; align-items: center; padding: 30px 10px 0; text-align: center; }
  .signature img { width: 228px; margin: 0 auto; }
}

@media print {
  .site-header, .signature { display: none; }
  .post, .listing { padding-top: 0; }
}

/* ---- Archives (category, author, year, month) ---- */
.archive { max-width: 820px; margin: 0 auto; padding: 130px 10px 0; }
.archive .archive-heading { font-size: 40px; font-weight: 500; text-align: left; padding-bottom: 24px; }
.archive-item { margin-bottom: 30px; }
.archive-item h2 { margin-bottom: 10px; font-size: 26px; font-weight: 600; line-height: 1.2; }
.archive-item img { width: 100%; }
.archive-item p { margin: 8px 0 0; font-size: 18px; line-height: 1.4; }
