/*
 * Theme: Modern
 *
 * Pure white, Inter for UI/display (medium weight, tight tracking),
 * Source Serif 4 for body. Two-column home above 900px (photo left,
 * blurb right), works page uses small uppercase eyebrow labels. More
 * structural than the other two, but still restrained.
 */

:root {
  --bg: #ffffff;
  --fg: #111111;
  --fg-muted: #6b6b6b;
  --rule: rgba(17, 17, 17, 0.1);
  --measure: 880px;
  --measure-narrow: 640px;
  --page-padding: clamp(1.25rem, 5vw, 3rem);
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Source Serif 4", "PT Serif", Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.6;
}

/* Header */

.site-header {
  padding: 1.5rem var(--page-padding);
  max-width: var(--measure);
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--rule);
}

.site-title {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
}

.site-header nav {
  gap: 1.75rem;
}

.site-header nav a {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  color: var(--fg);
}

/* Main */

.site-main {
  max-width: var(--measure);
  width: 100%;
  margin: 0 auto;
  padding: 3rem var(--page-padding) 5rem;
}

/* Home: two-column on wider viewports */

.home-page {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .home-page {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    gap: 3rem;
  }
}

.home-page .home-photo {
  width: 100%;
  max-width: 340px;
  margin: 0;
}

.home-page .blurb {
  max-width: var(--measure-narrow);
}

.home-page .blurb p {
  margin-bottom: 1rem;
}

.home-page .blurb p:last-child {
  margin-bottom: 0;
}

/* Headings */

h1 {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 2.5rem;
}

/* h2 is the category ("NOVELS") — the strongest sectioning element on
   the page. Bigger than the eyebrow h3 below, not muted, no rule (the
   rule belongs to the eyebrow). */
h2 {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg);
  margin-bottom: 2rem;
}

/* h3 is the status eyebrow ("NOW SEEKING REPRESENTATION") — small and
   muted with a short rule under it so it reads as a label for the
   indented work entries below, distinct from the category above. */
h3 {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 1.25rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--rule);
  width: fit-content;
  padding-right: 2rem;
}

h4 {
  font-family: "Source Serif 4", "PT Serif", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

/* Works */

/* Indent works under their status eyebrow so the grouping reads
   spatially even when a section has only one entry. */
.works-page .status {
  padding-left: 1.25rem;
}

.works-page .work .genre,
.works-page .work .word-count {
  color: var(--fg-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.works-page .work .description {
  margin-top: 0.6rem;
}

.works-page .work .cta {
  display: inline-block;
  margin-top: 0.6rem;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--fg);
  padding-bottom: 2px;
}

.works-page .work .cta:hover {
  color: var(--fg-muted);
  border-bottom-color: var(--fg-muted);
}

/* Contact */

.contact-page a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--fg);
  padding-bottom: 2px;
}

.contact-page a:hover {
  color: var(--fg-muted);
  border-bottom-color: var(--fg-muted);
}

/* Body links */

.site-main p a,
.site-main .description a {
  color: var(--fg);
  text-underline-offset: 3px;
}
