/* jeffwandling.com — quiet literary, high-contrast, static site styles */

@font-face {
  font-family: "Bebas Neue";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/bebas-neue-v16-latin-regular.woff2") format("woff2");
}

@font-face {
  font-family: "IM Fell Double Pica";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/im-fell-double-pica-v14-latin-regular.woff2") format("woff2");
}

:root {
  --bg: #ffffff;
  --fg: #000000;
  --muted: #3a3a3a;
  --border: #cfcfcf;
  --serif: "IM Fell Double Pica", Georgia, serif;
  --display: "Bebas Neue", cursive;
  --focus: #b0431f;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 112.5%; /* ~18px base */
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--serif);
  line-height: 1.7;
  font-size: 14pt;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.wrap {
  max-width: 40rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -3rem;
  left: 1rem;
  background: var(--fg);
  color: var(--bg);
  padding: 0.6rem 1rem;
  font-family: var(--serif);
  font-size: 0.95rem;
  text-decoration: none;
  z-index: 10;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  padding-block: 1.75rem;
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  margin: 0;
}

.wordmark a {
  color: var(--fg);
  text-decoration: none;
}

.wordmark a:hover,
.wordmark a:focus-visible {
  text-decoration: underline;
}

nav[aria-label="Primary"] {
  font-family: var(--serif);
  font-size: 1rem;
  display: flex;
  gap: 1.25rem;
}

nav[aria-label="Primary"] a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 0.25rem;
  padding: 0.25rem 0;
}

nav[aria-label="Primary"] a:hover,
nav[aria-label="Primary"] a:focus-visible {
  text-decoration-color: currentColor;
}

nav[aria-label="Primary"] a[aria-current="page"] {
  font-weight: 700;
  text-decoration-color: currentColor;
}

/* Focus visibility everywhere */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* Main content */
main.wrap {
  padding-block: 3rem;
}

h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 24px;
  margin-top: 2.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4rem;
}

.tagline {
  font-family: var(--serif);
  color: var(--muted);
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 2rem;
}

p {
  margin-block: 1.1rem;
}

a {
  color: var(--fg);
  text-decoration-color: var(--border);
  text-underline-offset: 0.2rem;
}

a:hover,
a:focus-visible {
  text-decoration-color: currentColor;
}

.reveal-btn {
  font-family: var(--serif);
  font-size: 1rem;
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--fg);
  padding: 0.5rem 0.9rem;
  cursor: pointer;
}

.reveal-btn:hover {
  background: var(--fg);
  color: var(--bg);
}

.placeholder {
  color: var(--muted);
  font-style: italic;
}

/* Work list */
.work-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.work-list li {
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.work-list li:first-child {
  border-top: 1px solid var(--border);
}

.work-title {
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.work-meta {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding-block: 1.75rem;
}

.site-footer p {
  font-family: var(--serif);
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 30rem) {
  .site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}
