/* Demece Garepis draft site. Colors and fonts come from lilyflower.css. */

/* Theme: San Francisco Giants orange and black, the client's choice. Overrides the Lilyflower palette. */
:root {
  --cream: #F7F5F2;
  --white: #FFFFFF;
  --ink: #111111;
  --graphite: #4A4A4A;
  --aubergine: #111111;
  --buttercup: #FD5A1E;
}
a { color: var(--ink); text-decoration-color: var(--buttercup); text-decoration-thickness: 2px; }

html { scroll-behavior: smooth; }
* { box-sizing: border-box; }

body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, .name {
  font-family: var(--font-serif);
  font-weight: 400;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 16px; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a {
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--aubergine); outline-offset: 3px; }

/* Header */
.top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 32px;
  padding-top: 32px;
  padding-bottom: 32px;
}
.name {
  font-size: 26px;
  line-height: 1.25;
  color: var(--ink);
  text-decoration: none;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  font-size: 14px;
  line-height: 1.5;
}
nav a { color: var(--graphite); text-decoration: none; padding: 6px 0; }
nav a:hover { color: var(--aubergine); text-decoration: underline; text-decoration-thickness: 1px; }

/* Hero */
.hero { padding-top: 104px; }
h1 { font-size: 64px; line-height: 1.05; max-width: 12em; }
.lede {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 26px;
  line-height: 1.4;
  color: var(--graphite);
  max-width: 27em;
  margin-top: 32px;
}
.shore { display: block; width: 100%; height: auto; margin-top: 56px; overflow: visible; }

/* Sections */
section[id] { padding-top: 128px; }
h2 { font-size: 40px; line-height: 1.15; }
h3 { font-size: 26px; line-height: 1.25; margin-bottom: 8px; }
.intro { color: var(--graphite); max-width: 34em; margin-top: 16px; }
.prose { max-width: 34em; }

/* Heading on the left, text on the right */
.split {
  display: grid;
  grid-template-columns: 1fr minmax(0, 34em);
  gap: 24px 64px;
  align-items: start;
}
.split h2 { max-width: 8em; }
.split .prose, .split .press { margin-top: 10px; }

/* Park rows */
.rows { margin-top: 64px; display: grid; gap: 48px; }
.row { display: grid; grid-template-columns: 1fr minmax(0, 34em); gap: 24px 64px; }
.when {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 22px;
  line-height: 1.25;
  color: var(--graphite);
  padding-top: 4px;
  margin: 0;
}

/* Pull quote */
.quote { margin: 112px 0 0; text-align: center; }
.quote blockquote {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 64px;
  line-height: 1.05;
  margin: 0;
}
.quote figcaption { color: var(--graphite); font-size: 14px; line-height: 1.5; margin-top: 20px; }

/* Book cards */
.cards {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.card { background: var(--white); padding: 40px; display: flex; flex-direction: column; border-top: 4px solid var(--buttercup); }
.card p:last-child { margin-top: auto; padding-top: 12px; }
.meta { color: var(--graphite); font-size: 14px; line-height: 1.5; margin-bottom: 24px; }

/* Dark panel for the Bay */
.band {
  background: var(--aubergine);
  color: var(--cream);
  margin-top: 128px;
  padding-top: 96px !important;
  padding-bottom: 96px;
}
.band a { color: var(--cream); }
.band a:focus-visible { outline-color: var(--cream); }

/* Press */
.press { list-style: none; padding: 0; margin: 0; display: grid; gap: 24px; }
.press span { display: block; color: var(--graphite); font-size: 14px; line-height: 1.5; margin-top: 2px; }
.press span.t { color: var(--ink); font-size: 18px; line-height: 1.6; margin: 0; }

/* Photos */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 64px;
  align-items: end;
}
.portrait { margin: 0; }
.portrait img, .wide img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.portrait img { aspect-ratio: 3 / 4; }
.wide { margin: 56px 0 0; }
.wide img { aspect-ratio: 3 / 2; }

/* Footer */
.foot {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 144px;
  padding-bottom: 64px;
  color: var(--graphite);
  font-size: 14px;
  line-height: 1.5;
}
.foot img { display: block; height: 48px; width: auto; }
.foot p { margin: 0; }

@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .top { padding-top: 20px; padding-bottom: 20px; }
  nav { gap: 0 20px; }
  .hero { padding-top: 48px; }
  h1 { font-size: 40px; line-height: 1.15; }
  .lede { font-size: 20px; margin-top: 24px; }
  .shore { margin-top: 32px; }
  section[id] { padding-top: 80px; }
  h2 { font-size: 32px; }
  h3 { font-size: 22px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .portrait img { aspect-ratio: 4 / 5; }
  .wide { margin-top: 40px; }
  .split, .row { grid-template-columns: 1fr; gap: 16px; }
  .split h2 { max-width: none; }
  .split .prose, .split .press { margin-top: 8px; }
  .rows { margin-top: 40px; gap: 36px; }
  .row { gap: 4px; }
  .when { font-size: 20px; padding-top: 0; }
  .quote { margin-top: 72px; }
  .quote blockquote { font-size: 40px; line-height: 1.15; }
  .cards { grid-template-columns: 1fr; margin-top: 32px; }
  .card { padding: 24px; }
  .band { margin-top: 80px; padding-top: 64px !important; padding-bottom: 64px; }
  .foot { padding-top: 96px; padding-bottom: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
