/* Gary Ray — garyray.info
   Warm & literary editorial design system */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500&family=Lora:ital,wght@0,400;0,500;0,600;1,400&family=Spectral:ital,wght@1,400;1,500&display=swap');

:root {
  --paper: #F5EFE3;
  --paper-warm: #EFE6D3;
  --ink: #2B2620;
  --ink-soft: #4A4239;
  --sepia: #8A6B4E;
  --wine: #6E2C3B;
  --line: #DCD0B8;
  --paper-dark: #E7DCC4;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Lora', Georgia, serif;

  --measure: 640px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--wine);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}
a:hover, a:focus-visible { border-bottom-color: var(--wine); }
a:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.1;
  margin: 0;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

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

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.site-header__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 22px 28px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.site-logo:hover { border-bottom: none; }

.site-nav {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  font-size: 15px;
}

.site-nav a {
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
  color: var(--wine);
  border-bottom-color: var(--wine);
}

/* ---------- Layout shells ---------- */

.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}

.prose {
  max-width: var(--measure);
}

section { padding: 64px 0; }
section + section { border-top: 1px solid var(--line); }

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  padding: 72px 0 64px;
}

.hero__eyebrow {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--sepia);
  font-size: 17px;
  margin: 0 0 10px;
}

.hero__name {
  font-size: clamp(40px, 6vw, 64px);
  margin-bottom: 18px;
}

.hero__lede {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 52ch;
}

.hero__portrait {
  border-radius: 3px;
  overflow: hidden;
  background: var(--paper-dark);
  aspect-ratio: 4 / 5;
}
.hero__portrait img {
  width: 100%; height: 100%; object-fit: cover;
}

/* ---------- Pull quote ---------- */

.pullquote {
  font-family: 'Spectral', var(--font-body);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(24px, 3vw, 30px);
  color: var(--wine);
  line-height: 1.35;
  max-width: 760px;
  margin: 0 0 14px;
}
.pullquote__source {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 15px;
  color: var(--sepia);
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 28px;
  text-align: center;
  font-size: 14px;
  color: var(--sepia);
}

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

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 40px; }
  .hero__portrait { max-width: 320px; margin: 0 auto; }
  section { padding: 44px 0; }
  body { font-size: 17px; }
}

/* ---------- Acting page: credits ---------- */

.lede {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: var(--measure);
}

.category {
  margin-bottom: 40px;
}
.category:last-child { margin-bottom: 0; }

.category h3 {
  font-size: 15px;
  color: var(--sepia);
  font-style: italic;
  font-weight: 400;
  font-family: var(--font-body);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.credit-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.credit-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}
.credit-list li:last-child { border-bottom: none; }

.credit-title {
  font-weight: 600;
  color: var(--ink);
  flex-shrink: 0;
}
.credit-role {
  color: var(--ink-soft);
  font-style: italic;
}
.credit-org {
  color: var(--sepia);
  margin-left: auto;
  font-size: 14.5px;
}

.hosting-highlight {
  background: var(--paper-warm);
  border-radius: 4px;
  padding: 22px 26px;
  border-left: 3px solid var(--wine);
}
.hosting-highlight .credit-title { font-size: 18px; }
.hosting-stat {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--wine);
  margin-top: 4px;
}

.commercial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 4px 28px;
}
.commercial-grid div {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.commercial-grid .c-brand { font-weight: 600; }
.commercial-grid .c-role { color: var(--sepia); font-style: italic; font-size: 14px; }

.resume-cta {
  background: var(--paper-warm);
  border-radius: 4px;
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.resume-cta p { margin: 0; color: var(--ink-soft); font-size: 15px; max-width: 46ch; }

.btn {
  display: inline-block;
  background: var(--wine);
  color: var(--paper);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 3px;
  border-bottom: none;
  white-space: nowrap;
}
.btn:hover { background: #591F2C; border-bottom: none; }

/* ---------- Playwriting page ---------- */

.plays {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 8px;
}

.play-card {
  padding: 28px 26px;
  background: var(--paper-warm);
  border-radius: 4px;
  border-left: 3px solid var(--wine);
}

.play-card h3 {
  font-size: 21px;
  margin-bottom: 4px;
}

.play-card .play-tag {
  font-size: 13.5px;
  color: var(--sepia);
  font-style: italic;
  margin-bottom: 12px;
  display: block;
}

.play-card p {
  font-size: 15.5px;
  color: var(--ink-soft);
  margin-bottom: 0;
}

.one-acts-note {
  margin-top: 36px;
  font-size: 16px;
  color: var(--ink-soft);
}

@media (max-width: 700px) {
  .plays { grid-template-columns: 1fr; }
}


/* ---------- Media page ---------- */

.video-frame {
  border-radius: 4px;
  overflow: hidden;
  background: #000;
  max-width: 820px;
}
.video-frame video { width: 100%; display: block; }

.video-caption {
  margin-top: 14px;
  font-size: 15px;
  color: var(--sepia);
  font-style: italic;
  max-width: 820px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.photo-grid figure {
  margin: 0;
  border-radius: 3px;
  overflow: hidden;
  background: var(--paper-dark);
}
.photo-grid img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.photo-placeholder {
  border: 1px dashed var(--line);
  border-radius: 4px;
  padding: 32px;
  text-align: center;
  color: var(--sepia);
  font-size: 15px;
  font-style: italic;
}

/* ---------- Home: now playing + tiles ---------- */

.now-playing {
  background: var(--paper-warm);
  border-left: 3px solid var(--wine);
  border-radius: 4px;
  padding: 30px 32px;
  max-width: 820px;
}
.now-playing__label {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wine);
  margin: 0 0 8px;
  font-weight: 600;
}
.now-playing h2 {
  font-size: clamp(30px, 4vw, 40px);
  margin-bottom: 6px;
}
.now-playing__by {
  color: var(--sepia);
  font-style: italic;
  margin-bottom: 18px;
}
.now-playing__details {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  font-size: 16px;
  color: var(--ink-soft);
}
.now-playing__details li { padding: 3px 0; }
.now-playing__actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn-quiet {
  display: inline-block;
  color: var(--wine);
  font-size: 15px;
  border-bottom: 1px solid var(--wine);
  padding-bottom: 1px;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}
.tile {
  display: block;
  padding: 22px 22px 24px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.tile:hover { border-color: var(--wine); background: var(--paper-warm); border-bottom-color: var(--wine); }
.tile h3 { font-size: 22px; margin-bottom: 6px; }
.tile p { margin: 0; font-size: 15px; color: var(--ink-soft); }

/* ---------- Contact ---------- */

.contact-email {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 38px);
  color: var(--wine);
}
