/* WilNak Technologies — company site */
:root {
  --paper: #f4efe6;
  --paper-deep: #e8e0d2;
  --card: #fffcf7;
  --ink: #1a1814;
  --ink-soft: #4a453c;
  --rule: #d4cbba;
  --forest: #3d5a45;
  --forest-deep: #2c4233;
  --badge: #7a4e1d;
  --badge-bg: #f3e6d2;
  --shadow: 0 14px 40px rgba(26, 24, 20, 0.12);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --max: 68rem;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --focus: 0 0 0 3px var(--paper), 0 0 0 5px var(--forest);
}

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

html {
  scroll-behavior: smooth;
  background: var(--paper);
  color: var(--ink);
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); }
a:hover { color: var(--forest-deep); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.9rem;
  text-decoration: none;
  border-radius: 4px;
}
.skip-link:focus { top: 0.75rem; box-shadow: none; color: var(--paper); }

.wrap {
  width: min(var(--max), 100%);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 70%, transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem;
}

.wordmark {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  line-height: 1;
}
.wordmark:hover { color: var(--ink); }
.wordmark-name {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.wordmark-rest {
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--forest);
  margin-top: 0.28rem;
  font-weight: 600;
}

.nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.35rem 0;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); }

/* Hero */
.hero {
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5.5rem);
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.35rem, 6.2vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  max-width: 14ch;
}
.hero .lede {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 40rem;
  margin: 0 0 2rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1.25rem;
  background: var(--forest);
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  border-radius: 999px;
  border: 1px solid var(--forest-deep);
}
.btn:hover { background: var(--forest-deep); color: var(--paper); }

/* Products */
.products {
  padding: 0 0 clamp(3rem, 7vw, 5.5rem);
}
.section-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--forest);
  margin: 0 0 0.6rem;
}
.section-intro {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  line-height: 1.35;
  margin: 0 0 2.5rem;
  max-width: 28rem;
  color: var(--ink);
}

.product {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.25rem);
  align-items: center;
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-top: 1px solid var(--rule);
}
.product:last-child { border-bottom: 1px solid var(--rule); }

.product-media {
  position: relative;
  background: var(--paper-deep);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 16rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-media .shot {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}
.product-body h2 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.55rem;
}
.product-body .tagline {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.85rem;
}
.product-body p {
  color: var(--ink-soft);
  margin: 0 0 1.25rem;
}
.text-link {
  font-weight: 600;
  text-decoration: none;
  color: var(--forest);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.75rem;
}
.text-link::after { content: "→"; translate: 0 1px; }
.text-link:hover { color: var(--forest-deep); }

.badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  background: var(--badge-bg);
  color: var(--badge);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--badge) 25%, transparent);
}

/* Color to Quiet cover fan */
.cover-fan {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 2rem 1rem 1.5rem;
  min-height: 20rem;
  width: 100%;
}
.cover-fan img {
  width: 36%;
  max-width: 11.5rem;
  border-radius: 2px 5px 5px 2px;
  box-shadow: -3px 0 0 rgba(26, 24, 20, 0.08), 0 10px 24px rgba(26, 24, 20, 0.18);
  background: var(--card);
}
.cover-fan img:nth-child(1) { transform: rotate(-8deg) translate(10%, 8px); z-index: 1; }
.cover-fan img:nth-child(2) { transform: rotate(0deg) translateY(-6px); z-index: 3; margin-left: -8%; }
.cover-fan img:nth-child(3) { transform: rotate(8deg) translate(-10%, 8px); z-index: 2; margin-left: -8%; }
.cover-fan img:nth-child(4) { transform: rotate(14deg) translate(-16%, 16px); z-index: 1; margin-left: -8%; }
.cover-fan img:nth-child(5) { transform: rotate(-14deg) translate(16%, 16px); z-index: 0; }

.tag-art {
  width: min(100%, 28rem);
  margin: 0 auto;
  padding: 1.25rem;
}

/* About */
.about {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}
.about h2 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}
.about p {
  max-width: 40rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
  margin: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 2rem 0 2.5rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: baseline;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
}
.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
}
.footer-links a:hover { color: var(--ink); }

/* Privacy / simple page */
.page {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(4rem, 8vw, 6rem);
  max-width: 42rem;
}
.page h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 1.25rem;
}
.page h2 {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin: 2rem 0 0.6rem;
}
.page p { color: var(--ink-soft); margin: 0 0 1rem; }
.page .updated { font-size: 0.9rem; color: var(--ink-soft); margin-top: 2.5rem; }

/* 404 */
.error-page { text-align: left; }

@media (max-width: 800px) {
  .product {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }
  .hero { padding-top: 2.75rem; }
  .cover-fan { min-height: 16rem; padding: 1.5rem 0.75rem 1.25rem; }
  .cover-fan img { max-width: 8.5rem; }
  .nav { gap: 0.85rem; }
}

@media (max-width: 420px) {
  .wordmark-rest { display: none; }
  .nav a { font-size: 0.88rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cover-fan img { transform: none !important; margin-left: 0.35rem; }
  .cover-fan { gap: 0.4rem; }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--paper); backdrop-filter: none; }
}
