@font-face {
  font-family: "Rota Fraunces";
  src: url("/fonts/fraunces-roman.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Rota Fraunces";
  src: url("/fonts/fraunces-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 500;
  font-display: swap;
}

.rota-welcome {
  --paper: #f8f4ed;
  --ink: #2b2118;
  --muted: #69594b;
  --line: #e0d5c7;
  --accent: #a3442a;
  --action: #a3442a;
  --action-hover: #8e3a20;
  --board: #302219;
  --board-line: #524032;
  --sheet: #fffaf3;
  --sheet-ink: #2b2118;
  --sheet-muted: #6e6052;
  --sheet-line: #eadfd0;
  box-sizing: border-box;
  flex: 1;
  height: 100%;
  min-width: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.5 DMSans,
    sans-serif;
}

.rota-welcome *,
.rota-welcome *::before,
.rota-welcome *::after {
  box-sizing: inherit;
}

.rota-welcome-frame {
  display: flex;
  flex-direction: column;
  width: min(100% - clamp(36px, 9vw, 128px), 1240px);
  min-height: 100%;
  margin-inline: auto;
}

.rota-welcome-header,
.rota-welcome-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.rota-welcome-header {
  min-height: 83px;
  border-bottom: 1px solid var(--line);
}

.rota-welcome-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font:
    19px/1.2 DMSansBold,
    sans-serif;
  letter-spacing: -0.035em;
}

.rota-welcome-brand img {
  border-radius: 10px;
}

.rota-welcome a {
  color: inherit;
  text-decoration: none;
}

.rota-welcome button {
  cursor: pointer;
}

.rota-welcome a:focus-visible,
.rota-welcome button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.rota-welcome-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 11px 19px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: DMSansSemibold, sans-serif;
  font-size: 15px;
  line-height: 1.35;
  white-space: nowrap;
}

.rota-welcome .rota-welcome-sign-in {
  min-height: 44px;
  padding-inline: 15px;
  border-color: var(--line);
  background: none;
  color: var(--ink);
}

.rota-welcome-sign-in span {
  color: var(--accent);
}

.rota-welcome-hero {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 78px);
  align-items: center;
  padding-block: clamp(52px, 9vh, 104px);
}

.rota-welcome-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--muted);
  font:
    13px/1.2 DMSansSemibold,
    sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rota-welcome-eyebrow::before {
  width: 20px;
  height: 1px;
  background: var(--accent);
  content: "";
}

.rota-welcome-copy h1 {
  margin: 0;
  font:
    500 clamp(46px, 6vw, 90px)/0.98 "Rota Fraunces",
    Georgia,
    serif;
  font-optical-sizing: auto;
  letter-spacing: -0.061em;
  text-wrap: balance;
}

.rota-welcome-copy h1 em {
  display: block;
  color: var(--accent);
  font-weight: inherit;
}

.rota-welcome-description {
  max-width: 32ch;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.52;
}

.rota-welcome-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 29px;
}

.rota-welcome .rota-welcome-primary {
  background: var(--action);
  color: white;
}

.rota-welcome .rota-welcome-primary:hover {
  background: var(--action-hover);
}

.rota-welcome .rota-welcome-secondary {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.rota-welcome-secondary:hover,
.rota-welcome-sign-in:hover {
  border-color: var(--accent);
}

.rota-welcome-join {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.rota-welcome-join button {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font:
    14px/1.4 DMSansSemibold,
    sans-serif;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rota-welcome-preview {
  min-width: 0;
  padding: clamp(15px, 2.7vw, 38px);
  border: 1px solid var(--board-line);
  border-radius: clamp(16px, 2vw, 28px);
  background-color: var(--board);
  background-image: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 31px,
    rgba(225, 193, 157, 0.065) 31px,
    rgba(225, 193, 157, 0.065) 32px
  );
  box-shadow: 0 18px 35px rgba(51, 33, 20, 0.13);
}

.rota-welcome-preview-caption {
  display: flex;
  min-height: 32px;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: #f7e8d8;
  font:
    14px/1.3 DMSansSemibold,
    sans-serif;
}

.rota-welcome-team-mark,
.rota-welcome-avatar {
  display: grid;
  flex: none;
  place-items: center;
  aspect-ratio: 1;
  font:
    11px/1 DMSansBold,
    sans-serif;
}

.rota-welcome-team-mark {
  width: 32px;
  border: 1px solid #8f6c51;
  border-radius: 8px;
  background: #493125;
  color: #f5d0b0;
}

.rota-welcome-sample {
  margin-left: auto;
  color: #d8bda4;
  font:
    11px/1.3 DMSansSemibold,
    sans-serif;
  letter-spacing: 0.07em;
  text-align: right;
  text-transform: uppercase;
  white-space: nowrap;
}

.rota-welcome-sheet {
  padding: clamp(12px, 2vw, 26px);
  border: 1px solid var(--sheet-line);
  border-radius: 15px;
  background: var(--sheet);
  color: var(--sheet-ink);
  box-shadow: 0 14px 22px rgba(21, 13, 7, 0.21);
}

.rota-welcome-service {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--sheet-line);
}

.rota-welcome-date {
  display: grid;
  flex: none;
  min-width: 58px;
  border-radius: 8px;
  overflow: hidden;
  background: #f4e2d5;
  color: #7d3520;
  text-align: center;
}

.rota-welcome-date span {
  padding: 3px 6px;
  background: #a3442a;
  color: white;
  font:
    11px/1.5 DMSansSemibold,
    sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rota-welcome-date strong {
  padding: 4px 5px 5px;
  font:
    16px/1.3 DMSansBold,
    sans-serif;
}

.rota-welcome-service h2 {
  margin: 0;
  font:
    clamp(17px, 1.8vw, 23px)/1.2 DMSansBold,
    sans-serif;
  letter-spacing: -0.035em;
}

.rota-welcome-service p {
  margin: 2px 0 0;
  color: var(--sheet-muted);
  font-size: 13px;
}

.rota-welcome-volunteers {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rota-welcome-volunteers li {
  display: flex;
  min-height: 62px;
  align-items: center;
  gap: 10px;
  padding-block: 9px;
  border-bottom: 1px solid var(--sheet-line);
}

.rota-welcome-volunteers li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.rota-welcome-avatar {
  width: 34px;
  border-radius: 50%;
  background: #f4e4d4;
  color: #754626;
}

.rota-welcome-person {
  flex: 1;
  min-width: 0;
  font:
    15px/1.3 DMSansBold,
    sans-serif;
}

.rota-welcome-person small {
  display: block;
  margin-top: 1px;
  color: var(--sheet-muted);
  font:
    13px/1.3 DMSans,
    sans-serif;
}

.rota-welcome-reply {
  flex: none;
  padding: 4px 8px;
  border-radius: 5px;
  font:
    12px/1.35 DMSansSemibold,
    sans-serif;
  white-space: nowrap;
}

.rota-welcome-reply.accepted {
  background: #e4eee2;
  color: #2f613a;
}

.rota-welcome-reply.pending {
  background: #f7ead0;
  color: #745019;
}

.rota-welcome-reply.declined {
  background: #f6e4df;
  color: #873e33;
}

.rota-welcome-footer {
  flex-wrap: wrap;
  min-height: 66px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.rota-welcome-footer > a {
  font-family: DMSansBold, sans-serif;
}

.rota-welcome-footer nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 21px;
}

.rota-welcome-footer a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.rota-welcome-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 880px) {
  .rota-welcome-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 35px;
    padding-block: 43px;
  }

  .rota-welcome-copy h1 {
    font-size: clamp(46px, 9vw, 72px);
    text-wrap: initial;
  }

  .rota-welcome-preview {
    width: min(100%, 590px);
  }
}

@media (max-width: 480px) {
  .rota-welcome-header {
    min-height: 70px;
  }

  .rota-welcome-brand {
    gap: 8px;
    font-size: 17px;
  }

  .rota-welcome-brand img {
    width: 33px;
    height: 33px;
  }

  .rota-welcome-actions {
    gap: 8px;
  }

  .rota-welcome-button {
    padding-inline: 12px;
    font-size: 14px;
  }

  .rota-welcome-footer {
    gap: 0 14px;
  }
}

@media (max-width: 360px) {
  .rota-welcome-preview {
    padding: 11px;
  }

  .rota-welcome-sheet {
    padding: 10px;
  }

  .rota-welcome-avatar {
    width: 27px;
  }

  .rota-welcome-volunteers li {
    gap: 7px;
  }
}

@media (prefers-color-scheme: dark) {
  .rota-welcome {
    --paper: #1d1712;
    --ink: #f7eee3;
    --muted: #bfb09f;
    --line: #46392f;
    --accent: #ee9c7d;
    --board: #39281e;
    --board-line: #594030;
    --sheet: #281e17;
    --sheet-ink: #fbefe1;
    --sheet-muted: #c8b6a4;
    --sheet-line: #47372b;
    color-scheme: dark;
  }

  .rota-welcome-date,
  .rota-welcome-avatar {
    background: #4a3024;
    color: #f5c9aa;
  }

  .rota-welcome-reply.accepted {
    background: #263e2b;
    color: #b4d8b8;
  }

  .rota-welcome-reply.pending {
    background: #45371f;
    color: #f5d49b;
  }

  .rota-welcome-reply.declined {
    background: #4d2b25;
    color: #f2b3a5;
  }
}
