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

:root {
  color-scheme: light;
  font: 16px/1.65 "DM Sans", system-ui, sans-serif;
  --ink: #453131;
  --muted: #69565a;
  --berry: #833e5d;
  --line: #d8c1b5;
  --paper: #fffaf1;
  --sticker: #f7d8e5;
  color: var(--ink);
  background: #fdf8ed;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
header { background: var(--paper); border-bottom: 1px dashed var(--line); }
nav, main, footer { width: min(70rem, calc(100% - 2.5rem)); margin-inline: auto; }
nav, footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
nav { padding-block: .85rem; font-weight: 700; }
.brand { display: inline-flex; gap: .55rem; align-items: center; text-decoration: none; }
.brand span { font-size: 1.3rem; background: #f7d8e5; border-radius: .6rem; padding: .1rem .52rem; }
main { flex: 1; padding-block: clamp(1.5rem, 5vw, 4rem); }
footer { padding-block: 1.25rem; border-top: 1px dashed var(--line); color: var(--muted); overflow-wrap: anywhere; }
h1, h2 { font-family: "Young Serif", Georgia, serif; font-weight: 400; line-height: 1.18; margin: 0 0 .55em; overflow-wrap: anywhere; }
h1 { font-size: clamp(2rem, 5vw, 4rem); color: var(--berry); }
h2 { font-size: 1.35rem; }
p { margin: 0 0 1rem; }
a { color: var(--berry); text-underline-offset: .2em; overflow-wrap: anywhere; }
a:focus-visible { outline: 3px solid var(--berry); outline-offset: 4px; }
code { overflow-wrap: anywhere; }
.intro, .page-heading {
  border: 1px solid var(--line);
  border-radius: 1.6rem;
  background: linear-gradient(115deg, #fff5e4ed, #f8dce9df), url("/images/paper-hero.jpg") center / cover;
  padding: clamp(1.4rem, 6vw, 4rem);
}
.intro { text-align: center; margin-bottom: 2.5rem; }
.intro p, .meta { color: var(--muted); }
.intro p, .page-heading dl { margin-bottom: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1.5rem; }
.card, article { background: var(--paper); border: 1px solid var(--line); border-radius: 1.35rem; padding: clamp(1.25rem, 4vw, 2rem); box-shadow: 0 .35rem 0 #e9dbce; }
.card { position: relative; border-style: dashed; display: flex; flex-direction: column; align-items: flex-start; }
.card::before {
  content: "";
  position: absolute;
  top: -.55rem;
  left: 50%;
  transform: translateX(-50%) rotate(-4deg);
  width: 4rem;
  height: 1.2rem;
  background: var(--sticker);
  pointer-events: none;
}
.duckfarmmanager { --sticker: #f6e6ad; }
.dogeshbhai { --sticker: #d8ebd9; }
.sticker { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 1rem; background: var(--sticker); font-size: 1.9rem; margin-bottom: 1rem; transform: rotate(-5deg); }
.links { display: flex; gap: .55rem; flex-wrap: wrap; margin-top: auto; }
.links a, .button { display: inline-block; padding: .42rem .85rem; border: 1px solid #d8b5c3; border-radius: 999px; background: #fff4f7; font-weight: 700; text-decoration: none; }
.links a:hover, .button:hover { text-decoration: underline; }
.button { color: #fff; background: var(--berry); }
.page-heading, article, .related { max-width: 49rem; margin-inline: auto; }
.page-heading { margin-bottom: 1.4rem; }
.page-heading .sticker { margin-top: 1.2rem; }
.page-heading h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
dl { display: flex; flex-wrap: wrap; gap: .75rem 2rem; margin: 0; }
dt { font-weight: 700; }
dd { margin: 0; overflow-wrap: anywhere; }
article section + section { border-top: 1px dashed var(--line); padding-top: 1.3rem; margin-top: 1.3rem; }
article section > :last-child { margin-bottom: 0; }
.related { margin-top: 1.25rem; }
