/* Railey Ashcombe — shared base. Copied verbatim from the approved page designs. */
:root {
  --ivory: #F6F1E9;
  --stone: #E6DCCB;
  --brass: #A6864F;
  --green: #2F3E36;
  --ink: #1F1C18;
  --bg: var(--ivory);
  --fg: var(--ink);
  --container: 1200px;
  --gutter: clamp(20px, 6vw, 80px);
  --edge: max(var(--gutter), calc((100% - var(--container)) / 2));
}
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; overscroll-behavior: none; scroll-padding-top: env(safe-area-inset-top, 0px); }
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', sans-serif;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
button, a, [role="button"] { touch-action: manipulation; }
button, [role="button"] { user-select: none; -webkit-user-select: none; }
a { text-decoration: none; }
img { max-width: 100%; display: block; }
.serif { font-family: 'Cormorant Garamond', serif; }

/* ---- Top bar ---- */
.topbar {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--edge);
  z-index: 30;
  background: var(--ivory);
  border-bottom: 1px solid var(--stone);
}
.nav-brand { display: flex; align-items: center; gap: 8px; }
.nav-icon { color: var(--ink); }
.wordmark {
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 15px;
  color: var(--ink);
}
.nav-right { display: flex; align-items: center; gap: 32px; }
.nav-right > * + * { margin-left: 32px; }
.nav-links { display: flex; gap: 32px; }
.nav-links > * + * { margin-left: 32px; }
.nav-links a { color: #59503f; text-decoration: none; font-family: 'Inter', sans-serif; font-size: 13px; letter-spacing: 0.03em; }
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover { color: var(--ink); }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 2px;
  border: 1px solid transparent;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease;
}
.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.btn-primary { background: var(--brass); color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: #b8965c; }
}
.btn-ghost-ink { background: transparent; color: var(--ink); border-color: rgba(31,28,24,0.35); }
@media (hover: hover) and (pointer: fine) {
  .btn-ghost-ink:hover { border-color: var(--ink); }
}

.kicker {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--brass);
  text-transform: uppercase;
  margin-bottom: 14px;
}

form { display: flex; flex-direction: column; gap: 22px; }
.field label {
  display: block;
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: #59503f;
  margin-bottom: 8px;
}
.field input, .field textarea, .field select {
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  padding: 13px 14px;
  border: 1px solid #c9bfa8;
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
  appearance: none;
}
.field textarea { resize: vertical; min-height: 100px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--brass);
  outline-offset: 1px;
  border-color: var(--brass);
}
.field .hint { font-size: 11.5px; color: #8a8172; margin-top: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) {
  .field-row { grid-template-columns: 1fr; }
}
.form-submit { margin-top: 6px; }
.form-submit .btn { width: 100%; text-align: center; padding: 15px 28px; }
.form-note {
  text-align: center;
  font-size: 12px;
  color: #8a8172;
  margin-top: 18px;
}

/* ---- Footer (shared) ---- */
.site-footer { background: var(--ink); color: var(--ivory); }
.footer-cta {
  padding: 48px var(--edge);
  border-bottom: 1px solid rgba(246,241,233,0.15);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 24px clamp(32px, 5vw, 64px);
}
.footer-cta h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(24px, 3.4vw, 34px);
  margin: 0;
  max-width: 14ch;
  line-height: 1.15;
}
.footer-cta .cta-meta { font-size: 12px; color: rgba(246,241,233,0.65); margin-top: 8px; }
.footer-cols {
  padding: 48px var(--edge);
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.footer-brand-col { max-width: 260px; }
.footer-brand-col .nav-brand { margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.footer-brand-col .nav-icon { color: var(--ivory); }
.footer-brand-col .wordmark { color: var(--ivory); }
.footer-brand-col p { font-size: 13.5px; color: rgba(246,241,233,0.65); line-height: 1.7; margin: 0 0 16px; }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 34px; height: 34px;
  border: 1px solid rgba(246,241,233,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ivory); text-decoration: none; font-size: 12px;
}
.footer-link-group { min-width: 140px; }
.footer-link-group .col-label { font-size: 12.5px; color: rgba(246,241,233,0.55); margin-bottom: 12px; }
.footer-link-group a { display: block; color: rgba(246,241,233,0.85); text-decoration: none; font-size: 13.5px; margin-bottom: 12px; }
.footer-mark { overflow: hidden; line-height: 0.75; padding: 0 var(--edge); }
.footer-mark svg { width: 100%; height: auto; display: block; color: rgba(246,241,233,0.07); }
.footer-bottom {
  padding: 16px var(--edge);
  border-top: 1px solid rgba(246,241,233,0.15);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: rgba(246,241,233,0.55);
}
.footer-bottom a { color: rgba(246,241,233,0.55); }
@media (max-width: 760px) {
  .footer-cta { flex-direction: column; align-items: flex-start; }
}

/* ---- Dark top bar variant (Private Register). Values from railey-ashcombe-register.html ---- */
.topbar--dark { background: var(--ink); border-bottom-color: rgba(246,241,233,0.15); }
.topbar--dark .nav-icon { color: var(--ivory); }
.topbar--dark .wordmark { color: var(--ivory); }
.topbar--dark .nav-links a { color: rgba(246,241,233,0.75); }
@media (hover: hover) and (pointer: fine) {
  .topbar--dark .nav-links a:hover { color: var(--ivory); }
}
.btn-ghost { background: transparent; color: var(--ivory); border-color: rgba(246,241,233,0.5); }
@media (hover: hover) and (pointer: fine) {
  .btn-ghost:hover { border-color: var(--ivory); }
}

/* ---- WordPress: keep the fixed bar clear of the admin bar when logged in ---- */
body.admin-bar .topbar { top: 32px; }
@media (max-width: 782px) { body.admin-bar .topbar { top: 46px; } }

/* ---- Form status message (uses .form-note metrics) ---- */
.form-status { text-align: center; font-size: 13px; line-height: 1.6; margin: 0 0 24px; color: var(--green); }
.form-status--error { color: #8a3b2e; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Top bar sizing + one-line guarantee (added on request) ---- */
.topbar .wordmark { font-size: 17px; white-space: nowrap; }
.topbar .nav-links a { font-size: 14px; }
.topbar .nav-right .btn { padding: 11px 22px; font-size: 13px; white-space: nowrap; }
.topbar .nav-icon { flex-shrink: 0; }
@media (max-width: 1100px) {
  /* Approved CSS stacks a flex gap and a sibling margin (64px between links); tighten it so the bar always fits. */
  .topbar .nav-right, .topbar .nav-links { gap: 24px; }
  .topbar .nav-right > * + *, .topbar .nav-links > * + * { margin-left: 0; }
}
@media (max-width: 900px) {
  .topbar .wordmark { font-size: 15px; }
  .topbar .nav-links a { font-size: 13px; }
  .topbar .nav-right .btn { padding: 10px 18px; font-size: 12.5px; }
}
@media (max-width: 760px) {
  /* The link group is hidden here; its sibling margin would otherwise push the button off-screen. */
  .topbar .nav-right > * + * { margin-left: 0; }
}
@media (max-width: 480px) {
  .topbar .nav-brand { gap: 6px; }
  .topbar .wordmark { font-size: 13px; letter-spacing: 0.1em; }
  .topbar .nav-right .btn { padding: 9px 14px; font-size: 12px; }
}
@media (max-width: 340px) {
  .topbar .wordmark { font-size: 12px; letter-spacing: 0.08em; }
  .topbar .nav-right .btn { padding: 8px 10px; font-size: 11.5px; }
}
