/*
Theme Name: de Bass
Theme URI: https://debass.co.uk
Author: James de Bass
Description: A quiet, single-page theme for an independent consultancy. No external requests, no tracking, system fonts only.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: debass
*/

:root {
  --ink:        #16232f;
  --ink-soft:   #4d5f70;
  --muted:      #7a8894;
  --rule:       #dfd9d0;
  --bg:         #fbfaf7;
  --bg-alt:     #f4f1ec;
  --accent:     #34625d;
  --accent-dk:  #24463f;
  --measure:    41rem;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (min-width: 48rem) {
  body { font-size: 1.125rem; }
}

/* ---------- shared layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- masthead ---------- */

.masthead {
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
}

.masthead__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.masthead__name {
  margin: 0;
  font-family: Iowan Old Style, Palatino, "Palatino Linotype", Georgia, serif;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.masthead__name a { color: var(--ink); text-decoration: none; }

.masthead__nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9375rem;
}

.masthead__nav a {
  color: var(--ink-soft);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.masthead__nav a:hover,
.masthead__nav a:focus { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- page body ---------- */

.page-content { padding: 4rem 1.5rem 1rem; }

@media (min-width: 48rem) {
  .page-content { padding: 6rem 1.5rem 2rem; }
}

.page-content > * { margin-left: auto; margin-right: auto; }

h1, h2, h3 {
  font-family: Iowan Old Style, Palatino, "Palatino Linotype", Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.005em;
}

h1 {
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.375rem, 3vw, 1.625rem);
  margin: 3.5rem 0 1rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--rule);
}

h3 {
  font-size: 1.0625rem;
  margin: 2rem 0 0.35rem;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 0.005em;
}

p { margin: 0 0 1.25rem; }

/* The standfirst — first paragraph after the h1 */
.page-content > .standfirst,
.page-content > h1 + p {
  font-size: clamp(1.1875rem, 2.5vw, 1.375rem);
  line-height: 1.5;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover, a:focus { color: var(--accent-dk); }

strong { font-weight: 650; }

ul { margin: 0 0 1.25rem; padding-left: 1.15rem; }
li { margin-bottom: 0.4rem; }
li::marker { color: var(--muted); }

hr, .wp-block-separator {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 3rem 0;
}

/* ---------- callout (contact block) ---------- */

.callout {
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 1.75rem;
  margin: 1.5rem 0 2rem;
}

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

.callout .email {
  font-family: Iowan Old Style, Palatino, "Palatino Linotype", Georgia, serif;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  word-break: break-word;
}

/* ---------- footer ---------- */

.colophon {
  margin-top: 4rem;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.875rem;
}

.colophon p { margin: 0 0 0.35rem; }

/* ---------- accessibility ---------- */

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed; top: 0.5rem; left: 0.5rem;
  width: auto; height: auto; clip: auto;
  z-index: 100;
  background: var(--ink); color: #fff;
  padding: 0.6rem 1rem; border-radius: 3px;
}

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

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