/* pifu gmbh — static website. No external resources, no third-party fonts,
   no JavaScript. */

:root {
  --ink:        #17211e;
  --ink-soft:   #4d5c56;
  --ink-faint:  #77857f;
  --paper:      #faf7f2;
  --surface:    #ffffff;
  --line:       #e3ddd2;
  --brand:      #1d3a33;
  --brand-dark: #142a25;
  --accent:     #b4552d;

  --radius: 12px;
  --radius-lg: 18px;
  --wrap: 1140px;

  --shadow-sm: 0 1px 2px rgba(23, 33, 30, .06);
  --shadow-md: 0 6px 24px -10px rgba(23, 33, 30, .25);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

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

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

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

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

a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--accent); }

h1, h2, h3 { line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.9rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.7rem); }
h3 { font-size: 1.02rem; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.nowrap { white-space: nowrap; }

.skip {
  position: absolute; left: -9999px;
  background: var(--brand); color: #fff;
  padding: .7rem 1.1rem; border-radius: 0 0 var(--radius) 0; z-index: 10;
}
.skip:focus { left: 0; top: 0; }

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

/* ------------------------------------------------------------- header/nav */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 5;
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.25rem; flex-wrap: wrap; padding: .85rem 0;
}

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: inherit; }

.brand-logo { height: 38px; width: auto; display: block; }

.brand-tagline {
  font-size: .78rem; line-height: 1.3; color: var(--ink-faint);
  padding-left: .7rem; border-left: 1px solid var(--line);
}

/* On narrow screens the tagline gives way, the logo stays. */
@media (max-width: 560px) {
  .brand-tagline { display: none; }
}

.site-header nav ul {
  display: flex; gap: 1.35rem; list-style: none; margin: 0; padding: 0;
  font-size: .92rem; flex-wrap: wrap;
}
.site-header nav a { text-decoration: none; color: var(--ink-soft); padding-block: .2rem; }
.site-header nav a:hover { color: var(--accent); }
.site-header nav a[aria-current] {
  color: var(--ink); font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--accent);
}

/* -------------------------------------------------------------------- hero */

.hero {
  background: linear-gradient(170deg, #22443c 0%, var(--brand-dark) 100%);
  color: #f1ece3;
  padding: clamp(3rem, 1.5rem + 7vw, 6rem) 0 clamp(2.5rem, 1.5rem + 5vw, 4.5rem);
}
.hero h1 { max-width: 20ch; }
.hero .lead { max-width: 62ch; color: #d3ddd8; font-size: 1.06rem; }
.eyebrow {
  margin: 0 0 1rem; text-transform: uppercase; letter-spacing: .14em;
  font-size: .72rem; font-weight: 600; color: #8fb3a7;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* ----------------------------------------------------------------- buttons */

.btn {
  display: inline-block; padding: .78rem 1.5rem;
  border-radius: 999px; text-decoration: none; font-weight: 600;
  font-size: .95rem; border: 1.5px solid transparent;
  transition: transform .12s ease, background-color .12s ease, color .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #9c4525; color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #f1ece3; }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-lg { padding: 1rem 2rem; font-size: 1.04rem; }

/* -------------------------------------------------------------- grid/cards */

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin: clamp(2.5rem, 1.5rem + 3vw, 4rem) 0 1.5rem;
}
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--ink-faint); font-size: .9rem; }

.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: #cfc6b6; }

.card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }

.card-media {
  aspect-ratio: 4 / 3; background: #f1ece3;
  display: grid; place-items: center; overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }

.card-noimg {
  font-weight: 600; color: #bdb3a2; font-size: 1.6rem; letter-spacing: .05em;
}

.card-body { padding: .95rem 1.05rem 1.15rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.card-title { margin: 0; font-size: .95rem; font-weight: 600; line-height: 1.4; }
.card-price { margin: auto 0 0; font-size: .87rem; color: var(--ink-faint); font-variant-numeric: tabular-nums; }

.note {
  margin: 2.5rem 0 0; font-size: .87rem; color: var(--ink-faint);
  max-width: 70ch;
}

/* --------------------------------------------------------- product detail */

.breadcrumb { margin-top: 1.5rem; font-size: .85rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; color: var(--ink-faint); }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; color: var(--line); }
.breadcrumb a { color: var(--ink-soft); }

.product {
  display: grid; gap: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  grid-template-columns: minmax(0, 1fr);
  /* margin-block, not margin: the shorthand would reset the
     margin-inline:auto of .wrap and push the element to the
     left edge. */
  margin-block: 1.75rem 3rem;
}
@media (min-width: 860px) {
  .product { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; }
}

.product-media {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
}
.product-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.product-noimg { aspect-ratio: 4 / 3; display: grid; place-items: center; font-size: 3rem; }

.product-info h1 { margin-top: 0; font-size: clamp(1.5rem, 1.15rem + 1.6vw, 2.1rem); }

.product-price {
  font-size: 1.45rem; font-weight: 600; margin: 0 0 1rem;
  font-variant-numeric: tabular-nums;
}
.product-price span { font-size: .8rem; font-weight: 400; color: var(--ink-faint); }

.product-lead { color: var(--ink-soft); max-width: 55ch; }
.product-cta { margin: 1.75rem 0; }

.product-description {
  margin: 2rem 0 0; padding-top: 1.75rem; border-top: 1px solid var(--line);
}
.product-description h2 { font-size: 1.1rem; margin-bottom: .75rem; }
.product-description p { margin: 0 0 .7rem; color: var(--ink-soft); }
.product-description p:last-of-type { margin-bottom: 0; }
.description-origin {
  margin-top: 1rem !important; font-size: .82rem; color: var(--ink-faint);
}

.product-meta {
  display: grid; grid-template-columns: auto 1fr; gap: .45rem 1.25rem;
  margin: 2rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line);
  font-size: .9rem;
}
.product-meta dt { color: var(--ink-faint); }
.product-meta dd { margin: 0; }

.pager {
  display: grid; gap: 1rem; grid-template-columns: 1fr 1fr;
  padding-top: 2rem; border-top: 1px solid var(--line); font-size: .9rem;
}
.pager a { text-decoration: none; color: var(--ink-soft); }
.pager a:hover { color: var(--accent); }
.pager span { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-faint); margin-bottom: .25rem; }
.pager-next { text-align: right; }

.back-link { margin-block: 2.5rem 3.5rem; font-size: .92rem; }

/* ------------------------------------------------------------------- prose */

.prose { max-width: 74ch; margin-block: clamp(2.5rem, 1.5rem + 3vw, 4rem) 4rem; }
.prose h2 { margin-top: 2.5rem; font-size: 1.22rem; }
.prose .lead { font-size: 1.08rem; color: var(--ink-soft); max-width: 60ch; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .35rem; }
.prose .note { margin-top: 3rem; }

.people { list-style: none; padding: 0; margin: 0; }
.people li { margin-bottom: .4rem; }

.cookie-text {
  font-size: clamp(1.1rem, 1rem + .6vw, 1.35rem);
  line-height: 1.6; max-width: 55ch;
  padding: 1.75rem 2rem;
  background: var(--surface); border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
}

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

.site-footer {
  margin-top: auto;
  background: var(--brand-dark); color: #b9c8c2;
  padding: 2.75rem 0 2.25rem; font-size: .88rem;
}
.footer-inner { display: grid; gap: 1.75rem; }
@media (min-width: 720px) {
  .footer-inner { grid-template-columns: 1fr auto; align-items: start; }
  .colophon { grid-column: 1 / -1; }
}
.site-footer strong { color: #f1ece3; }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
@media (min-width: 720px) { .site-footer nav ul { justify-items: end; } }
.site-footer a { color: #d3ddd8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.colophon { margin: 0; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); color: #8fa39b; font-size: .82rem; }

/* ----------------------------------------------------------------- motion */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .card:hover, .btn:hover { transform: none; }
}

/* ------------------------------------------------------------------ print */

@media print {
  .site-header, .site-footer, .pager, .hero-actions { display: none; }
  body { background: #fff; font-size: 11pt; }
}
