/* Crossroads Watch Club
   Palette grounded in Indiana limestone, sunburst navy dials, and warm brass. */

:root {
  --limestone: #e4e1d8;
  --paper: #f7f6f2;
  --ink: #1c2230;
  --dial: #23324d;
  --brass: #a8834a;
  --steel: #7c8391;
  --rule: #c9c5b9;

  --measure: 34rem;
  --pad: clamp(1.25rem, 5vw, 3rem);
}

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

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

body {
  margin: 0;
  background: var(--limestone);
  color: var(--ink);
  font-family: Archivo, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-synthesis-weight: none;
}

h1,
h2,
h3 {
  font-family: Bitter, Georgia, serif;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}

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

a {
  color: var(--dial);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--brass);
}

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

.wrap {
  max-width: 58rem;
  margin: 0 auto;
  padding-inline: var(--pad);
}

/* ---- The minute track: 60 ticks, every fifth one long.
       Used as the page's section rule. ---- */

.track {
  height: 15px;
  margin: 0;
  border: 0;
  background-image:
    repeating-linear-gradient(90deg, var(--ink) 0 1.5px, transparent 1.5px 60px),
    repeating-linear-gradient(90deg, var(--rule) 0 1px, transparent 1px 12px);
  background-size: 100% 15px, 100% 7px;
  background-repeat: no-repeat;
}

/* ---- Header ---- */

.masthead {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  align-items: baseline;
  justify-content: space-between;
  padding-block: 1.75rem 1.25rem;
}

.wordmark {
  font-family: Bitter, Georgia, serif;
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}

.wordmark span {
  color: var(--brass);
}

.masthead nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9375rem;
}

.masthead nav a {
  color: var(--steel);
  text-decoration: none;
}

.masthead nav a:hover,
.masthead nav a[aria-current="page"] {
  color: var(--ink);
}

/* ---- Hero ---- */

.hero {
  padding-block: clamp(2.5rem, 8vw, 5rem) clamp(2rem, 5vw, 3rem);
}

.hero h1 {
  font-size: clamp(2.6rem, 9vw, 4.75rem);
  max-width: 12ch;
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: normal;
  display: block;
  color: var(--dial);
}

.lede {
  font-size: 1.1875rem;
  max-width: 38rem;
}

/* ---- Sections ---- */

section {
  padding-block: clamp(2.5rem, 6vw, 4rem);
}

section h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin-bottom: 1.25rem;
}

/* Two-column contrast: what the club is, what it isn't. */

.contrast {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 44rem) {
  .contrast {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }
}

.contrast h3 {
  font-size: 1.125rem;
  padding-bottom: 0.6rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--ink);
}

.contrast ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contrast li {
  padding-left: 1.4rem;
  margin-bottom: 0.85rem;
  position: relative;
  max-width: var(--measure);
}

.contrast li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 600;
}

.is li::before {
  content: "+";
  color: var(--brass);
}

.isnt li::before {
  content: "\2013";
  color: var(--steel);
}

.isnt h3 {
  border-bottom-color: var(--rule);
  color: var(--steel);
}

/* Description list for how the club runs */

.channels {
  margin: 0;
}

.channels dt {
  font-family: Bitter, Georgia, serif;
  font-weight: 600;
  font-size: 1.0625rem;
  margin-top: 1.75rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--rule);
}

.channels dt:first-of-type {
  margin-top: 0;
}

.channels dd {
  margin: 0.4rem 0 0;
  max-width: var(--measure);
  color: #3a4356;
}

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

.btn {
  display: inline-block;
  background: var(--dial);
  color: var(--paper);
  font-family: Archivo, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.85rem 1.6rem;
  border: 0;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover:not(:disabled) {
  background: var(--ink);
  color: var(--paper);
}

.btn:disabled {
  opacity: 0.55;
  cursor: default;
}

/* ---- Form ---- */

.formwrap {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  max-width: 40rem;
}

.field {
  margin-bottom: 1.5rem;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.15rem;
}

.field .help {
  display: block;
  font-size: 0.875rem;
  color: var(--steel);
  margin-bottom: 0.5rem;
  max-width: none;
}

.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--steel);
  border-radius: 2px;
  padding: 0.6rem 0.7rem;
}

.field textarea {
  min-height: 6.5rem;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--dial);
}

.check {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.9375rem;
}

.check input {
  margin-top: 0.3rem;
  flex: 0 0 auto;
}

/* Honeypot — hidden from people, visible to naive bots. */
.gotcha {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.status {
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--steel);
  background: #fff;
  font-size: 0.9375rem;
}

.status[data-state="error"] {
  border-left-color: #a8402f;
}

.status[data-state="ok"] {
  border-left-color: var(--brass);
}

.status:empty {
  display: none;
}

/* ---- Confirmation callout ---- */

.callout {
  background: var(--dial);
  color: var(--paper);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: 3px;
  max-width: 40rem;
}

.callout h2 {
  color: var(--paper);
  margin-bottom: 0.75rem;
}

.callout p {
  color: #cfd6e2;
}


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

footer {
  padding-block: 2.5rem 3.5rem;
  font-size: 0.9375rem;
  color: var(--steel);
}

footer p {
  max-width: none;
  margin-bottom: 0.4rem;
}

footer a {
  color: var(--steel);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
