/* ANG Design: shared tokens and site chrome (header, footer, buttons, forms, focus).
   Page layout stays in each page's own <style>. The logo's warm graphite #38332a and
   parchment #ece1c9 anchor the palette; paper #f5f1ea stays the ground. */
:root {
  --bg: #f5f1ea;
  --card: #fbf8f3;
  --ink: #2b2823;
  --graphite: #38332a;
  --parchment: #ece1c9;
  --muted: #6f6860;        /* 5.2:1 on --card */
  --accent: #9c8f7d;       /* rules and borders only: too light for text */
  --accent-text: #756857;  /* same hue, AA for small text */
  --hover: #554b3d;        /* button hover: 7.6:1 against the paper text */
  --line: #ddd5c8;
  --field-line: #938879;   /* form field edges: 3.3:1 against the card */
  --err: #a33d2f;
  --header-h: 78px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-padding-top: var(--header-h); }
body {
  background: var(--bg); color: var(--ink);
  font-family: "Inter", system-ui, sans-serif; font-weight: 300;
  line-height: 1.65; -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 400; line-height: 1.12; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }
.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 100; padding: 10px 16px;
  background: var(--ink); color: var(--bg); font-size: 13px; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 30px; }
.eyebrow { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--accent-text); }

/* ---- header lockup: "ANG Design | Alexandra N. Graves", Allie's wording, kept at every width */
.site-header { background: rgba(245, 241, 234, .96); border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: baseline; gap: 14px; text-decoration: none; }
.brand .mark {
  font-family: "Cormorant Garamond", Georgia, serif; font-size: 22px;
  letter-spacing: .3em; text-transform: uppercase; line-height: 1.15;
}
.brand .rule { width: 1px; height: 18px; background: currentColor; opacity: .45; align-self: center; }
.brand .name { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: 16px; letter-spacing: .04em; line-height: 1.2; opacity: .88; }
.back { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; text-decoration: none; padding: 10px 0; white-space: nowrap; }
.back:hover { text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 860px) {
  .wrap { padding: 0 20px; }
  .brand { flex-direction: column; align-items: flex-start; gap: 3px; }
  .brand .rule { display: none; }
  .brand .mark { font-size: 18px; letter-spacing: .2em; }
  .brand .name { font-size: 14px; }
}
@media (max-width: 380px) {
  .wrap { padding: 0 16px; }
  .brand .mark { font-size: 16px; letter-spacing: .16em; }
  .brand .name { font-size: 13px; }
  .back { font-size: 10px; letter-spacing: .14em; }
}

/* ---- buttons (a transparent border keeps an edge in forced-colours mode and evens heights) */
.button {
  display: inline-block; padding: 16px 42px; border: 1px solid transparent;
  background: var(--ink); color: var(--bg); text-decoration: none; font-family: inherit;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase; line-height: 1.5; cursor: pointer;
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.button:hover { background: var(--hover); }
.button.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.button.ghost:hover { background: var(--ink); color: var(--bg); }

/* ---- forms (/inquire, /pay) */
.form-card { background: var(--card); border: 1px solid var(--line); padding: 38px 32px; }
.form-card label {
  display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}
.form-card label .opt { text-transform: none; letter-spacing: 0; }
.form-card input, .form-card select, .form-card textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--field-line); border-radius: 0; background: #fff;
  font-family: inherit; font-size: 16px; font-weight: 300; color: var(--ink);
}
.form-card input, .form-card select { height: 48px; }
.form-card textarea { min-height: 104px; resize: vertical; line-height: 1.6; }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { border-color: var(--accent-text); }
.form-card input:focus-visible, .form-card select:focus-visible, .form-card textarea:focus-visible {
  outline: 2px solid var(--accent-text); outline-offset: 2px;
}
.form-card [aria-invalid="true"] { border-color: var(--err); }
.form-card .hint { font-size: 13px; color: var(--muted); margin-top: 7px; }
.form-card button[type="submit"] {
  width: 100%; margin-top: 6px; padding: 16px 20px; border: 1px solid transparent; cursor: pointer;
  background: var(--ink); color: var(--bg); font-family: inherit;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase; transition: background .3s ease;
}
.form-card button[type="submit"]:hover:not(:disabled) { background: var(--hover); }
.form-card button[type="submit"]:disabled { opacity: .55; cursor: default; }
.msg { margin-top: 18px; padding: 14px 16px; font-size: 14px; display: none; }
.msg.err { display: block; background: #f7e9e6; border: 1px solid #e4c4bd; color: var(--err); }
.msg.ok, .msg.info { display: block; background: #eef0e9; border: 1px solid var(--line); color: #4f4a42; }
@media (max-width: 620px) { .form-card { padding: 28px 20px; } }

/* ---- footer: graphite band with the parchment logo as the sign-off */
.site-footer { background: var(--graphite); color: var(--parchment); padding: 56px 0 30px; font-size: 13px; }
.site-footer .foot { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px 48px; }
.site-footer .foot-logo { display: block; width: 96px; height: auto; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.site-footer a { color: var(--parchment); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 5px; }
.site-footer nav a { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; padding: 6px 0; }
.site-footer .contact { text-align: right; line-height: 1.9; }
.site-footer .legal {
  grid-column: 1 / -1; border-top: 1px solid rgba(236, 225, 201, .22); padding-top: 18px;
  color: #cdbf9f; font-size: 12px;  /* 6.9:1 on graphite */
}
.site-footer :focus-visible { outline-color: var(--parchment); }
@media (max-width: 760px) {
  .site-footer .foot { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .site-footer nav { justify-content: center; }
  .site-footer .contact { text-align: center; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
