/* ==========================================================================
   OMEQ — omeq.live
   One stylesheet. No frameworks, no build step, no third-party requests.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. FONTS — self-hosted, subset, OFL. See /fonts/OFL-*.txt for licenses.
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Hebrew only. Fraunces and Inter carry no Hebrew glyphs; without this the
   עמק lockup falls back to whatever the device happens to have. */
@font-face {
  font-family: "Frank Ruhl Libre";
  src: url("../fonts/frankruhl-var.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0590-05FF, U+FB1D-FB4F;
}

/* --------------------------------------------------------------------------
   2. TOKENS
   -------------------------------------------------------------------------- */

:root {
  /* Warm ink palette */
  --ink:        #141414;  /* background */
  --raised:     #1D1C1A;  /* raised surface */
  --line:       #2C2A27;  /* hairlines, borders */
  --text:       #EDE7DB;  /* primary text */
  --dim:        #9A948A;  /* secondary text */
  --gold:       #C89B3C;  /* accent — the understroke */
  --olive:      #4A5240;  /* earthy anchor */
  --oxblood:    #6E1E2B;  /* used sparingly */
  --bone:       #F4EFE6;  /* light ground */

  /* Type */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --text-face: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --hebrew: "Frank Ruhl Libre", "Times New Roman", serif;

  /* Rhythm */
  --gut: 1.5rem;              /* page gutter */
  --measure: 34rem;           /* reading measure */
  --shell: 60rem;             /* max page width */
  --section-y: 5.5rem;        /* vertical section rhythm */

  color-scheme: dark;
}

@media (min-width: 40em) {
  :root { --gut: 2.5rem; --section-y: 8rem; }
}

/* --------------------------------------------------------------------------
   3. RESET + BASE
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--text-face);
  font-size: 1rem;
  line-height: 1.65;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

img, svg { max-width: 100%; height: auto; display: block; }

::selection { background: var(--gold); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Screen-reader only */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link */
.skip {
  position: absolute;
  left: var(--gut); top: -100vh;
  z-index: 10;
  background: var(--gold);
  color: var(--ink);
  padding: .65rem 1rem;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
}
.skip:focus { top: 1rem; }

/* --------------------------------------------------------------------------
   4. LAYOUT
   -------------------------------------------------------------------------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.section {
  padding-block: var(--section-y);
  border-top: 1px solid var(--line);
}

.section--first { border-top: 0; }

/* --------------------------------------------------------------------------
   5. THE WORDMARK
   OMEQ in Fraunces semibold caps, generous letterspacing, with the
   understroke: a gold-ochre rule that begins beneath the final Q and
   trails past the word's right edge. The word ends, the depth continues.
   -------------------------------------------------------------------------- */

.wordmark {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: var(--wm, 2.75rem);
  line-height: 1;
  letter-spacing: .22em;
  color: var(--text);
  /* the trailing stroke needs room to run past the last letter */
  padding-right: .9em;
  white-space: nowrap;
  font-optical-sizing: auto;
}

/* The final Q anchors the stroke. */
.wordmark__q {
  position: relative;
  display: inline-block;
}

.wordmark__q::after {
  content: "";
  position: absolute;
  left: 0;
  top: 1.16em;
  width: 2.1em;          /* starts under the Q, runs well past the word */
  height: .085em;
  min-height: 2px;
  border-radius: 1em;
  background: var(--gold);
}

/* Hebrew secondary lockup — never letterspaced. */
.hebrew {
  font-family: var(--hebrew);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--dim);
  direction: rtl;
  unicode-bidi: isolate;
}

.wordmark-lockup { display: block; }

.wordmark-lockup .hebrew {
  display: block;
  /* direction:rtl would right-align the block; the lockup sits flush left
     under the wordmark. */
  text-align: left;
  margin-top: .85rem;
  font-size: calc(var(--wm, 2.75rem) * .38);
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   6. EYEBROW LABELS + THE RECURRING UNDERSTROKE MOTIF
   -------------------------------------------------------------------------- */

.eyebrow {
  font-family: var(--text-face);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 2.4px;
  color: var(--dim);
  margin: 0 0 1.75rem;
  max-width: none;
}

/* The section label carries the same stroke as the wordmark. */
.eyebrow--stroked::after {
  content: "";
  display: block;
  width: 3.25rem;
  height: 2px;
  border-radius: 1px;
  background: var(--gold);
  margin-top: .85rem;
}

/* --------------------------------------------------------------------------
   7. TYPE SCALE
   -------------------------------------------------------------------------- */

.tagline {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 9vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
  max-width: 15ch;
}

.section-title {
  font-size: clamp(1.75rem, 6.5vw, 2.5rem);
  margin: 0 0 1.5rem;
  max-width: 20ch;
}

.subhead {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 0 0 .6rem;
}

.lede {
  font-size: 1.0625rem;
  color: var(--text);
}

@media (min-width: 40em) {
  .lede { font-size: 1.1875rem; line-height: 1.6; }
}

.dim { color: var(--dim); }

.fine {
  font-size: .8125rem;
  line-height: 1.5;
  color: var(--dim);
}

/* --------------------------------------------------------------------------
   8. BUTTONS — understroke on hover
   -------------------------------------------------------------------------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--text-face);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: var(--bone);
  border: 1px solid var(--bone);
  border-radius: 2px;
  padding: 1rem 1.5rem;
  min-height: 48px;
  cursor: pointer;
  font-family: inherit;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.btn::after {
  content: "";
  position: absolute;
  left: 1.5rem;
  bottom: -8px;
  height: 2px;
  width: 0;
  border-radius: 1px;
  background: var(--gold);
  transition: width .22s ease;
}

.btn:hover::after,
.btn:focus-visible::after { width: 3.25rem; }

.btn:hover { background: transparent; color: var(--text); border-color: var(--text); }

/* Disabled state — the Play link before launch.
   Swap this element for a real <a class="btn"> when the store URL exists. */
.btn[disabled],
.btn.is-disabled {
  background: transparent;
  color: var(--dim);
  border-color: var(--line);
  cursor: not-allowed;
}

.btn[disabled]::after,
.btn.is-disabled::after { display: none; }

.btn-note {
  display: block;
  margin-top: .9rem;
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--dim);
}

/* --------------------------------------------------------------------------
   9. TEXT LINKS — understroke on hover
   -------------------------------------------------------------------------- */

.link {
  position: relative;
  color: var(--text);
  text-decoration: none;
  padding-bottom: 2px;
  background-image: linear-gradient(var(--line), var(--line));
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .2s ease, background-image .2s ease;
}

.link:hover,
.link:focus-visible {
  background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 100% 2px;
}

/* --------------------------------------------------------------------------
   10. HERO
   -------------------------------------------------------------------------- */

.hero {
  padding-block: 4.5rem 4rem;
}

@media (min-width: 40em) {
  .hero { padding-block: 7rem 6rem; }
}

.hero .wordmark-lockup { --wm: clamp(2.5rem, 13vw, 4.5rem); }

.hero__mark { margin-bottom: 3.5rem; }

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

.hero__cta { margin-top: 2.5rem; }

/* --------------------------------------------------------------------------
   11. SOUNDING — the monthly drop
   -------------------------------------------------------------------------- */

.drop-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5rem 1rem;
  margin-bottom: 1.5rem;
}

.drop-num {
  font-family: var(--display);
  font-size: clamp(1.75rem, 6.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.drop-status {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2.4px;
  color: var(--gold);
  border: 1px solid currentColor;
  border-radius: 2px;
  padding: .3rem .55rem;
  line-height: 1;
  white-space: nowrap;
}

.split {
  display: grid;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 52em) {
  .split { grid-template-columns: 1fr 1fr; gap: 4.5rem; }
}

/* The verse card — the app's signature object, rendered in type alone.
   Same grid, palette and pairing as the garment prints. */
.verse-card {
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 2rem 1.75rem 1.75rem;
}

@media (min-width: 40em) {
  .verse-card { padding: 2.75rem 2.5rem 2.25rem; }
}

.verse-card__ref {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2.4px;
  color: var(--dim);
  margin: 0 0 1.5rem;
}

.verse-card__text {
  font-family: var(--display);
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.005em;
  margin: 0 0 1.75rem;
  max-width: none;
  color: var(--text);
}

@media (min-width: 40em) {
  .verse-card__text { font-size: 1.5rem; }
}

.verse-card__text em {
  font-style: normal;
  position: relative;
  white-space: nowrap;
}

.verse-card__text em::after {
  content: "";
  position: absolute;
  left: 0; right: -0.35em;
  bottom: -.14em;
  height: 2px;
  border-radius: 1px;
  background: var(--gold);
}

.verse-card__gloss {
  font-size: .9375rem;
  line-height: 1.6;
  color: var(--dim);
  margin: 0 0 1.75rem;
  max-width: none;
}

.verse-card__gloss strong {
  color: var(--text);
  font-weight: 500;
}

.verse-card__hem {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2.4px;
  color: var(--dim);
}

.verse-card__hem span:last-child { text-transform: none; letter-spacing: .06em; }

@media (min-width: 26em) {
  .verse-card__hem { flex-direction: row; justify-content: space-between; gap: 1rem; }
}

/* Structure list — how a passage is built */
.structure {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.structure li {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.structure b {
  font-family: var(--text-face);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.4px;
  color: var(--gold);
  padding-top: .3rem;
}

.structure span { color: var(--text); font-size: .9375rem; line-height: 1.55; }
.structure span i { font-style: normal; color: var(--dim); display: block; }

/* --------------------------------------------------------------------------
   12. MANIFESTO — The Translators' Circle
   -------------------------------------------------------------------------- */

.manifesto {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.manifesto li {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.manifesto li:last-child { border-bottom: 1px solid var(--line); }

.manifesto b {
  display: block;
  font-family: var(--display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin-bottom: .35rem;
}

.manifesto span { color: var(--dim); font-size: .9375rem; }

/* Capsule tease */
.capsule {
  margin-top: 3rem;
  padding: 2rem 1.75rem;
  background: var(--raised);
  border: 1px solid var(--line);
  border-left: 2px solid var(--oxblood);
  border-radius: 3px;
}

@media (min-width: 40em) {
  .capsule { padding: 2.5rem; }
}

.capsule__label {
  font-family: var(--display);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: .02em;
  margin: 0 0 .5rem;
}

.capsule__line {
  font-family: var(--display);
  font-size: 1.0625rem;
  font-style: italic;
  color: var(--dim);
  margin: 0 0 1.25rem;
}

/* --------------------------------------------------------------------------
   13. SIGNUP
   -------------------------------------------------------------------------- */

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

.signup__form {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-top: 2rem;
}

@media (min-width: 34em) {
  .signup__form { flex-direction: row; align-items: stretch; }
}

.signup__field {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--text-face);
  font-size: 1rem;
  color: var(--text);
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 1rem 1.125rem;
  min-height: 48px;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .18s ease;
}

/* #8A847A clears 4.59:1 on the raised surface — placeholder text still has to
   pass AA. Anything dimmer fails. */
.signup__field::placeholder { color: #8A847A; opacity: 1; }
.signup__field:hover { border-color: #3A3733; }
.signup__field:focus { border-color: var(--gold); outline: none; }
.signup__field:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.signup__submit { flex: 0 0 auto; justify-content: center; }

.consent {
  margin-top: 1rem;
  font-size: .8125rem;
  line-height: 1.5;
  color: var(--dim);
  max-width: var(--measure);
}

/* --------------------------------------------------------------------------
   14. PROSE — privacy / support pages
   -------------------------------------------------------------------------- */

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

.prose h2 {
  font-size: 1.375rem;
  margin: 3rem 0 .9rem;
  position: relative;
}

.prose h2::after {
  content: "";
  display: block;
  width: 2.25rem;
  height: 2px;
  border-radius: 1px;
  background: var(--gold);
  margin-top: .7rem;
}

.prose h2:first-child { margin-top: 0; }

.prose p { color: var(--text); }

.prose ul {
  margin: 0 0 1.1em;
  padding-left: 1.15rem;
  max-width: var(--measure);
}

.prose li { margin-bottom: .45rem; }
.prose li::marker { color: var(--gold); }

.prose strong { font-weight: 600; }

.placeholder {
  font-family: var(--text-face);
  font-size: .9375rem;
  color: var(--gold);
  background: rgba(200, 155, 60, .09);
  border: 1px dashed rgba(200, 155, 60, .45);
  border-radius: 2px;
  padding: .1em .45em;
  white-space: nowrap;
}

.effective {
  display: block;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}

/* FAQ stub */
.faq {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  max-width: var(--measure);
}

.faq li {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: .25rem;
}

@media (min-width: 40em) {
  .faq li { grid-template-columns: 12rem 1fr; gap: 1.5rem; }
}

.faq b { font-weight: 500; font-size: .9375rem; }
.faq span { color: var(--dim); font-size: .9375rem; }

/* --------------------------------------------------------------------------
   15. PAGE HEADER (inner pages) + FOOTER
   -------------------------------------------------------------------------- */

.masthead {
  padding-block: 2.25rem 3.5rem;
}

.masthead .wordmark-lockup { --wm: 1.5rem; }
.masthead .hebrew { display: none; }
.masthead a { text-decoration: none; display: inline-block; }

.page-title {
  font-size: clamp(2rem, 7vw, 2.75rem);
  margin: 0 0 1.25rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 3rem 4rem;
  font-size: .8125rem;
  color: var(--dim);
}

.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1.25rem;
}

.site-footer .hebrew { font-size: 1.0625rem; color: var(--dim); }

.site-footer nav {
  display: flex;
  gap: 1.25rem;
}

.site-footer a {
  color: var(--dim);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}

.site-footer a:hover,
.site-footer a:focus-visible { color: var(--text); border-bottom-color: var(--gold); }

.site-footer__legal { margin-top: 1.75rem; }

.dot { color: var(--line); }

/* --------------------------------------------------------------------------
   16. 404
   -------------------------------------------------------------------------- */

.edge {
  min-height: 82vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 5rem;
}

.edge .wordmark-lockup { --wm: clamp(2.25rem, 11vw, 3.5rem); margin-bottom: 3rem; }

.edge__line {
  font-family: var(--display);
  font-size: clamp(1.75rem, 7vw, 2.75rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 2rem;
  max-width: 16ch;
}

/* --------------------------------------------------------------------------
   17. PRINT
   -------------------------------------------------------------------------- */

@media print {
  body { background: #fff; color: #000; }
  .site-footer, .skip, .btn { display: none; }
  a { color: #000; }
}
