/* ācta marketing site: the recorder's office, shared shell.
   Tokens, fonts, base type, buttons, fields, notices, the folder-tab header,
   and the index-book footer. Every page on the new shell loads this file
   first, then its own page stylesheet. */

@import url('/fonts/landing/faces.css');

:root {
  --manila: #e3cf9c;
  --manila-deep: #d4bc80;
  --folder-edge: #b89d5c;
  --bond: #fcfbf7;
  --bond-rule: #d9d1bb;
  --sheet-edge: #cbbb8f;
  --green: #24402f;
  --green-deep: #1a3123;
  --green-text: #eef2ea;
  --green-muted: #c3d1bf;
  --ink: #191c19;
  --ink-2: #4a4536;
  --ink-3: #6b6455;
  --stamp: #1f2a3d;
  --ack: #2b6440;
  --due: #7a4a00;
  --red: #b3261e;
  --stamp-red: #9b1c1c;
  --focus: #1f4e8c;
  --edit-fill: #fff7d1;
  --flash-success-fill: #e6f0e7;
  --flash-success-text: #1d4a2e;
  --flash-info-fill: #e8edf4;
  --flash-info-text: #1b3a63;
  --flash-warning-fill: #f6ecd2;
  --flash-warning-text: #5c3800;
  --flash-error-fill: #f8e6e4;
  --flash-error-text: #8a1c15;

  --font-forms: 'Libre Franklin', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  --font-doc: 'Source Serif 4', 'Source Serif Pro', Georgia, serif;
  --font-type: 'Courier Prime', 'Courier New', Courier, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --wrap: min(1200px, 100% - 2 * var(--gutter));
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
}

/* ---------- Base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: #8c7a4b var(--manila);
}

body.rec {
  margin: 0;
  background: var(--manila);
  color: var(--ink);
  font-family: var(--font-forms);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--green);
}

/* base.html.twig ships a noise filter in an SVG with a Tailwind "hidden"
   class; Tailwind does not load here. */
body.rec > svg.hidden,
.rec [hidden] { display: none !important; }

.rec ::selection { background: var(--green); color: var(--bond); }

:where(.rec) :where(h1, h2, h3, p, ol, ul) { margin: 0; }
:where(.rec) :where(ol, ul) { padding: 0; list-style: none; }

:where(.rec) a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

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

main:focus { outline: none; }

.rec-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.rec-skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--green);
  color: var(--bond);
  font-weight: 600;
}
.rec-skip:focus { top: 12px; }

/* ---------- Shared type ---------- */

.rec-h2 {
  font-family: var(--font-forms);
  font-weight: 800;
  font-size: clamp(2rem, 1.25rem + 2.3vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.rec-lede {
  margin-top: 16px;
  max-width: 60ch;
  font-size: 1.1875rem;
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}

.rec-link {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  cursor: pointer;
}
.rec-link:hover { text-decoration-thickness: 2px; }

/* ---------- Buttons and fields ---------- */

.rec-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 3px;
  background: var(--green);
  color: var(--bond);
  font-family: var(--font-forms);
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(10, 25, 15, 0.35), 0 8px 18px -10px rgba(10, 25, 15, 0.55);
  transition: background-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.rec-btn:hover { background: var(--green-deep); }
.rec-btn:active { transform: translateY(1px); }
.rec-btn--block { width: 100%; }
.rec-btn--small { min-height: 40px; padding: 0 16px; font-size: 0.9375rem; }
.rec-btn--ghost {
  min-height: 44px;
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  box-shadow: none;
  font-size: 0.9375rem;
}
.rec-btn--ghost:hover { background: rgba(25, 28, 25, 0.06); }
.rec-btn--ghost[aria-pressed='true'] { background: var(--ink); color: var(--bond); }

.rec-field { display: grid; gap: 6px; margin-bottom: 16px; }

.rec-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

.rec-input,
.rec-select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1.5px solid #6e6650;
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-forms);
  font-size: 1rem;
}
.rec-input::placeholder { color: var(--ink-3); opacity: 1; }
.rec-input:focus-visible,
.rec-select:focus-visible { outline-offset: 1px; border-color: var(--focus); }
.rec-input[aria-invalid='true'] { border-color: var(--red); }

.rec-select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23191c19' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.rec-error { min-height: 0; font-size: 0.875rem; color: var(--red); font-weight: 600; }
.rec-error ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Header: the folder tab ---------- */

.rec-tab {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--manila);
  border-bottom: 1px solid var(--folder-edge);
  transition: box-shadow 200ms var(--ease-out);
}
.rec-tab[data-scrolled='true'] { box-shadow: 0 10px 24px -18px rgba(60, 45, 10, 0.6); }

.rec-tab__bar {
  width: var(--wrap);
  margin-inline: auto;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.rec-tab__bar > .rec-mark {
  align-self: flex-end;
  margin-bottom: -1px;
  padding: 10px 18px 11px 14px;
  background: var(--manila-deep);
  border: 1px solid var(--folder-edge);
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
}

.rec-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--stamp);
  text-decoration: none;
}
.rec-mark__glyph { width: 34px; height: 34px; flex: none; }
.rec-mark__word {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.rec-mark--light, .rec-mark--light .rec-mark__word { color: var(--bond); }

.rec-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.rec-nav__rule { width: 1px; height: 20px; background: var(--folder-edge); }
.rec-nav a,
.rec-menu-panel a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.rec-nav a:hover { text-decoration: underline; }
.rec-nav a[aria-current='page'] {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}
.rec-menu-panel a[aria-current='page'] { font-weight: 700; }

.rec-menu {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  background: transparent;
  color: var(--ink);
  font: 600 0.9375rem var(--font-forms);
  cursor: pointer;
}

.rec-menu-panel {
  width: var(--wrap);
  margin-inline: auto;
  padding: 8px 0 20px;
  display: grid;
}
.rec-menu-panel a {
  padding: 12px 0;
  border-top: 1px solid var(--folder-edge);
  font-size: 1.0625rem;
}

/* ---------- Notices ---------- */

.rec-flash {
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid;
  border-radius: 3px;
  font-size: 0.9375rem;
  font-weight: 600;
}
.rec-flash--success { background: var(--flash-success-fill); border-color: var(--ack); color: var(--flash-success-text); }
.rec-flash--info { background: var(--flash-info-fill); border-color: var(--focus); color: var(--flash-info-text); }
.rec-flash--warning { background: var(--flash-warning-fill); border-color: var(--due); color: var(--flash-warning-text); }
.rec-flash--error { background: var(--flash-error-fill); border-color: var(--red); color: var(--flash-error-text); }

/* ---------- Footer: the index-book cover ---------- */

.rec-foot { background: var(--green); color: var(--green-text); }
.rec-foot__inner {
  width: var(--wrap);
  margin-inline: auto;
  padding: 64px 0 40px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.rec-foot__brand p { margin-top: 12px; color: var(--green-muted); }
.rec-foot__head {
  margin-bottom: 14px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-muted);
}
.rec-foot li + li { margin-top: 10px; }
.rec-foot a { color: var(--green-text); text-decoration: none; font-size: 0.9375rem; }
.rec-foot a:hover { text-decoration: underline; }
.rec-foot :focus-visible { outline-color: var(--bond); }
.rec-foot__legal {
  width: var(--wrap);
  margin: 0 auto;
  padding: 20px 0 32px;
  border-top: 1px solid rgba(238, 242, 234, 0.25);
  font-size: 0.875rem;
  color: var(--green-muted);
}

/* ---------- Sign-up slip (shared by every page in the world) ---------- */

/* The sign-up slip. */
.rec-slip {
  position: relative;
  z-index: 2;
  padding: 30px 28px 24px;
  background: var(--bond);
  border: 1px solid var(--sheet-edge);
  border-radius: 2px;
  box-shadow: 0 2px 0 rgba(90, 70, 20, 0.08), 0 26px 50px -24px rgba(60, 45, 10, 0.55);
}
.rec-slip__clip {
  position: absolute;
  top: -22px;
  left: 26px;
  color: #7d7462;
}
.rec-slip__title {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}
.rec-slip__terms {
  margin: 4px 0 20px;
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.rec-slip__note {
  margin-top: 14px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-2);
}

.rec-more { margin: 2px 0 18px; }
.rec-more summary {
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
  list-style: none;
  padding: 4px 0;
}
.rec-more summary::-webkit-details-marker { display: none; }
.rec-more summary span { font-weight: 400; color: var(--ink-2); }
.rec-more[open] summary { margin-bottom: 12px; }
.rec-slip--close { margin: 0; padding-top: 40px; }
.rec-slip--close .rec-slip__clip { left: auto; right: 28px; }

/* ---------- Close (shared by every page in the world) ---------- */

.rec-close {
  width: var(--wrap);
  margin-inline: auto;
  padding: clamp(72px, 8vw, 120px) 0 clamp(96px, 10vw, 152px);
  border-top: 1px solid var(--ink);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 392px);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.rec-close__title {
  font-weight: 800;
  font-size: clamp(2.25rem, 1.2rem + 3.4vw, 4.25rem);
  line-height: 1;
  letter-spacing: -0.033em;
  max-width: 16ch;
  text-wrap: balance;
}
.rec-close__sub { margin-top: 18px; font-size: 1.1875rem; color: var(--ink-2); }

/* ---------- Questions (native details, shared by landing and pricing) ---------- */

.rec-q { border-top: 1px solid var(--ink); }
.rec-q__q {
  position: relative;
  padding: 20px 48px 20px 0;
  cursor: pointer;
  list-style: none;
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.rec-q__q::-webkit-details-marker { display: none; }
.rec-q__q::before,
.rec-q__q::after {
  content: '';
  position: absolute;
  right: 8px;
  top: 50%;
  width: 16px;
  height: 2px;
  background: var(--ink);
  transition: transform 220ms var(--ease-out);
}
.rec-q__q::after { transform: rotate(90deg); }
.rec-q[open] .rec-q__q::after { transform: rotate(0deg); }
.rec-q__a {
  padding: 0 0 24px;
  max-width: 64ch;
  font-family: var(--font-doc);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink-2);
}

/* ---------- Responsive ---------- */

@media (max-width: 1060px) {
  .rec-nav, .rec-tab__cta { display: none; }
  .rec-menu { display: inline-flex; }
}

@media (max-width: 900px) {
  .rec-close { grid-template-columns: minmax(0, 1fr); }
  .rec-foot__inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rec-foot__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body.rec { font-size: 1rem; }
  .rec-slip { padding: 26px 20px 20px; }
  .rec-slip__terms { margin-bottom: 14px; }
  .rec-more { margin-bottom: 14px; }
  .rec-tab__bar > .rec-mark { padding: 8px 12px 9px 10px; }
  .rec-foot__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rec-field { margin-bottom: 12px; }
}

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

@media print {
  .rec-tab, .rec-foot, .rec-slip { display: none; }
  body.rec { background: #fff; }
}
