:root{--accent:#2f6f3e;--on-accent:#ffffff;--accent-text:#2f6f3e;--soft:#e6ece5;--button:#2f6f3e;--on-button:#ffffff}
/* The sites' stylesheet: one for the three themes (fields, market, studio), driven by custom
   properties; the site's colours come first, computed by the renderer (style.rs). Phone first,
   system fonts only, no script. */

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

:root {
  color-scheme: light;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Charter, "Bitstream Charter", "Noto Serif", Georgia, serif;
  --display: Didot, "Bodoni 72", "Bodoni MT", "Noto Serif Display", "Iowan Old Style", Georgia, serif;
  --paper: #fbf8f3;
  --surface: #ffffff;
  --ink: #24201b;
  --muted: #5d554c;
  --line: #e6ddd0;
  --foot: #2a2420;
  --foot-ink: #f4eee6;
  --heading: var(--serif);
  --heading-weight: 600;
  --heading-spacing: -0.01em;
  --radius: 18px;
  --radius-sm: 10px;
  --radius-button: 999px;
  --shadow: 0 1px 2px rgb(40 30 20 / 6%), 0 8px 24px rgb(40 30 20 / 8%);
  --gap: clamp(1rem, 0.6rem + 1.5vw, 2rem);
  --section: clamp(3rem, 2rem + 4vw, 6rem);
}

.theme-studio {
  --paper: #fafaf8;
  --surface: #ffffff;
  --ink: #1a1a1a;
  --muted: #595959;
  --line: #d9d9d4;
  --foot: #111111;
  --foot-ink: #ededea;
  --heading: var(--display);
  --heading-weight: 400;
  --heading-spacing: -0.015em;
  --radius: 2px;
  --radius-sm: 2px;
  --radius-button: 2px;
  --shadow: none;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

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

h1,
h2,
h3 {
  font-family: var(--heading);
  font-weight: var(--heading-weight);
  letter-spacing: var(--heading-spacing);
  line-height: 1.15;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.2rem, 1.5rem + 3.2vw, 3.8rem);
}

h2 {
  font-size: clamp(1.65rem, 1.25rem + 1.7vw, 2.5rem);
}

h3 {
  font-size: 1.3rem;
  line-height: 1.25;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--accent-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-sm);
}

.skip:focus {
  top: 1rem;
}

.wrap {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}

.narrow {
  width: min(100% - 2rem, 44rem);
}

/* A comfortable line length, aligned with the page's title. */
.measure {
  max-width: 44rem;
}

.prose > :last-child {
  margin-bottom: 0;
}

.prose ul {
  margin: 0 0 1em;
  padding-left: 1.2em;
}

.prose li {
  margin-bottom: 0.3em;
}

.prose li::marker {
  color: var(--accent-text);
}

/* Header, menu and languages */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

/* On a phone: the name and the languages, the menu on a row of its own that scrolls sideways;
   wider: all three on one row. */
.header-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 1rem;
  min-height: 4rem;
}

.header-in .menu {
  order: 3;
  flex-basis: 100%;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.brand-logo {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.brand-name {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: var(--heading-spacing);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.langs ul,
.menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.langs ul {
  gap: 0.15rem;
}

.langs a {
  display: inline-block;
  padding: 0.35rem 0.55rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.langs a[aria-current] {
  color: var(--ink);
  background: var(--soft);
}

.menu ul {
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 0.6rem;
  margin-inline: -0.5rem;
}

.menu ul::-webkit-scrollbar {
  display: none;
}

.menu a {
  display: inline-block;
  white-space: nowrap;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-button);
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.menu a:hover {
  background: var(--soft);
}

.menu a[aria-current="page"] {
  background: var(--soft);
  color: var(--accent-text);
  font-weight: 650;
}

@media (min-width: 56rem) {
  .header-in {
    display: grid;
    grid-template-columns: auto 1fr auto;
    min-height: 4.75rem;
  }

  .header-in .menu {
    order: 0;
    justify-self: end;
  }

  .menu ul {
    padding-bottom: 0;
    margin-inline: 0;
  }
}

.theme-studio .menu a,
.theme-studio .langs a {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
}

.theme-studio .menu a[aria-current="page"],
.theme-studio .menu a:hover {
  background: none;
  text-decoration: underline;
  text-underline-offset: 0.5em;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.9rem;
  padding: 0.75rem 1.5rem;
  border: 0;
  border-radius: var(--radius-button);
  background: var(--button);
  color: var(--on-button);
  font: inherit;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.button:hover {
  filter: brightness(1.08) saturate(1.05);
  transform: translateY(-1px);
}

.theme-studio .button {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  padding-inline: 1.8rem;
}

/* Blocks */

.block {
  padding-block: var(--section);
}

.block + .block {
  padding-top: 0;
}

.block.soft,
.block + .block.soft {
  padding-top: var(--section);
  background: var(--soft);
}

.block.soft + .block {
  padding-top: var(--section);
}

.block-title {
  margin-bottom: clamp(1.25rem, 1rem + 1vw, 2rem);
}

.page-head {
  padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) clamp(1.5rem, 1rem + 2vw, 3rem);
}

.page-head h1 {
  margin: 0;
}

.page-head + .block:not(.soft) {
  padding-top: 0;
}

/* Hero */

.hero {
  padding-block: clamp(2rem, 1rem + 4vw, 5.5rem);
  background: var(--soft);
}

.hero-in {
  display: grid;
  gap: clamp(1.5rem, 1rem + 3vw, 4rem);
  align-items: center;
}

.hero-title {
  font-size: clamp(2.3rem, 1.5rem + 3.6vw, 4.2rem);
}

.hero-lead {
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  color: var(--muted);
  max-width: 36rem;
}

.hero-actions {
  margin: 1.75rem 0 0;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@media (min-width: 56rem) {
  .hero.with-image .hero-in {
    grid-template-columns: 1.05fr 1fr;
  }
}

.theme-studio .hero {
  background: none;
  border-bottom: 1px solid var(--line);
}

.theme-studio .hero-title {
  font-size: clamp(2.6rem, 1.6rem + 4.4vw, 5rem);
  line-height: 1.05;
}

/* Text and pictures */

.image-block figure {
  margin: 0;
}

.image-block img {
  width: 100%;
  max-height: 80vh;
  object-fit: cover;
  border-radius: var(--radius);
}

figcaption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.gallery-grid,
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--gap);
}

.gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

.gallery-grid figure {
  margin: 0;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

/* Cards: features and products */

.cards {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 1rem + 0.8vw, 1.75rem);
  box-shadow: var(--shadow);
}

.soft .card {
  border-color: transparent;
}

.feature h3::before {
  content: "";
  display: block;
  width: 2.25rem;
  height: 0.25rem;
  margin-bottom: 1rem;
  border-radius: 2px;
  background: var(--accent);
}

/* Products with and without a picture side by side keep their own heights. */
.products .cards {
  align-items: start;
}

.product {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.product img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.product-body {
  padding: 1.25rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.product-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.product h3 {
  margin: 0;
}

.product h3 a {
  color: inherit;
  text-decoration: none;
}

.price {
  margin: 0;
  font-weight: 700;
  color: var(--accent-text);
  white-space: nowrap;
}

.product .prose {
  color: var(--muted);
}

.product.linked {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.product.linked:hover {
  transform: translateY(-2px);
}

.product.linked:hover h3 a {
  text-decoration: underline;
}

/* The whole card follows its name's link; links inside its text stay their own. */
.stretch::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.product.linked .prose a {
  position: relative;
  z-index: 1;
}

.theme-studio .card {
  border-color: var(--line);
}

.theme-studio .feature h3::before {
  width: 1.5rem;
  height: 1px;
}

/* Quote */

.quote {
  margin: 0;
  text-align: center;
}

.quote blockquote {
  margin: 0 0 1.25rem;
  font-family: var(--heading);
  font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.1rem);
  line-height: 1.35;
  font-style: italic;
  letter-spacing: var(--heading-spacing);
}

.quote blockquote::before {
  content: "\201C";
  content: "\201C" / "";
  display: block;
  font-family: var(--serif);
  font-size: 4rem;
  line-height: 0.8;
  color: var(--accent);
  font-style: normal;
}

.quote figcaption {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
}

/* Call to action */

.cta-in {
  text-align: center;
  padding: clamp(2rem, 1.5rem + 3vw, 4rem) clamp(1.25rem, 1rem + 3vw, 4rem);
  border-radius: var(--radius);
  background: var(--soft);
}

.cta-in .prose {
  max-width: 38rem;
  margin: 0 auto 1.75rem;
  color: var(--muted);
}

.theme-studio .cta-in {
  background: var(--ink);
  color: var(--paper);
}

.theme-studio .cta-in .prose {
  color: inherit;
  opacity: 0.85;
}

.theme-studio .cta-in a:not(.button) {
  color: inherit;
}

/* Contact */

.contact-in {
  display: grid;
  gap: clamp(2rem, 1.5rem + 3vw, 4rem);
}

@media (min-width: 56rem) {
  .contact-in.with-form {
    grid-template-columns: 1fr 1.1fr;
    align-items: start;
  }
}

.contact-list {
  margin: 1.5rem 0;
  display: grid;
  gap: 1rem;
}

.contact-list div {
  display: grid;
  gap: 0.1rem;
}

.contact-list dt {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-list dd {
  margin: 0;
}

.map-link {
  font-weight: 600;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem);
  box-shadow: var(--shadow);
}

.contact-form > :last-child {
  margin-bottom: 0;
}

.field {
  display: grid;
  gap: 0.35rem;
  margin: 0 0 1.1rem;
}

.field label {
  font-weight: 600;
  font-size: 0.95rem;
}

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #8a847c;
  border-color: color-mix(in srgb, var(--ink) 45%, var(--paper));
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  min-height: 2.9rem;
}

.field textarea {
  resize: vertical;
  min-height: 9rem;
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--accent-text);
  outline-offset: 1px;
  border-color: var(--accent-text);
}

/* Robots fill every field; people never see this one. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* A notice: a page not found, a message sent */

.notice {
  padding-block: clamp(3rem, 2rem + 6vw, 8rem);
  text-align: center;
}

.notice .prose {
  color: var(--muted);
  font-size: 1.15rem;
  margin-bottom: 2rem;
}

/* Footer */

.site-footer {
  background: var(--foot);
  color: var(--foot-ink);
  padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem);
  font-size: 0.97rem;
}

.site-footer a {
  color: inherit;
}

.footer-in {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 48rem) {
  .footer-in {
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  }
}

.footer-name {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.footer-tagline,
.site-footer .prose {
  opacity: 0.85;
}

/* The organisation's apps (its tree), a line under the rest; each a link a finger can take. */
.footer-tree {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid color-mix(in srgb, var(--foot-ink) 20%, transparent);
  font-size: 0.92rem;
}

.footer-tree a,
.footer-tree [aria-current] {
  display: inline-block;
  padding: 0.35rem 0.1rem;
}

.footer-tree [aria-current] {
  font-weight: 700;
}

.site-footer address {
  font-style: normal;
}

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

@media print {
  .site-header,
  .contact-form,
  .skip {
    display: none;
  }

  .block,
  .hero {
    padding-block: 1rem;
    background: none;
  }
}
