@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Work+Sans:wght@400;500;600;700;800&display=swap');

.year-in-review {
  --canvas: #f0efe9;
  --paper: #fffef9;
  --ink: #202023;
  --muted: #4e4d53;
  --rule: #8d8c95;
  --accent: #ffd849;
  --accent-ink: #15151a;
  --blue: #2024aa;
  --body: 'Work Sans', sans-serif;
  --display: 'Archivo Black', 'Arial Black', sans-serif;
}
.year-in-review .masthead { background: var(--blue); color: #fff; border: 0; }
.year-in-review .masthead :focus-visible { outline-color: #fff; }
.year-home { max-width: 1500px; margin: auto; }
.year-hero { display: grid; grid-template-columns: 1.12fr .88fr; background: var(--blue); color: #fff; }
.year-hero > div { align-self: center; padding: clamp(2rem, 6vw, 6rem) 5vw; }
.year-hero h1 { font-size: clamp(3rem, 7.9vw, 8rem); letter-spacing: -.065em; text-transform: uppercase; }
.year-hero p { max-width: 33ch; margin: 1rem 0; }
.year-hero .permission { color: #efedff; }
.year-hero figure { position: relative; min-height: 300px; display: grid; align-items: end; }
.year-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.year-hero figcaption { z-index: 1; background: var(--accent); color: var(--accent-ink); justify-self: start; margin: 1.2rem; padding: .4rem .8rem; display: flex; align-items: center; gap: 1rem; }
.year-hero figcaption strong { font-family: var(--display); font-size: clamp(2rem, 4.5vw, 4rem); }
.year-steps { display: grid; grid-template-columns: repeat(3, 1fr); padding: 2.6rem 5vw; gap: 1.5rem; }
.year-steps h2 { font-size: clamp(1.2rem, 2vw, 1.65rem); margin-bottom: .65rem; }
.year-studio { max-width: 1260px; margin: auto; padding: 1.5rem clamp(1rem, 4vw, 4rem) 4rem; }
.edition-controls { display: grid; grid-template-columns: minmax(90px, .45fr) 1fr 1fr; gap: .7rem 1rem; align-items: end; }
.edition-controls .hint { grid-column: 1 / -1; }
.month-index ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 1.2rem 0; }
.month-index a { display: inline-block; padding: .33rem .65rem; border: 1px solid var(--rule); text-decoration: none; }
.month-index a:hover { background: var(--accent); }
.year-edition { border: 1px solid var(--rule); background: var(--paper); }
.year-in-review .edition-cover { display: grid; grid-template-columns: 1.15fr .85fr; text-align: start; background: var(--blue); color: #fff; }
.year-in-review .cover-copy { padding: clamp(1rem, 4vw, 3.8rem); align-self: center; }
.year-in-review .cover-copy h1 { margin: .45rem 0 .8rem; font-size: clamp(2.6rem, 6.8vw, 6.6rem); letter-spacing: -.06em; text-transform: uppercase; }
.year-in-review .edition-date { color: var(--accent); font-size: 1.2rem; }
.year-in-review .issue-count { margin-top: .55rem; font-size: .9rem; }
.year-in-review .cover-feature { align-self: stretch; }
.year-in-review .cover-feature img { height: auto; aspect-ratio: 4 / 3; }
.year-in-review .cover-feature figcaption { color: #fff; padding: .35rem .65rem; }
.year-in-review .cover-quote { grid-column: 1 / -1; background: var(--accent); color: var(--ink); padding: clamp(1rem, 3vw, 2.25rem); font-size: clamp(1.2rem, 2.7vw, 2.15rem); font-weight: 700; line-height: 1.25; }
.year-in-review .chapter { margin: 1.8rem clamp(1rem, 3.5vw, 3rem); }
.year-in-review .chapter-head { padding: .55rem 0; border-top: 5px solid var(--blue); border-bottom: 1px solid var(--blue); }
.year-in-review .chapter h2 { font-size: clamp(1.65rem, 4vw, 3.1rem); text-transform: uppercase; }
.year-in-review .chapter-entries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; padding-top: .8rem; }
.year-in-review .memory { display: grid; align-content: start; gap: .65rem; border: 1px solid var(--rule); padding: .95rem; }
.year-in-review .memory:only-child { grid-column: 1 / -1; }
.year-in-review .post-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(145px, 100%), 1fr)); gap: .55rem; }
.year-in-review .post-photos img { height: auto; aspect-ratio: 3 / 2; }
@media screen {
  .year-in-review .post-photos img:only-child { max-height: 440px; }
}
.year-in-review .post-actions button:disabled { background: var(--accent); opacity: 1; }
.reflection-editor, .closing { margin-top: 1.5rem; padding: 1.1rem; border-left: 6px solid var(--blue); background: var(--paper); }
.reflection-editor label, .closing h2 { display: block; margin-bottom: .65rem; font-weight: 800; }
@media screen and (max-width: 690px) {
  .year-hero, .year-steps, .edition-controls, .year-in-review .edition-cover, .year-in-review .chapter-entries { grid-template-columns: 1fr; }
}
@media print {
  .year-in-review .edition-cover { display: block; padding: 1rem; }
  .year-in-review .chapter-entries { display: block; }
}
