/* =========================================================
   hedgebird — base.css (stable)
   ========================================================= */

/* -------------------------
   Tokens
------------------------- */

:root {
  --paper: #f6f3ea;
  --ink: #23211e;
  --muted: #6e6a63;

  --line: rgba(35, 33, 30, 0.1);
  --line-soft: rgba(35, 33, 30, 0.08);
  --moss-line: rgba(107, 122, 99, 0.22);
  --cardinal-hint: rgba(122, 31, 26, 0.35);
  --shadow: rgba(0, 0, 0, 0.05);

  --font: ui-serif, Georgia, "Times New Roman", serif;
  --text: 17px;
  --lh: 1.65;

  --desk-width: 1100px;
  --edge-pad: 40px;
  --pad-radius: 18px;

  --header-top: 24px;

  --wrapper-top: 18px;
  --wrapper-bottom: 24px;
  --pad-y: 22px;
  --pad-x: 28px;

  --panel-gap: 20px;
  --panel-rule-gap: 18px;

  --mark-primary: 56px;
  --mark-mono: 24px;
}

/* -------------------------
   Reset
------------------------- */

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--text);
  line-height: var(--lh);
  color: var(--ink);
  background: var(--paper);
}

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

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--moss-line);
}

a:hover {
  border-bottom-color: var(--cardinal-hint);
}

/* -------------------------
   Header
------------------------- */

.site-header {
  width: 100%;
  padding-left: var(--edge-pad);
  padding-right: var(--edge-pad);
  padding-top: var(--header-top);

  display: flex;
  align-items: flex-end;
  gap: 16px;

  opacity: 0.92;
}

.mark--primary {
  width: var(--mark-primary);
  max-width: var(--mark-primary);
  transform: translateY(3px);
}

.wordmark {
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0.01em;
}

/* -------------------------
   Desk pad
------------------------- */

.wrapper {
  position: relative; /* needed for coffee stain anchoring */
  max-width: var(--desk-width);
  margin: var(--wrapper-top) auto var(--wrapper-bottom);
  padding: var(--pad-y) var(--pad-x);

  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.72) 0%,
    rgba(255, 255, 255, 0.58) 40%,
    rgba(255, 255, 255, 0.52) 100%
  );

  border: 1px solid rgba(35, 33, 30, 0.06);
  border-radius: var(--pad-radius);
  box-shadow: 0 6px 18px var(--shadow);
}

/* Coffee ring lives ON the paper pad */
.wrapper::before {
  content: "";
  position: absolute;
  inset: 0;

  background-image: url("../img/desk/coffee800.png");
  background-repeat: no-repeat;
  background-position: 90% 75%;
  background-size: 240px auto;

  opacity: 0.55;
  filter: blur(0.35px);

  pointer-events: none;
  z-index: 0;
}

.pad {
  margin: 0;
  position: relative;
  z-index: 1; /* keep all pad content above the stain */
}

/* -------------------------
   Panels
------------------------- */

.panel {
  margin: 0;
}

.panel + .panel {
  margin-top: var(--panel-gap);
  padding-top: var(--panel-rule-gap);
  border-top: 1px solid var(--line-soft);
  max-width: 820px;
}

.panel:first-of-type p {
  font-size: 1.03em;
}

/* -------------------------
   Typography
------------------------- */

.pad h2 {
  font-size: 12px;
  text-transform: lowercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 0 0 6px 0;
  font-weight: normal;
}

.pad p {
  margin: 0;
}

.pad ul {
  margin: 6px 0 0 0;
  padding-left: 18px;
}

.pad li {
  margin-bottom: 6px;
}

.meta {
  color: var(--muted);
  font-size: 0.92em;
}

.status {
  color: rgba(35, 33, 30, 0.75);
}

.placeholder {
  opacity: 0.6;
  font-style: italic;
}

li.placeholder a {
  opacity: 0.65;
}

/* -------------------------
   Footer
------------------------- */

.site-footer {
  width: 100%;
  padding-left: var(--edge-pad);
  padding-right: var(--edge-pad);

  margin-top: 10px;
  padding-top: 12px;
  padding-bottom: 18px;

  border-top: 1px solid var(--line-soft);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;

  text-align: center;

  color: var(--muted);
  font-size: 14px;
  opacity: 0.9;
}

.mark--whisper {
  width: 22px;
  opacity: 0.85;
  transform: translateY(1px);
}

.footer-email {
  font-size: 13px;
  opacity: 0.75;
}

/* -------------------------
   Responsive
------------------------- */

@media (max-width: 700px) {
  :root {
    --edge-pad: 18px;
    --desk-width: 100%;
    --pad-x: 18px;
    --mark-primary: 48px;
    --text: 16.5px;
  }

  .wordmark {
    font-size: 22px;
  }

  .panel + .panel {
    max-width: none;
  }
}
