/* AfterPew house style. The master copy lives in ~/afterpew-house/house.css; each page's publish.sh copies it in.
   It carries only what every AfterPew page shares: the type, the strip across the top, the kicker line,
   the button shape and the footer. Each page sets the colours below for itself and brings its own layout. */

@font-face { font-family: "EB Garamond"; src: url("fonts/eb-garamond-400Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("fonts/eb-garamond-400Regular_Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("fonts/eb-garamond-500Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("fonts/eb-garamond-600SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/dm-sans-400Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/dm-sans-500Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/dm-sans-700Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --ap-serif: "EB Garamond", "Iowan Old Style", Georgia, serif;
  --ap-sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* A page overrides these six. */
  --ap-page: #efe6d3;      /* page background */
  --ap-ink: #33281c;       /* main text */
  --ap-soft: #5d4f3d;      /* secondary text */
  --ap-line: #d9cbae;      /* hairlines */
  --ap-accent: #8a6a1c;    /* links, kicker */
  --ap-button: #8a6a1c;    /* filled button */
  --ap-on-button: #fff8e6; /* text on the filled button */
}

/* The strip across the very top: whose page this is, and the way to the other apps. */
.ap-strip {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 7px 22px; font: 400 .84rem/1.4 var(--ap-sans); color: var(--ap-soft);
  border-bottom: 1px solid var(--ap-line); background: var(--ap-page);
}
.ap-strip b { font: 500 1rem/1.2 var(--ap-serif); color: var(--ap-ink); letter-spacing: .01em; }
.ap-strip a { color: var(--ap-soft); text-decoration: none; margin-left: 16px; }
.ap-strip a:hover, .ap-strip a[aria-current="page"] { color: var(--ap-ink); }
.ap-strip a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--ap-accent); }

/* The small line above a heading. Italic serif in sentence case. Never capitals with wide spacing. */
.ap-kicker { font: italic 400 1.12rem/1.3 var(--ap-serif); color: var(--ap-accent); margin: 0 0 10px; letter-spacing: 0; text-transform: none; }

/* Buttons: one shape everywhere. */
.ap-btn {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer; text-decoration: none;
  font: 700 1rem/1 var(--ap-sans); padding: 16px 24px; border-radius: 999px;
  background: var(--ap-button); color: var(--ap-on-button); border: 1px solid var(--ap-button);
  transition: transform .15s ease, filter .15s ease;
}
.ap-btn:hover { transform: translateY(-1px); filter: brightness(1.08); color: var(--ap-on-button); }
.ap-btn.quiet { background: transparent; color: var(--ap-accent); border-color: currentColor; }
.ap-btn.quiet:hover { color: var(--ap-ink); filter: none; }
.ap-btn.small { padding: 11px 18px; font-size: .9rem; }

/* The footer every page ends with. */
.ap-foot { border-top: 1px solid var(--ap-line); background: var(--ap-page); color: var(--ap-soft); padding: 40px 22px 48px; font: 400 .92rem/1.6 var(--ap-sans); }
.ap-foot-in { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; }
.ap-foot b { display: block; font: 500 1.3rem/1.2 var(--ap-serif); color: var(--ap-ink); margin-bottom: 6px; }
.ap-foot p { margin: 0 0 6px; }
.ap-foot h2 { font: 700 .86rem/1.4 var(--ap-sans); color: var(--ap-ink); margin: 0 0 8px; letter-spacing: 0; }
.ap-foot ul { list-style: none; margin: 0; padding: 0; }
.ap-foot li { margin-bottom: 4px; }
.ap-foot a { color: var(--ap-soft); text-underline-offset: 3px; }
.ap-foot a:hover { color: var(--ap-ink); }
.ap-foot .ap-small { grid-column: 1 / -1; font-size: .82rem; border-top: 1px solid var(--ap-line); padding-top: 16px; margin-top: 4px; }
@media (max-width: 760px) {
  .ap-foot-in { grid-template-columns: 1fr; gap: 20px; }
  .ap-strip { padding-inline: 16px; }
  .ap-strip a { margin-left: 12px; }
}
