/* PayslipMaker support site
   A plain, ledger-like design: this is a notice board for an existing
   piece of accounting software, not a product marketing page. */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,500;0,600;0,700;1,500&family=Public+Sans:wght@400;500;600;700&display=swap');

:root {
  --paper: #F6F2E8;
  --paper-raised: #FBF9F3;
  --line: #DCD3BB;
  --ink: #262420;
  --ink-soft: #5B5648;
  --forest: #1F4A3D;
  --forest-dark: #16342B;
  --rust: #9C5321;
  --rust-bg: #F3E4D2;
  --focus: #1C4E80;
  --radius: 3px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Public Sans', -apple-system, Segoe UI, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

h1, h2, h3 {
  font-family: 'Lora', Georgia, serif;
  font-weight: 600;
  color: var(--forest-dark);
  line-height: 1.25;
  margin: 0 0 0.5em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.35rem; margin-top: 2.2em; }
h3 { font-size: 1.1rem; margin-top: 1.6em; }

p { margin: 0 0 1em; }

a {
  color: var(--focus);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:hover { color: var(--forest-dark); }
a:focus-visible,
button:focus-visible,
.step-list a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

strong { color: var(--ink); }

ul, ol { padding-left: 1.3em; }
li { margin-bottom: 0.4em; }

hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2.2em 0;
}

code {
  font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.1em 0.35em;
  font-size: 0.9em;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--forest-dark);
  color: #fff;
  padding: 0.6em 1em;
  z-index: 100;
}
.skip-link:focus {
  left: 1em;
  top: 1em;
}

/* Masthead */
.masthead {
  border-bottom: 1px solid var(--line);
  background: var(--paper-raised);
}

.masthead-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.4em 1.5em 0;
}

.wordmark {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4em 1em;
  margin-bottom: 1.1em;
}

.wordmark .name {
  font-family: 'Lora', Georgia, serif;
  font-weight: 700;
  font-size: 2.6rem;
  color: var(--forest-dark);
  text-decoration: none;
}

.wordmark .tagline {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

nav.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2em 1.4em;
}

nav.site-nav a {
  display: inline-block;
  padding: 0.6em 0 0.7em;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
}

nav.site-nav a:hover {
  color: var(--forest-dark);
}

nav.site-nav a[aria-current="page"] {
  color: var(--forest-dark);
  border-bottom-color: var(--forest);
  font-weight: 600;
}

/* Main content column */
main {
  max-width: 800px;
  margin: 0 auto;
  padding: 2.6em 1.5em 4em;
}

.page-header {
  margin-bottom: 1.6em;
}

.page-header .kicker {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 0.3em;
}

.lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* Notice box: used for the discontinuation / redirection notice */
.notice {
  border: 1px solid var(--line);
  border-left: 4px solid var(--forest);
  background: var(--paper-raised);
  padding: 1.1em 1.3em;
  border-radius: var(--radius);
  margin: 1.6em 0;
}

.notice p:last-child { margin-bottom: 0; }

.notice.amber {
  border-left-color: var(--rust);
  background: var(--rust-bg);
}

/* Larger, hero-like variant for the single most important notice on a page */
.notice.large {
  border-left-width: 6px;
  padding: 1.6em 1.8em;
  margin: 1.8em 0 2.2em;
  box-shadow: 0 2px 10px rgba(31, 74, 61, 0.08);
}

.notice.large p:first-child {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--forest-dark);
  line-height: 1.35;
  max-width: 52ch;
}

.notice.large .btn {
  margin-top: 0.2em;
}

/* Primary button, used sparingly */
.btn {
  display: inline-block;
  background: var(--forest);
  color: #fff !important;
  text-decoration: none;
  padding: 0.7em 1.3em;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid var(--forest-dark);
}
.btn:hover { background: var(--forest-dark); }

.btn.secondary {
  background: transparent;
  color: var(--forest-dark) !important;
  border: 1px solid var(--forest);
}
.btn.secondary:hover { background: var(--paper-raised); }

/* Table (price list) */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 1.4em 0;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 620px;
  font-size: 0.94rem;
}

thead th {
  text-align: left;
  background: var(--paper-raised);
  border-bottom: 1px solid var(--line);
  padding: 0.7em 0.9em;
  font-family: 'Lora', Georgia, serif;
  font-weight: 600;
  color: var(--forest-dark);
}

tbody td {
  padding: 0.65em 0.9em;
  border-bottom: 1px solid var(--line);
}

tbody tr:last-child td { border-bottom: none; }
tbody tr:nth-child(even) { background: rgba(31, 74, 61, 0.035); }

td.num { text-align: right; font-variant-numeric: tabular-nums; }

.table-note {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: -0.6em;
}

/* Numbered step list (genuinely sequential instructions) */
.step-list {
  list-style: none;
  padding: 0;
  margin: 1.8em 0;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 2.6em 1fr;
  gap: 0 1em;
  padding: 1.4em 0;
  border-top: 1px solid var(--line);
}

.step:first-child { border-top: none; }

.step-num {
  font-family: 'Lora', Georgia, serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--forest);
}

.step-body h3 {
  margin-top: 0;
  font-size: 1rem;
}

.step img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: 0.6em;
  display: block;
}

/* Simple numbered instructions (short lists, not the image sequence) */
ol.instructions {
  padding-left: 1.4em;
}
ol.instructions li { margin-bottom: 0.6em; }

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 2em;
}
.site-footer-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.6em 1.5em 2.2em;
  color: var(--ink-soft);
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em 1.6em;
  justify-content: space-between;
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  h1 { font-size: 1.6rem; }
  .step { grid-template-columns: 2em 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
