/* Doran Digital stylesheet. Colours are set once here so they are easy to change. */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/plus-jakarta-sans-600.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/plus-jakarta-sans-700.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/inter-500.woff2") format("woff2"); }

:root {
  --bg: #FAF9F6;
  --bg-alt: #F1EFEA;
  --ink: #2B3740;          /* body text (charcoal family) */
  --charcoal: #36454F;     /* headings and dark surfaces, same as the logo D */
  --muted: #4A5762;        /* secondary text */
  --accent: #147A39;       /* deep green: buttons, links, icons (passes WCAG AA) */
  --accent-dark: #0F5E2B;  /* deep green on hover */
  --glow: #39FF14;         /* logo green: decoration only, never text, never behind white text (one exception: the button in the dark contact band, with charcoal text) */
  --on-dark: #FFFFFF;      /* text on the charcoal band */
  --on-dark-soft: #E4E9EC; /* secondary text on the charcoal band */
  --line: #E2DFD7;
  --font-head: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

h1, h2, h3 { font-family: var(--font-head); font-weight: 700; color: var(--charcoal); line-height: 1.2; margin: 0 0 1rem; letter-spacing: -0.01em; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: .5rem; }
p { margin: 0 0 1rem; }

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 44rem; }

a { color: var(--accent); text-underline-offset: .15em; }
a:hover { color: var(--accent-dark); }
a:focus-visible, .button:focus-visible, .menu-toggle:focus-visible { outline: 3px solid var(--charcoal); outline-offset: 3px; box-shadow: 0 0 0 3px var(--glow); border-radius: .25rem; }

/* Buttons */
.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 500;
  padding: .75rem 1.4rem;
  border-radius: .5rem;
  line-height: 1.3;
  text-align: center;
}
.button:hover { background: var(--accent-dark); color: #fff; }
.button-small { padding: .5rem 1rem; font-size: .95rem; }
.text-link { font-weight: 500; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-bar { display: flex; align-items: center; gap: 1.5rem; padding-top: .9rem; padding-bottom: .9rem; }
.brand { display: flex; align-items: center; text-decoration: none; margin-right: auto; }
.brand-full { display: block; height: 3.5rem; width: auto; }

.menu-toggle {
  display: none;
  background: none; border: 1px solid var(--line); border-radius: .5rem;
  color: var(--ink); font: inherit; font-weight: 500; font-size: .95rem;
  padding: .45rem .8rem; cursor: pointer;
}
.nav-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; }
.nav-links a { color: var(--charcoal); text-decoration: none; font-weight: 500; font-size: .98rem; }
.nav-links a:hover { color: var(--accent); text-decoration: underline; }

/* Sections */
section { padding: 3.5rem 0; scroll-margin-top: 5.5rem; }
.alt { background: var(--bg-alt); }
.section-intro { color: var(--muted); max-width: 40rem; margin-bottom: 2rem; }

.hero { padding: 4rem 0 3.5rem; }
.hero h1 { font-size: 2.2rem; max-width: 36rem; }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 38rem; }
.hero-grid { display: block; }
.hero-mark { display: none; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin: 1.75rem 0 1.5rem; }
.small { font-size: .95rem; color: var(--muted); }

/* Small green bars (logo green, decoration only) */
h2::after, .prose h1::after { content: ""; display: block; width: 3rem; height: 4px; border-radius: 2px; background: var(--glow); margin-top: .6rem; }
.cards .card h3::before { content: ""; display: block; width: 1.75rem; height: 3px; border-radius: 2px; background: var(--glow); margin-bottom: .75rem; }

/* Cards */
.cards { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: .9rem; padding: 1.5rem; }
.card p { margin: 0; color: var(--muted); }
.icon { width: 2.5rem; height: 2.5rem; color: var(--accent); margin-bottom: 1rem; display: block; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.steps li { border-top: 4px solid var(--glow); padding-top: 1rem; }
.steps p { margin: 0; color: var(--muted); }

/* Contact band (dark) */
.contact { background: var(--charcoal); color: var(--on-dark-soft); }
.contact h2 { color: var(--on-dark); }
.contact .section-intro { color: var(--on-dark-soft); }
.contact p { color: var(--on-dark-soft); }
.contact a { color: var(--on-dark); }
.contact a:hover { color: var(--glow); }
.contact .small { color: var(--on-dark-soft); }
.contact-mark { display: block; height: 4.5rem; width: auto; margin-bottom: 1.25rem; }
.contact .button { background: var(--glow); color: var(--charcoal); font-weight: 600; margin-bottom: .5rem; }
.contact .button:hover { background: #FFFFFF; color: var(--charcoal); }
.contact a:focus-visible, .contact .button:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 3px; box-shadow: none; }
.contact-email { margin: 1rem 0 1.5rem; }
.contact-email a { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; text-decoration: underline; text-decoration-thickness: 2px; word-break: break-word; }

/* Our work: one card per project, add more cards inside .work-list */
.work-list { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.work-card { display: grid; grid-template-columns: 1fr; gap: 1.5rem; padding: 1.25rem; align-items: center; }
.work-card .work-text p { color: var(--muted); }
.work-card .work-text p:last-child { margin-bottom: 0; }
.browser { border: 1px solid var(--line); border-radius: .7rem; overflow: hidden; background: var(--bg-alt); }
.browser-bar { display: flex; gap: .35rem; padding: .55rem .7rem; border-bottom: 1px solid var(--line); }
.browser-bar span { width: .6rem; height: .6rem; border-radius: 50%; background: var(--line); }
.browser img { display: block; width: 100%; height: auto; }

/* Privacy page */
.prose h1 { margin-bottom: 1.25rem; }
.prose ul { padding-left: 1.25rem; margin: 0 0 1rem; }

/* Footer */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 1.5rem 0; font-size: .95rem; color: var(--muted); }
.footer-bar { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; }
.footer-contact { display: flex; flex-wrap: wrap; gap: .25rem .6rem; }
.footer-sep { display: none; }
.footer-bar a { color: var(--accent); }
.footer-logo { display: block; width: auto; height: 2.25rem; flex: none; }

/* Phone: collapsible menu (needs the small script; without it the links simply show) */
@media (max-width: 47.99rem) {
  .js .menu-toggle { display: inline-block; }
  .header-bar { flex-wrap: wrap; gap: .6rem; padding-top: .7rem; padding-bottom: .7rem; }
  .brand-full { height: 2.75rem; }
  section { scroll-margin-top: 4.5rem; }
  .header-bar nav { flex-basis: 100%; order: 5; }
  .nav-links { flex-direction: column; gap: 0; border-top: 1px solid var(--line); margin-top: .35rem; }
  .nav-links a { display: block; padding: .8rem 0; }
  .js .nav-links { display: none; }
  .js .nav-links.open { display: flex; }
}

@media (min-width: 48rem) {
  h1 { font-size: 2.6rem; }
  h2 { font-size: 2rem; }
  .hero h1 { font-size: 3rem; }
  .hero { padding: 6rem 0 5rem; }
  section { padding: 5rem 0; }
  .cards { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .work-card { grid-template-columns: 1.6fr 1fr; gap: 2.5rem; padding: 1.5rem; }
  .hero-grid { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 3rem; }
  .hero-mark { display: block; width: 17.5rem; height: auto; }
  .footer-bar { flex-direction: row; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; }
  .footer-sep { display: inline; }
  .footer-contact { gap: 0 .6rem; }
  .footer-privacy { margin-left: auto; }
}

@media (min-width: 64rem) {
  .hero-mark { width: 21rem; }
}
