/* gocomputernow.com — shared site styles */

:root {
  --bg: #fdfcf7;
  --hero-bg: #d6cdbc;
  --text: #1c1c2c;
  --ink: #373533;
  --strip-bg: #524a44;
  --gold: #d6a75f;
  --gold-hover: #c89a52;
  --orange: #dd7444;
  --heading-saira: 'Saira', sans-serif;
  --body-sans: 'IBM Plex Sans', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  margin: 0;
  font-family: var(--body-sans);
  background-color: var(--bg);
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1.6;
  position: relative;
}

/* Site nav (shared on every page) */
nav.site-nav {
  background-color: var(--hero-bg);
  padding: 1rem 2rem;
  font-family: var(--heading-saira);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(55, 53, 51, 0.12);
}
nav.site-nav .brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}
nav.site-nav .brand:hover { color: var(--orange); }
nav.site-nav .nav-right {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}
nav.site-nav .nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
nav.site-nav .nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
nav.site-nav .nav-links a:hover { color: var(--orange); }
nav.site-nav .nav-links a.active { border-bottom-color: var(--gold); }
nav.site-nav .nav-order {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--gold);
  color: var(--bg);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: 4px;
}
nav.site-nav .nav-order:hover { background-color: var(--gold-hover); }
@media (max-width: 900px) {
  nav.site-nav {
    display: block;
    text-align: center;
  }
  nav.site-nav .nav-right {
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.5rem;
  }
}
@media (max-width: 600px) {
  nav.site-nav { padding: 0.75rem 1.25rem; }
  nav.site-nav .nav-right { gap: 0.5rem; }
  nav.site-nav .nav-links { gap: 0.6rem; }
  nav.site-nav .nav-links a { font-size: 0.95rem; }
  nav.site-nav .nav-order { padding: 0.4rem 0.75rem; font-size: 0.95rem; }
}

/* Hero */
.hero {
  width: 100%;
  padding: 0;
  background: var(--hero-bg);
}
.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  background: var(--hero-bg);
}
.hero-image {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.hero-image img {
  /* Allowed to overflow its column slightly to the left so the cover
     reads as larger inside the existing layout. The right edge stays
     pinned against the text column (justify-content: flex-end on the
     parent); the overflow lands in the beige hero background. */
  max-width: 110%;
  max-height: 60vh;
  width: auto;
  height: auto;
  display: block;
}
.hero-text {
  text-align: center;
  font-family: var(--heading-saira);
  color: var(--ink);
}
.hero-text h1 {
  font-size: 2.75rem;
  line-height: 1.05;
  margin: 0 0 1rem 0;
}
.hero-text p {
  font-size: 1.3rem;
  line-height: 1.4;
  margin: 0 0 1.5rem 0;
}
.hero-cta {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  background-color: var(--orange);
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  font-family: var(--heading-saira);
  font-size: 1.2rem;
  transition: background-color 0.2s, color 0.2s;
  border: 1px solid var(--orange);
}
.hero-cta:hover {
  background-color: white;
  color: var(--orange);
}
.logoimg {
  display: block;
  width: 4rem;
  height: auto;
  margin: 1.5rem auto 0;
  opacity: 0.85;
}
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    padding: 1.5rem;
    gap: 1rem;
  }
  .hero-image { justify-content: center; }
  .hero-image img { max-height: 45vh; }
  .hero-text h1 { font-size: 2.25rem; }
  .hero-text p { font-size: 1.15rem; }
}

/* Gallery -- framed on a dark strip so the photos read as objects
   rather than blending into the page cream. Four-up filmstrip on
   wide screens; reflows to 2 then 1 column. */
.gallery {
  background-color: var(--strip-bg);
  padding: 2.5rem 2rem;
  margin: 0 0 2.5rem 0;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 1320px;
  margin: 0 auto;
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .gallery { padding: 2rem 1rem; margin: 2rem 0; }
  .gallery-grid { grid-template-columns: 1fr; }
}

/* Single-image showcase between page sections. Used on the homepage
   between Try-a-Sphere and the newsletter to break up the column of
   text and re-anchor the page in the physical book. */
.book-detail {
  max-width: 880px;
  margin: 3rem auto 2.5rem;
  padding: 0 2rem;
}
.book-detail img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}
@media (max-width: 600px) {
  .book-detail { margin: 2rem auto; padding: 0 1rem; }
}

/* Page sections (about, contact, nice-words) */
.about, .contact, .nice-words {
  padding: 0 2rem;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.about h2, .contact h2, .nice-words h2 {
  font-family: var(--heading-saira);
  font-size: 2.25rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.about p { margin-bottom: 1.5rem; }
.about p strong { font-weight: bold; }

/* Praise / pull-quotes (shared across homepage and press page) */
.nice-words-quote {
  margin: 0 0 2rem 0;
  padding: 0;
}
.nice-words-quote blockquote {
  margin: 0;
  padding: 0;
}
.nice-words-quote blockquote p {
  font-size: 1.4rem;
  font-style: italic;
  line-height: 1.5;
  margin: 0 0 0.5rem 0;
}
.nice-words-quote figcaption {
  font-size: 1rem;
  color: var(--gold);
  font-family: var(--heading-saira);
}
.nice-words-quote figcaption strong { font-weight: 600; }
.nice-words-outlet { font-style: italic; }
.nice-words-quote.placeholder-quote {
  opacity: 0.45;
  outline: 1px dashed var(--gold);
  outline-offset: 6px;
  border-radius: 4px;
}
@media (max-width: 768px) {
  .nice-words-quote blockquote p { font-size: 1.2rem; }
}

/* Forms */
.contact form {
  display: flex;
  flex-direction: column;
}
.contact input, .contact textarea {
  padding: 1rem;
  margin-bottom: 1.5rem;
  border: 1px solid #aaa;
  border-radius: 6px;
  font-size: 1.25rem;
}
.contact button {
  padding: 1rem;
  background-color: var(--orange);
  color: white;
  border: 1px solid var(--orange);
  font-size: 1.25rem;
  cursor: pointer;
  border-radius: 6px;
  font-family: var(--heading-saira);
  transition: background-color 0.2s, color 0.2s;
}
.contact button:hover {
  background-color: white;
  color: var(--orange);
}

/* Page wrapper for content-focused subsidiary pages (/author, /events, /press).
   Capped to a comfortable reading measure (~60-75 chars at body font size). */
.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}
.page-header h1 {
  font-family: var(--heading-saira);
  font-size: 2.5rem;
  margin: 0 0 1.5rem 0;
  color: var(--ink);
  line-height: 1.1;
}
.page h2 {
  font-family: var(--heading-saira);
  font-size: 1.6rem;
  color: var(--gold);
  margin: 2.5rem 0 0.75rem 0;
}
.page p { margin: 0 0 1rem 0; }
.page ul { margin: 0 0 1rem 0; padding-left: 1.25rem; }
.page li { margin: 0 0 0.5rem 0; }
.page a { color: var(--orange); }
.page a:hover { color: var(--gold); }

/* Author page */
.author-intro {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.75rem;
  align-items: start;
  margin: 1.5rem 0 2rem;
}
.author-photo img,
.author-photo .photo-fallback {
  width: 100%;
  display: block;
  border-radius: 4px;
}
.author-photo .photo-fallback {
  aspect-ratio: 1 / 1;
  background: var(--hero-bg);
  color: var(--ink);
  font-family: var(--heading-saira);
  font-size: 0.85rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 1rem;
  outline: 1px dashed var(--gold);
  outline-offset: -1px;
  opacity: 0.7;
}
.author-photo .photo-fallback small {
  font-size: 0.7rem;
  opacity: 0.8;
}
@media (max-width: 600px) {
  .author-intro { grid-template-columns: 1fr; }
  .author-photo { max-width: 220px; }
}

/* Clearly-marked placeholder text and sections (page-level reuse of
   the same idiom used by .placeholder-quote on the homepage). */
.placeholder-text {
  color: rgba(28, 28, 44, 0.55);
  font-style: italic;
}
.placeholder-section {
  opacity: 0.55;
  outline: 1px dashed var(--gold);
  outline-offset: 8px;
  border-radius: 4px;
}

/* Wider variant of .page for asset-heavy pages like /press. */
.page.page-wide { max-width: 920px; }

/* Page lede -- short intro paragraph under an H1 on subsidiary pages. */
.page-lede {
  font-size: 1.2rem;
  color: rgba(28, 28, 44, 0.75);
  margin: -0.25rem 0 1.5rem;
}

/* Events list -- restrained, no cards, no images. Plain rows with a
   date column on the left and the event details on the right. */
.event-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 2rem;
}
.event {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 1.5rem;
  padding: 1.1rem 0;
  border-top: 1px solid rgba(55, 53, 51, 0.15);
}
.event:last-child {
  border-bottom: 1px solid rgba(55, 53, 51, 0.15);
}
.event-date {
  font-family: var(--heading-saira);
  font-weight: 700;
  color: var(--ink);
  font-size: 1rem;
  padding-top: 0.15rem;
}
.event-name {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
}
.event-venue {
  display: block;
  color: rgba(55, 53, 51, 0.7);
  font-size: 0.95rem;
  margin: 0.15rem 0 0.4rem;
}
.event-body p {
  margin: 0.25rem 0;
}
.events-booking {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(55, 53, 51, 0.15);
  font-size: 0.95rem;
  color: rgba(28, 28, 44, 0.8);
}
@media (max-width: 600px) {
  .event {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

/* Inline H3 on subsidiary pages -- used to label copy-paste-able
   blocks on /press (Short / Long descriptions, bio variants). */
.page h3 {
  font-family: var(--heading-saira);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  margin: 1.5rem 0 0.4rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Press page */
.press-dl {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.5rem 1.5rem;
  margin: 0.75rem 0 1.5rem;
}
.press-dl dt {
  font-family: var(--heading-saira);
  font-weight: 700;
  color: var(--ink);
}
.press-dl dd { margin: 0; }
@media (max-width: 600px) {
  .press-dl { grid-template-columns: 1fr; gap: 0.15rem 0; }
  .press-dl dt { margin-top: 0.5rem; }
}
.press-meta {
  font-size: 0.95rem;
  color: rgba(28, 28, 44, 0.6);
  font-style: italic;
  margin: -0.25rem 0 0.5rem;
}
.press-pull {
  font-size: 1.25rem;
  font-style: italic;
  border-left: 3px solid var(--gold);
  padding-left: 1rem;
  margin: 0.5rem 0 1rem;
}
.press-praise-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}
.press-praise-list li {
  margin: 0 0 1.5rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--gold);
}
.press-praise-list li.placeholder-text {
  border-left-color: rgba(214, 167, 95, 0.4);
}
.press-praise-list p {
  font-style: italic;
  margin: 0 0 0.4rem;
}
.press-praise-list cite {
  font-style: normal;
  font-family: var(--heading-saira);
  color: rgba(55, 53, 51, 0.85);
  font-size: 0.95rem;
}
.press-asset-grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1.25rem;
  margin: 1rem 0;
}
.press-asset-grid li {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  text-align: center;
  font-size: 0.85rem;
}
.press-asset-grid li > a:first-child {
  display: block;
  background: var(--hero-bg);
  border-radius: 2px;
}
.press-asset-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}
.press-asset-grid a {
  font-family: var(--heading-saira);
  font-weight: 700;
  text-decoration: none;
}
.press-asset-grid a:hover { text-decoration: underline; }
.press-asset-grid li.asset-stub {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  padding: 1rem;
  aspect-ratio: 1 / 1;
}
.press-asset-stub {
  font-family: var(--heading-saira);
  font-weight: 700;
  color: var(--ink);
}

/* Secondary CTA (gold, e.g. sphere.computer cross-link). The orange
   .hero-cta and .contact button are reserved for the primary buy action. */
.btn-secondary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--gold);
  color: var(--bg);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  font-family: var(--heading-saira);
  border-radius: 4px;
  border: 1px solid var(--gold);
  transition: background-color 0.2s, color 0.2s;
}
.btn-secondary:hover {
  background-color: var(--bg);
  color: var(--gold);
}

/* Site footer (shared on every page) */
.site-footer {
  background-color: var(--hero-bg);
  color: var(--ink);
  padding: 1.5rem 2rem;
  font-family: var(--heading-saira);
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(55, 53, 51, 0.12);
  margin-top: 3rem;
}
.site-footer a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
.site-footer a:hover { color: var(--orange); }
.site-footer .footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.site-footer .footer-social {
  display: flex;
  gap: 1rem;
}
@media (max-width: 600px) {
  .site-footer {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
}
