/* Plain document. Arial, black on white, blue links, generous whitespace.
   No boxes, no bars, no uppercase labels, no rules except between sections. */

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

:root {
  --ink: #000;
  --muted: #666;
  --paper: #fff;
  --link: #1155cc;
  --visited: #6b3fa0;
  --hair: 1px solid #ddd;
  --measure: 44rem;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

h1,
h2,
h3,
h4 {
  margin: 1.6em 0 0.5em;
  font-weight: 700;
  line-height: 1.25;
}

h1 {
  font-size: 1.7rem;
  margin-top: 0;
}

h2 {
  font-size: 1.3rem;
}

h3 {
  font-size: 1.1rem;
}

p,
ul,
ol,
dl {
  margin: 0 0 1em;
}

ul,
ol {
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.3em;
}

a {
  color: var(--link);
  text-decoration: underline;
}

a:visited {
  color: var(--visited);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

button {
  font: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ---------- skip link ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  position: static;
  display: inline-block;
  margin: 1rem;
}

/* ---------- page frame ---------- */

.site-header {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2rem 1.5rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

.brand,
.brand:visited {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

/* The two-letter monogram is decoration; a document does not need it. */
.brand-mark {
  display: none;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.95rem;
}

.site-header nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

main {
  display: block;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 4rem;
}

.site-footer {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1.5rem;
  border-top: var(--hair);
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

.site-footer p {
  margin: 0;
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------- small print, not shouty labels ---------- */

.eyebrow,
.status,
.section-heading,
.project-role,
.story-number,
.meta-row,
.card-proof,
.proof-item,
.contact-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.eyebrow,
.status {
  display: block;
  margin: 0 0 0.2rem;
}

.section-heading {
  margin-bottom: 0.3rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.2rem;
}

/* ---------- sections: whitespace, one light rule ---------- */

.page-header,
.project-header,
.hero {
  margin-bottom: 2rem;
}

.section-block,
.about-slice,
.contact-slice,
.project-end {
  border-top: var(--hair);
  padding-top: 1.75rem;
  margin-top: 1.75rem;
}

.page-header + .section-block,
.hero + .section-block,
.project-header + .section-block,
.page-header + .about-slice,
.hero + .contact-slice {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

/* ---------- buttons read as links ---------- */

.button,
.button:visited {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: var(--link);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.actions,
.project-links,
.utility-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.filters button {
  padding: 0.2rem 0.6rem;
  border: 1px solid #ccc;
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.9rem;
  cursor: pointer;
}

.filters button[aria-pressed="true"] {
  background: #f1f3f4;
  border-color: #999;
  font-weight: 700;
}

.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

/* ---------- decoration removed ---------- */

.project-visual,
.project-hero-visual,
.portrait-placeholder,
.live-dot,
.brand-mark {
  display: none;
}

.hero-panel,
.hero-detail {
  margin-top: 1rem;
}

/* ---------- project list ---------- */

.project-grid,
.project-grid-index,
.now-grid,
.proof-strip,
.contact-layout {
  display: block;
}

.project-card {
  margin: 0 0 1.75rem;
  padding: 0;
  border: 0;
}

/* Each card is one big <a>; only the title should look like a link. */
.project-card > a,
.project-card > a:visited {
  display: block;
  color: var(--ink);
  text-decoration: none;
}

.project-card > a h3 {
  margin: 0 0 0.3rem;
  color: var(--link);
  text-decoration: underline;
}

.project-card > a:visited h3 {
  color: var(--visited);
}

.project-card p {
  margin: 0 0 0.3rem;
}

.project-card[hidden] {
  display: none;
}

.card-proof,
.proof-item {
  display: block;
  margin: 0 0 0.75rem;
}

.now-grid > *,
.contact-layout > * {
  margin-bottom: 1.5rem;
}

/* ---------- lists ---------- */

.story-list,
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}

.story-row,
.timeline li {
  margin-bottom: 1.25rem;
}

.story-number {
  display: block;
  margin-bottom: 0.2rem;
}

/* ---------- contact ---------- */

.contact-email {
  margin: 0.75rem 0;
  font-size: 1.05rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

/* ---------- notes ---------- */

.editorial-note,
.noscript-note {
  background: #f8f9fa;
  border-left: 3px solid #ddd;
  padding: 0.6rem 0.9rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.not-found {
  margin-top: 1rem;
}

/* Accent classes carry no colour in this design. */
[class*="accent-"] {
  border-color: transparent;
}

@media (max-width: 34rem) {
  .site-header,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
