/* Tymit static site — shared styles. No build step: edit and deploy. */

@font-face {
  font-family: 'TT Hoves';
  src: url('/assets/fonts/TTHoves-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TT Hoves';
  src: url('/assets/fonts/TTHoves-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-bg: #ffffff;
  --color-surface: #f5f7fd;
  --color-text: #0d0f2d;
  --color-text-muted: #4b4e6b;
  --color-border: #e1e5f2;
  --color-link: #1d51b4;
  --color-focus: #1d51b4;
  --color-band: #0d0f2d;
  --color-band-text: #ffffff;
  --color-band-muted: #c9ceea;
  --color-band-focus: #9abafa;
  --color-chip: #f1f4fb;

  --font-sans: 'TT Hoves', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial,
    sans-serif;
  --content-width: 46rem;
  --page-width: 72rem;
  --gutter: 1.375rem;

  color-scheme: light;
}


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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-link);
  text-underline-offset: 0.15em;
}

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

h1,
h2,
h3 {
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 2.5rem);
}

h2 {
  font-size: 1.375rem;
  margin-top: 2.5rem;
}

p {
  margin: 0 0 1rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: var(--gutter);
  top: 0.5rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  background: var(--color-bg);
}

/* Layout */

.wrapper {
  width: 100%;
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Navy navbar and hero read as one block */
.site-header,
.hero,
.site-footer {
  --color-focus: var(--color-band-focus);
  background: var(--color-band);
  color: var(--color-band-text);
}

.site-header .wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
}

.logo {
  display: inline-flex;
  color: inherit;
}

.logo svg {
  width: 5.5rem;
  height: auto;
}

main {
  flex: 1;
  padding: 0 0 4rem;
}

.page-body {
  padding-top: 3rem;
}

.hero {
  padding: 2.5rem 0 4.5rem;
}

.hero h1 {
  max-width: 20ch;
  text-wrap: balance;
  margin-bottom: 1.5rem;
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.hero .lead {
  max-width: 58ch;
  margin: 0;
  font-size: clamp(1.125rem, 2.5vw, 1.25rem);
  color: var(--color-band-muted);
}

.hero .lead p {
  margin: 0;
}

.hero .lead p + p {
  margin-top: 0.5rem;
}

.content {
  max-width: var(--content-width);
}

/* FAQ accordion */

.faq-group + .faq-group {
  margin-top: 2.5rem;
}

.faq-group h2 {
  margin-top: 0;
  font-size: 1.625rem;
  letter-spacing: -0.01em;
}

.faq {
  border-top: 1px solid var(--color-border);
}

.faq:last-of-type {
  border-bottom: 1px solid var(--color-border);
}

.faq summary {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 2.75rem;
  padding: 1.25rem 0.25rem;
  font-weight: 500;
  font-size: 1.125rem;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq-number {
  flex: none;
  width: 1.75rem;
  font-size: 0.875rem;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  color: var(--color-text-muted);
}

.faq-question {
  flex: 1 1 auto;
  min-width: 0;
}

.faq-icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--color-chip);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.faq-icon::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-20%) rotate(45deg);
}

.faq summary:hover .faq-icon {
  background: var(--color-border);
}

.faq[open] .faq-icon {
  transform: rotate(180deg);
}

/* Answers line up with the question text, past the number column */
.faq-answer {
  padding: 0 0.25rem 1.75rem 3.25rem;
  color: var(--color-text-muted);
}

@media (max-width: 37.5rem) {
  .faq-answer {
    padding-left: 0.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-icon {
    transition: none;
  }
}

.faq-answer > :last-child {
  margin-bottom: 0;
}

.faq-answer h3 {
  margin: 1.75rem 0 0.75rem;
  font-size: 1rem;
  color: var(--color-text);
}

.faq-answer strong,
.faq-answer dt,
.faq-answer th {
  font-weight: 500;
  color: var(--color-text);
}

.faq-answer ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.faq-answer li + li {
  margin-top: 0.5rem;
}

.faq-answer address {
  margin: 0 0 1rem;
  font-style: normal;
}

/* Lists of rights: term above its description */
.rights-list {
  margin: 0 0 1rem;
}

.rights-list dt {
  margin-top: 1.25rem;
}

.rights-list dd {
  margin: 0.25rem 0 0;
}

.rights-list dd > :last-child {
  margin-bottom: 0;
}

/* Tables scroll sideways on narrow screens instead of overflowing the page */
.table-scroll {
  overflow-x: auto;
  margin: 0 0 1rem;
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
}

table {
  width: 100%;
  min-width: 32rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

th,
td {
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-border);
}

tr:last-child td {
  border-bottom: 0;
}

th {
  background: var(--color-surface);
}

/* Footer */

.site-footer {
  padding: 3rem 0;
  font-size: 0.875rem;
  line-height: 1.65;
}

.site-footer .wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.disclaimers {
  color: var(--color-band-muted);
}

.disclaimers p {
  max-width: 72ch;
}

.disclaimers > :last-child {
  margin-bottom: 0;
}

/* FAQ list with the contact card beside it (the card drops below on narrow screens) */

.content.has-aside {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 3rem;
  max-width: none;
}

.has-aside > .faq-group {
  flex: 999 1 35rem;
  min-width: 0;
}

.contact-card {
  flex: 1 1 18rem;
  min-width: 0;
  padding: 1.75rem;
  border: 1px solid var(--color-border);
  border-radius: 1rem;
}

.contact-card h2 {
  margin: 0 0 1.25rem;
  font-size: 1.125rem;
}

.contact-card dl {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 0;
}

.contact-card dt {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.contact-card dd {
  margin: 0.25rem 0 0;
  font-weight: 500;
}

.contact-hours {
  display: block;
  margin-top: 0.125rem;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--color-text-muted);
}
