@font-face {
  font-family: "FTT Outfit";
  src: url("../fonts/outfit-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "FTT Outfit";
  src: url("../fonts/outfit-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "FTT Sans";
  src: url("../fonts/source-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "FTT Sans";
  src: url("../fonts/source-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "FTT Sans";
  src: url("../fonts/source-sans-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #e8eef3;
  --paper-deep: #d5dee6;
  --card: #ffffff;
  --ink: #10212b;
  --ink-soft: #2c4450;
  --muted: #5a7380;
  --rule: #c5d2db;
  --rule-strong: #9aafbb;
  --accent: #e25b2a;
  --accent-deep: #c2461a;
  --pine: #0e7a6b;
  --pine-soft: #14917f;
  --sea: #0e2a33;
  --sea-mid: #173844;
  --signal: #ffb020;
  --focus: #e25b2a;
  --error: #c2461a;
  --result-bg: #0e2a33;
  --result-ink: #f3f7f9;
  --shadow: 0 14px 36px rgba(16, 33, 43, 0.1);
  --radius: 2px;
  --max: 70rem;
  --display: "FTT Outfit", "Segoe UI Variable Display", "Avenir Next", "Trebuchet MS", "Segoe UI", sans-serif;
  --serif: var(--display);
  --sans: "FTT Sans", "Segoe UI", "Avenir Next", system-ui, sans-serif;
  --mono: "Cascadia Mono", "Segoe UI Mono", "SFMono-Regular", Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 1px 1px, rgba(14, 42, 51, 0.07) 1px, transparent 1.2px) 0 0 / 18px 18px,
    linear-gradient(180deg, #f4f7fa 0, var(--paper) 12rem);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.06rem;
  line-height: 1.62;
  padding-left: 12px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 auto 0 0;
  width: 12px;
  z-index: 8;
  background:
    repeating-linear-gradient(
      180deg,
      var(--sea) 0 28px,
      var(--accent) 28px 40px,
      var(--signal) 40px 46px,
      var(--pine) 46px 70px
    );
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--pine);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 20;
  padding: 0.45rem 0.8rem;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

.masthead {
  background: var(--sea);
  color: #e8eef3;
  border-bottom: 6px solid var(--accent);
  box-shadow: 0 10px 28px rgba(14, 42, 51, 0.18);
}

.masthead-inner,
.footer-inner,
.wrap {
  width: min(var(--max), calc(100% - 2.4rem));
  margin-inline: auto;
}

.masthead-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 1.15rem 0 1.05rem;
}

.wordmark {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-decoration: none;
  color: inherit;
}

.wordmark-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.mark {
  width: 3rem;
  height: 3rem;
  flex: none;
  border-radius: 2px;
  background:
    linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 7px no-repeat,
    linear-gradient(var(--signal), var(--signal)) 50% 64% / 48% 3px no-repeat,
    linear-gradient(#e8eef3, #e8eef3) 50% 48% / 56% 3px no-repeat,
    linear-gradient(#e8eef3, #e8eef3) 50% 34% / 56% 3px no-repeat,
    var(--pine);
}

img.mark {
  object-fit: cover;
  padding: 0.2rem;
  background: var(--pine);
}

.wordmark-name {
  font-family: var(--display);
  font-size: 1.42rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.wordmark-tag {
  color: #b7c8d1;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.35rem;
}

.site-nav a {
  color: #e8eef3;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.42rem 0.72rem;
  border: 1px solid rgba(255, 176, 32, 0.45);
}

.site-nav a[aria-current="page"] {
  color: #10212b;
  background: var(--signal);
  box-shadow: none;
}

.site-nav a:hover {
  color: #fff;
  border-color: rgba(255, 176, 32, 0.7);
}

.site-nav a[aria-current="page"]:hover {
  color: #10212b;
}

main {
  flex: 1;
  padding: 2rem 0 3.4rem;
}

.page-kicker {
  display: inline-block;
  margin: 0 0 0.7rem;
  padding: 0.22rem 0.62rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.03em;
}

h1 {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 1.1rem;
  padding: 0 0 0.5rem;
  background: none;
  box-shadow: none;
  font-size: clamp(2rem, 4.6vw, 2.85rem);
  border-bottom: 6px solid var(--accent);
}

.lead,
.prose p,
.faq-item p,
.tip-copy p {
  max-width: 62ch;
}

.lead {
  margin: 0 0 1.35rem;
  font-size: 1.14rem;
  color: var(--ink-soft);
}

.grid-2 {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 880px) {
  .grid-2 {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: start;
  }
}

.card,
.tool-card,
.tip-card,
.note-card,
.result-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.tool-card,
.note-card,
.tip-card {
  padding: 1.25rem 1.25rem 1.35rem;
  border-top: 7px solid var(--accent);
}

.note-card,
.tip-card,
.tip-block {
  border-top-color: var(--pine);
}

.card-title {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
}

label {
  display: block;
  margin: 0.85rem 0 0.3rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.field-hint {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

input[type="date"],
input[type="time"] {
  min-width: 0;
}

input[type="text"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="url"],
select,
textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  background: #f7fafc;
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 10rem;
  resize: vertical;
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(226, 91, 42, 0.18);
}

.field-error {
  margin: 0.35rem 0 0;
  color: var(--error);
  font-size: 0.92rem;
}

.field-error[hidden] {
  display: none;
}

.row-2,
.row-3 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
  align-items: start;
}

.row-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.row-2 + .row-2,
.row-2 + .row-3,
.row-3 + .row-2 {
  margin-top: 0.85rem;
}

.row-2 > *,
.row-3 > * {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.row-2 label,
.row-3 label {
  margin-top: 0;
  min-height: 2.75em;
}

.checks,
.actions,
.extras {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.checks {
  margin-top: 0.85rem;
}

.checks label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-weight: 500;
}

.actions {
  margin-top: 1.1rem;
  align-items: center;
}

button,
.button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.5rem 1.15rem;
  border: 0;
  border-radius: 2px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
}

button.secondary,
.button.secondary {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--sea);
}

button:hover,
.button:hover {
  background: var(--accent-deep);
  color: #fff;
}

button.secondary:hover,
.button.secondary:hover {
  background: var(--sea);
  color: #fff;
}

.result-card {
  margin-top: 1.15rem;
  padding: 1.2rem 1.2rem 1.25rem;
  background:
    linear-gradient(var(--accent), var(--accent)) 0 0 / 100% 8px no-repeat,
    var(--result-bg);
  color: var(--result-ink);
  border-color: var(--result-bg);
}

.result-label {
  margin: 0.35rem 0 0.4rem;
  color: #9eb4be;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.result-value {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.85rem, 5vw, 2.85rem);
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.result-sub {
  margin: 0.55rem 0 0;
  color: #d5e2e8;
}

.result-card .actions {
  margin-top: 0.9rem;
}

.result-card .secondary {
  color: var(--result-ink);
  border-color: #6d8793;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.4rem;
}

.tabs button {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--rule-strong);
}

.tabs button[aria-selected="true"] {
  background: var(--sea);
  color: #fff;
  border-color: var(--sea);
}

.switch-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin: 0.4rem 0 0.2rem;
}

.preview-swatch {
  width: 100%;
  min-height: 5.5rem;
  margin-top: 0.9rem;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
}

.extras {
  margin: 1rem 0 0;
  flex-direction: column;
  align-items: stretch;
}

.extras button {
  width: 100%;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--rule);
  font-weight: 600;
  text-align: left;
  justify-content: flex-start;
  white-space: normal;
  max-width: 100%;
}

.cards {
  display: grid;
  gap: 0.95rem;
  margin: 0;
  padding: 0;
  width: 100%;
  list-style: none;
}

@media (min-width: 700px) {
  .cards.tools,
  .cards.tips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .cards.tools {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

main:has(.hub-intro) {
  padding-top: 0;
}

.hub-intro {
  margin: 0 0 2rem;
  padding: 1.35rem 0 1.55rem;
  background: var(--sea-mid);
  color: #e8eef3;
  border-bottom: 6px solid var(--pine);
}

.hub-intro-tools {
  border-bottom-color: var(--accent);
}

.hub-intro .crumb {
  margin-bottom: 0.85rem;
  color: #9aafbb;
}

.hub-intro .crumb a {
  color: #e8eef3;
}

.hub-intro h1 {
  margin-bottom: 0;
  color: #fff;
  border-bottom-color: var(--signal);
}

.hub-intro .lead {
  max-width: 46ch;
  margin: 0;
  color: #d5dee6;
}

.hub-intro-row {
  display: grid;
  gap: 0.85rem 2.4rem;
  align-items: end;
}

@media (min-width: 880px) {
  .hub-intro-row {
    grid-template-columns: minmax(7.5rem, auto) minmax(0, 1fr);
  }
}

.cards a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  padding: 1.1rem 1.1rem 1.2rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-top: 7px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
}

.cards.tips a {
  border-top-color: var(--pine);
}

.cards a::after {
  content: "Open";
  display: inline-block;
  margin-top: auto;
  padding-top: 0.85rem;
  padding: 0.12rem 0.45rem;
  background: var(--sea);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cards.tips a::after {
  background: var(--pine);
}

.cards a:hover {
  border-color: var(--sea);
  border-top-color: var(--signal);
}

.cards a:hover::after {
  background: var(--accent);
}

.cards h2,
.cards h3 {
  margin: 0 0 0.45rem;
  font-size: 1.22rem;
}

.cards p {
  margin: 0;
  color: var(--ink-soft);
}

.section {
  margin-top: 2.8rem;
}

.section > h2 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
  font-size: 1.7rem;
}

.section > h2::after {
  content: "";
  flex: 1;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--signal) 40%, transparent);
}

.tip-block {
  border-left: 5px solid var(--pine);
}

.faq-item {
  margin: 0 0 1rem;
  padding: 0.85rem 0 0.95rem;
  border-bottom: 1px solid var(--rule);
}

.faq-item h3,
.faq-item dt {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: 1.18rem;
}

.crumb {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.history {
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
}

.history li {
  padding: 0.25rem 0;
  font-family: var(--mono);
  font-size: 0.95rem;
}

.site-footer {
  margin-top: auto;
  padding: 1.45rem 0 1.7rem;
  background: var(--sea);
  color: #c5d4dc;
  font-size: 0.95rem;
  border-top: 6px solid var(--signal);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.7rem 1.5rem;
}

.site-footer a {
  color: #fff;
}

.prose h2 {
  margin: 2rem 0 0.6rem;
  font-size: 1.55rem;
}

.prose h3 {
  margin: 1.4rem 0 0.45rem;
  font-size: 1.2rem;
}

.prose ul {
  max-width: 62ch;
}

.hero-live {
  margin-bottom: 2rem;
}

.next-steps {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid #4d6672;
}

.next-steps p {
  margin: 0 0 0.45rem;
  color: #d5e2e8;
}

.next-steps a {
  color: #ffd36a;
}

.axis {
  margin-top: 1rem;
}

.axis-track {
  position: relative;
  height: 2.4rem;
  margin: 0.45rem 0 0.7rem;
  border-radius: 2px;
  background: linear-gradient(90deg, #16343e, #25515e);
}

.axis-mark {
  position: absolute;
  top: 0.2rem;
  bottom: 0.2rem;
  width: 3px;
  margin-left: -1.5px;
  background: var(--signal);
}

.axis-labels {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.axis-row {
  display: grid;
  grid-template-columns: minmax(7rem, 0.4fr) minmax(0, 1fr);
  gap: 0.5rem 0.8rem;
  align-items: baseline;
}

.axis-name {
  color: #9eb4be;
  font-size: 0.88rem;
}

.axis-clock {
  font-family: var(--display);
  font-size: 1.05rem;
}

.save-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.75rem;
  align-items: end;
}

.save-row > * {
  flex: 1 1 10rem;
}

.saved-lists {
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
}

.saved-lists li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.7rem;
  align-items: center;
  padding: 0.3rem 0;
}

.ticks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 0.7rem;
}

.tick {
  padding: 0.55rem 0.5rem;
  border: 1px solid #4d6672;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.04);
}

.tick-n {
  display: block;
  font-family: var(--display);
  font-size: 1.7rem;
  line-height: 1.1;
}

.tick-l {
  color: #9eb4be;
  font-size: 0.82rem;
}

@media (max-width: 640px) {
  .ticks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .axis-row {
    grid-template-columns: 1fr;
  }

  .result-card .actions,
  .result-card .actions button,
  .actions button,
  .actions .button {
    width: 100%;
  }

  input[type="date"],
  input[type="time"],
  select {
    max-width: 100%;
  }

  body {
    padding-left: 7px;
  }

  body::before {
    width: 7px;
  }

  .row-2,
  .row-3 {
    grid-template-columns: 1fr;
  }

  .row-2 label,
  .row-3 label {
    min-height: 0;
  }

  .mark {
    width: 2.4rem;
    height: 2.4rem;
  }

  h1 {
    font-size: clamp(1.85rem, 8vw, 2.3rem);
  }

  .masthead-inner,
  .footer-inner,
  .wrap {
    width: min(var(--max), calc(100% - 1.7rem));
  }
}

.continue-box {
  margin: 0 0 2rem;
  padding: 1.15rem 1.2rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-top: 7px solid var(--pine);
  box-shadow: var(--shadow);
}

.continue-box[hidden] {
  display: none;
}

.continue-box h2 {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
}

.continue-box > p {
  margin: 0;
  color: var(--ink-soft);
}

.continue-list {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.continue-list li {
  padding: 0.7rem 0 0;
  margin-top: 0.7rem;
  border-top: 1px solid var(--rule);
}

.continue-list li:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.continue-list a {
  font-family: var(--display);
  font-weight: 700;
  text-decoration: none;
}

.continue-list p {
  margin: 0.25rem 0 0;
  color: var(--ink-soft);
}
