/* Generated for consulting.onsomm.com — portfolio layout: the photographs carry the identity; tokens (--ink etc.) are set per site in base.html */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.1; margin: 0 0 0.4em; }
h1 { font-size: clamp(2.4rem, 1.4rem + 4vw, 4rem); }
h2 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; max-width: 64ch; }
address { font-style: normal; }
.muted { color: var(--muted); }
.wrap { width: min(100% - 3rem, 76rem); margin-inline: auto; }
.section { padding-block: 4rem 0; }
.section-tight { padding-block: 1rem 2rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .5rem 1rem; }
.skip:focus { left: 1rem; z-index: 10; }
.lede { font-size: 1.25rem; max-width: 56ch; }
.page-head { padding-block: 3rem 1rem; }

/* masthead: the name and the four links, nothing else */
.masthead { background: var(--paper); }
.masthead-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: .75rem 2rem; padding-block: 1.5rem; }
.brand { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; color: var(--ink); text-decoration: none; }
.masthead nav { display: flex; gap: 1.5rem; margin-inline-start: auto; }
.masthead nav a { color: var(--ink); text-decoration: none; padding-block: .25rem; border-bottom: 1px solid transparent; }
.masthead nav a:hover { color: var(--accent); }
.masthead nav a[aria-current="page"] { border-bottom-color: var(--ink); }
@media (max-width: 640px) { .masthead nav { width: 100%; margin-inline-start: 0; gap: 1.25rem; } }

/* cover: the one loud element — a full-bleed photograph with the headline beneath it on paper */
.cover-media img { width: 100%; aspect-ratio: 3 / 2; max-height: 82vh; object-fit: cover; background: var(--rule); }
.cover-text { padding-block: 2.5rem 1rem; }
.cover-text h1 { max-width: 20ch; }
.cover-text.align-center { text-align: center; }
.cover-text.align-center h1, .cover-text.align-center .lede { margin-inline: auto; }
.cover-text-only .cover-text { padding-block: 4rem 2rem; }

/* work grid: photographs with a title beneath, no cards */
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.5rem; }
.work-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.5rem 2rem; grid-template-columns: 1fr; }
@media (min-width: 40em) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60em) { .work-grid { grid-template-columns: repeat(3, 1fr); } }
.work-grid a { display: block; color: inherit; text-decoration: none; }
.work-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: .75rem; background: var(--rule); }
.work-grid a:hover img { opacity: .92; }
.work-grid a:hover .work-title { color: var(--accent); }
.work-title { display: block; font-family: var(--font-display); font-size: 1.3rem; }
.work-meta { display: block; color: var(--muted); font-size: .95rem; }

/* featured applications: the stack as a quiet line under each summary */
.featured .lede { margin-bottom: 1.5rem; }
.stack { color: var(--muted); font-size: .95rem; margin: .5rem 0 0; }

/* statement: one sentence in the display face */
.statement p { font-family: var(--font-display); font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); line-height: 1.3; max-width: 32ch; }

/* services and facts as definition lists */
.service-list, .facts { margin: 0; border-top: 1px solid var(--rule); }
.service-row, .facts > div { display: grid; grid-template-columns: minmax(9rem, 1fr) 3fr; gap: .5rem 2rem; padding-block: 1.25rem; border-bottom: 1px solid var(--rule); }
.service-row dt { font-family: var(--font-display); font-size: 1.25rem; }
.facts dt { color: var(--muted); }
dd { margin: 0; }
dd p:last-child { margin-bottom: 0; }
@media (max-width: 640px) { .service-row, .facts > div { grid-template-columns: 1fr; gap: .15rem; } }

/* headings centred (theme.align_headings: center, the layout default; a site sets left to keep everything ragged-left) */
.headings-center .page-head, .headings-center .statement, .headings-center .contact-line, .headings-center .section > h2, .headings-center .project-link { text-align: center; }
.headings-center .page-head p, .headings-center .page-head h1, .headings-center .statement p, .headings-center .contact-line p { margin-inline: auto; }
.headings-center .section-head { flex-direction: column; align-items: center; text-align: center; gap: .25rem; margin-bottom: 2rem; }
.headings-center .featured .lede { text-align: center; margin-inline: auto; }

/* project pages: the photographs first, large and unframed; facts and story after */
.photo-sequence { display: grid; gap: 2.5rem; margin-block: 1rem 3rem; }
.photo { margin: 0; width: min(100% - 3rem, 76rem); margin-inline: auto; }
.photo.wide { width: 100%; }
.photo img { width: 100%; }
.photo figcaption { margin-top: .6rem; font-size: .95rem; color: var(--muted); }
.photo.wide figcaption { width: min(100% - 3rem, 76rem); margin-inline: auto; }
.project-link { font-family: var(--font-display); font-size: 1.25rem; margin-block: 0 2.5rem; }
.project-body { display: grid; gap: 2rem 4rem; grid-template-columns: 1fr; }
@media (min-width: 60em) { .project-body { grid-template-columns: 1fr 2fr; } }
.prose p { font-size: 1.1rem; }
.project-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 2rem; margin-top: 2rem; border-top: 1px solid var(--rule); }
.project-nav a { text-decoration: none; font-family: var(--font-display); font-size: 1.2rem; }
.project-nav .muted { display: block; font-family: var(--font-body); font-size: .9rem; }

/* studio */
.studio-grid { display: grid; gap: 2rem 4rem; grid-template-columns: 1fr; padding-block: 1rem 2rem; }
@media (min-width: 60em) { .studio-grid { grid-template-columns: 3fr 2fr; } }
.portrait { margin: 0; }
.portrait figcaption { margin-top: .6rem; font-size: .95rem; color: var(--muted); }
.principles { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.principles li { border-top: 1px solid var(--ink); padding-top: 1rem; }
.team { list-style: none; padding: 0; margin: 0; display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.team img { width: 12rem; aspect-ratio: 1; object-fit: cover; margin-bottom: .75rem; }
.team-name { display: block; font-family: var(--font-display); font-size: 1.3rem; }
.team .muted { display: block; }

/* contact line on the home page */
.contact-line { border-top: 1px solid var(--rule); padding-block: 3rem 0; }
.contact-line p { font-size: 1.15rem; }

/* footer */
.footer { border-top: 1px solid var(--rule); margin-top: 4rem; padding-block: 2.5rem 1.5rem; }
.footer-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.footer p { margin-bottom: .35em; }
.footer-name { font-family: var(--font-display); font-size: 1.3rem; }
.fineprint { margin-top: 2rem; font-size: .9rem; color: var(--muted); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
