:root {
  --ink: #2d292a;
  --bordeaux: #5b1f34;
  --paper: #f4f1ea;
  --card: #fcfaf6;
  --line: #d8d1c6;
  --muted: #6f6a63;
  font-family: 'Source Sans 3', sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.55;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--bordeaux); text-underline-offset: .18em; }
a:focus-visible { outline: 2px solid var(--bordeaux); outline-offset: 4px; }
h1 { font: 600 clamp(2.6rem, 7vw, 4.1rem)/1 'EB Garamond', Georgia, serif; margin: 0; }

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem clamp(1rem, 6vw, 4rem);
  border-bottom: 1px solid var(--line);
  background: var(--card);
}

.wordmark { font: 600 clamp(1.45rem, 4vw, 1.8rem)/1 'EB Garamond', Georgia, serif; }
.languages { display: flex; gap: .2rem; }
.languages a {
  display: grid;
  place-items: center;
  min-height: 44px;
  min-width: 44px;
  text-decoration: none;
  font-weight: 600;
}
.languages a[aria-current] { text-decoration: underline; }

.welcome {
  max-width: 43rem;
  margin: clamp(1.5rem, 8vw, 5rem) auto;
  padding: clamp(1.5rem, 6vw, 4rem) 1.15rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: .75rem;
  text-align: center;
}
.logo { display: block; width: auto; height: 7.25rem; margin: 0 auto 1.4rem; }
.purpose { max-width: 26rem; margin: .75rem auto 1.55rem; font-size: 1.13rem; }
.privacy { max-width: 27rem; margin: 1rem auto 0; color: var(--muted); font-size: .91rem; }
.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: .65rem 1.1rem;
  border-radius: .45rem;
  background: var(--bordeaux);
  color: white;
  font-weight: 600;
  text-decoration: none;
}

.wide { max-width: 70rem; margin: 2rem auto; padding-inline: 1rem; }
.wide h1 { font-size: clamp(2.25rem, 6vw, 3.55rem); }
.contacts-header { display: flex; justify-content: space-between; align-items: end; gap: 1rem; }
.contacts-header p { margin: 0 0 .3rem; }
.date-note { color: var(--muted); margin: 1.2rem 0 .5rem; }
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: .5rem; }
table { width: 100%; border-collapse: collapse; }
td, th { padding: .65rem 1rem; text-align: left; white-space: nowrap; }
thead tr, tbody tr + tr { border-bottom: 1px solid var(--line); }
tbody tr:last-child { border-bottom: 0; }
.pagination { display: flex; gap: 1.5rem; padding: 1rem 0; }

@media (max-width: 45rem) {
  .welcome { margin-inline: 1rem; }
  .contacts-header { align-items: flex-start; flex-direction: column; }
}

.access-form { max-width: 31rem; margin-inline: auto; }
.access-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem 1rem;
  margin-block: 1rem;
  text-align: start;
}
.access-fields label { display: grid; gap: .18rem; font-weight: 600; }
.access-fields .email-field { grid-column: 1 / -1; }
.access-fields input {
  min-width: 0;
  min-height: 48px;
  padding: .55rem .7rem;
  border: 1px solid #a9a197;
  border-radius: .4rem;
  background: white;
  color: inherit;
  font: 400 1rem 'Source Sans 3', sans-serif;
}
.button, .text-button { font: inherit; font-weight: 600; border: 0; cursor: pointer; }
.button:hover { background: #481829; }
.text-button { background: none; color: var(--bordeaux); text-decoration: underline; padding: .3rem; }
:is(button, input):focus-visible { outline: 2px solid var(--bordeaux); outline-offset: 3px; }
.access-error { color: var(--bordeaux); font-weight: 600; margin: .8rem auto; }
.verify-form { margin-top: 1.25rem; }
.retry { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 34rem) {
  .access-fields { grid-template-columns: 1fr; }
  .access-form > button { width: 100%; justify-content: center; }
  .welcome { margin-block: .75rem 1.5rem; padding-block: 1.2rem; }
  .welcome .logo { height: 4.75rem; margin-bottom: .8rem; }
}
