/* ============================================
   Oath Publishing — home page
   Matched to Figma: Desktop (1238px) + Mobile (390px) frames
   The book page lives in places/ with its own stylesheet.
   ============================================ */

:root {
  --color-bg: #000000;
  --color-masthead: rgba(255, 255, 255, 0.75);
  --color-masthead-tagline: #b8b8b8;
  --color-title: #ff4f00;
  --color-author: #768285;
  --color-pitch: #a5a5a5;
  --color-accent: #ff9359;
  --color-footer: #a3a3a3;
  --color-divider: rgba(255, 255, 255, 0.5);
  --color-btn-text: #1e1e1e;
  --color-btn-text-light: #f5f5f5;

  --font-display: 'Faculty Glyphic', serif;
  --font-body: 'Crimson Pro', serif;
  --font-ui: 'Instrument Sans', sans-serif;
  --font-link: 'Inter', sans-serif;

  --radius-btn: 8px;
  --max-content: 682px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 106px 16px 73px;
  background: var(--color-bg);
  color: #ffffff;
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 59px;
}

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

a {
  color: inherit;
}

/* Visible keyboard focus state everywhere (not specified in Figma; added per build rules) */
a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* ---------- Masthead ---------- */

.masthead {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  text-align: center;
}

.masthead-logo {
  width: 60px;
  height: 60px;
}

.masthead-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.masthead-name {
  margin: 0;
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 32px;
  line-height: normal;
  text-transform: uppercase;
  color: var(--color-masthead);
}

.masthead-tagline {
  margin: 0;
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 20px;
  line-height: normal;
  color: var(--color-masthead-tagline);
}

.masthead-contact {
  font-family: var(--font-link);
  font-size: 12px;
  line-height: normal;
  color: #ffffff;
  text-decoration: underline;
}

/* ---------- Page body ---------- */

.page-body {
  display: flex;
  flex-direction: column;
  gap: 50px;
  width: 100%;
  max-width: var(--max-content);
}

.divider {
  border: none;
  border-top: 1px solid var(--color-divider);
  width: 100%;
  margin: 0;
}

/* ---------- Book feature ---------- */

.book-feature {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  font-family: var(--font-display);
  text-align: center;
}

.book-title {
  margin: 0;
  font-weight: 400;
  /* 39px in the 390px Figma frame, 60px in the 1238px frame */
  font-size: clamp(39px, 16px + 6vw, 60px);
  line-height: normal;
  text-transform: uppercase;
  color: var(--color-title);
  opacity: 0.75;
}

.book-author {
  margin: 0;
  font-size: 20px;
  line-height: normal;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--color-author);
}

.book-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
}

.book-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
  width: 100%;
}

.book-pitch {
  margin: 0;
  font-size: 19px;
  line-height: normal;
  color: var(--color-pitch);
}

.book-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* Crops the left side of the cover's drop shadow, as in Figma */
.book-cover {
  display: block;
  flex-shrink: 0;
  width: 213px;
  height: 311px;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: var(--radius-btn);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}

.btn:hover {
  opacity: 0.85;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-btn-text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 2px 6px 2px rgba(0, 0, 0, 0.15);
}

.btn-text {
  color: var(--color-btn-text-light);
}

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

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  /* Figma: 50px page-body gap + 60px padding, minus the 59px body gap */
  padding: 51px 0 60px;
  width: 100%;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 12px;
  line-height: 33px;
  color: var(--color-footer);
}

.footer-mark {
  width: 14px;
  height: 14px;
}

/* ============================================
   Desktop: cover sits beside the pitch + buttons.
   The row needs the full 682px column, so it only
   switches once that column fits (682 + 2 x 16 gutters).
   ============================================ */
@media (min-width: 720px) {
  body {
    padding-left: 41px;
    padding-right: 41px;
  }

  .book-row {
    flex-direction: row;
    gap: 50px;
    padding: 0;
  }

  .book-info {
    flex: 1;
    min-width: 0;
  }
}
