/* Wryter marketing site -- styled to echo the app: Courier Prime, cream + Courier
   green, dark manuscript ink, a white page. Single static stylesheet, no build. */

:root {
  --ink:    #2b2b2b;   /* manuscript ink */
  --green:  #2f6b3f;   /* Courier green accent */
  --green-d:#234f30;
  --cream:  #fbe0ad;   /* the app-icon cream */
  --page:   #ffffff;
  --muted:  #6b6b6b;
  --line:   rgba(0,0,0,0.10);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: #f3efe6;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

h1, h2, h3, .tagline, .btn, .os {
  font-family: "Courier Prime", "Courier New", monospace;
}

/* --- Hero --- */
.hero {
  background: linear-gradient(150deg, var(--green-d), var(--green));
  color: #fff;
  padding: 3.5em 1.2em 3em;
  display: flex;
  gap: 2em;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-art {
  width: 200px; height: auto;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.35));
}
.hero-text { max-width: 460px; }
.hero h1 { margin: 0; font-size: 3.2em; letter-spacing: 0.04em; }
.tagline { margin: 0.2em 0 0.6em; font-size: 1.25em; }
.sub { margin: 0 0 1.4em; opacity: 0.9; }
.cta { display: flex; gap: 0.8em; flex-wrap: wrap; }

.btn {
  display: inline-block;
  background: var(--cream);
  color: var(--green-d);
  text-decoration: none;
  font-weight: 700;
  padding: 0.65em 1.4em;
  border-radius: 8px;
  border: 2px solid var(--cream);
}
.btn:hover { background: #ffe9bd; }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn.ghost:hover { background: rgba(255,255,255,0.12); }

/* --- Main --- */
main { max-width: 860px; margin: 2.5em auto; padding: 0 1.2em; }

section { margin-bottom: 3em; }
h2 {
  color: var(--green-d);
  border-bottom: 2px solid var(--green);
  padding-bottom: 0.3em;
  font-size: 1.5em;
}

.intro {
  background: var(--page);
  padding: 1.6em 1.8em;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  font-size: 1.08em;
}
.intro p:last-child { margin-bottom: 0; }

/* --- Features (a small screenshot beside each one, alternating sides) --- */
.feature-rows { display: flex; flex-direction: column; gap: 1.6em; }
.feature-row {
  display: flex; align-items: center; gap: 1.6em;
  background: var(--page);
  border-radius: 12px;
  padding: 1.3em 1.5em;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.feature-row:nth-child(even) { flex-direction: row-reverse; }
.feature-shot {
  width: 280px; max-width: 42%; height: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: 0 3px 12px rgba(0,0,0,0.14);
}
.feature-shot { cursor: zoom-in; }
.feature-copy { flex: 1; }

/* --- Lightbox: click a screenshot to see it full resolution --- */
.lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.88);
  align-items: center; justify-content: center;
  padding: 2vmin; cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 96vw; max-height: 96vh; height: auto; width: auto;
  border-radius: 6px; box-shadow: 0 10px 50px rgba(0,0,0,0.6);
}
.feature-copy h3 { margin: 0 0 0.4em; color: var(--green-d); font-size: 1.25em; }
.feature-copy p { margin: 0; color: #3a3a3a; }

@media (max-width: 640px) {
  .feature-row, .feature-row:nth-child(even) { flex-direction: column; align-items: stretch; }
  .feature-shot { width: 100%; max-width: 100%; }
}

/* --- Downloads --- */
.downloads { display: flex; gap: 1em; flex-wrap: wrap; margin: 1.2em 0; }
.dl {
  flex: 1 1 200px;
  display: flex; flex-direction: column; align-items: center;
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.3em 1em;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.1s, box-shadow 0.1s;
}
.dl:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.12); border-color: var(--green); }
.dl .os { font-size: 1.2em; font-weight: 700; color: var(--green-d); }
.dl .fmt { color: var(--muted); font-size: 0.9em; margin-top: 0.2em; }
.mobile-note { color: var(--muted); font-style: italic; }

code { font-family: "Courier Prime", monospace; background: rgba(47,107,63,0.10); padding: 0 0.3em; border-radius: 3px; }

/* --- Footer --- */
footer {
  text-align: center;
  padding: 2em 1em 2.5em;
  color: var(--muted);
  font-size: 0.92em;
}
footer a { color: var(--green-d); }
