/*
Theme Name: Knipsoft
Theme URI: https://knipsoft.com/
Author: Knipsoft
Author URI: https://knipsoft.com/
Description: A small classic theme for the Knipsoft corporate site: a welcome page, one card per product, and a contact and legal footer, in English, Dutch, German and French. Charcoal ground, warm off-white text, brass accent — the same visual language as the Backgammon Duo product site.
Version: 1.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: knipsoft
Tags: one-column, custom-menu, translation-ready, accessibility-ready
*/

/* ---------- tokens (same as website/backgammon/style.css) ---------- */

:root {
  color-scheme: dark light;

  --bg:        #1b1b1e;
  --bg-2:      #17171a;
  --surface:   #212126;
  --surface-2: #26262c;
  --text:      #ece5d8;
  --text-dim:  #a49d92;
  --brass:     #c9a15c;
  --brass-dim: #9a7a41;
  --hairline:  rgba(236, 229, 216, 0.13);
  --hairline-2:rgba(236, 229, 216, 0.07);
  --shadow:    0 1px 2px rgba(0,0,0,.4), 0 12px 32px rgba(0,0,0,.35);

  --measure: 34rem;
  --page: 68rem;

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

@media (prefers-color-scheme: light) {
  :root {
    --bg:        #f5f2ec;
    --bg-2:      #efebe3;
    --surface:   #fffdf8;
    --surface-2: #f7f3ea;
    --text:      #22222a;
    --text-dim:  #58524a;
    --brass:     #8a6524;
    --brass-dim: #a07f42;
    --hairline:  rgba(34, 34, 42, 0.16);
    --hairline-2:rgba(34, 34, 42, 0.08);
    --shadow:    0 1px 2px rgba(60,50,30,.10), 0 12px 32px rgba(60,50,30,.10);
  }
}

/* ---------- base ---------- */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 300;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 48rem) { body { font-size: 18px; } }

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

a { color: var(--text); text-decoration-color: var(--brass-dim); text-underline-offset: 0.25em; }
a:hover { color: var(--brass); }

:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

h1, h2, h3 { font-weight: 500; line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 6.5vw, 3.1rem); }
h2 { font-size: clamp(1.45rem, 3.6vw, 2rem); }
h3 { font-size: 1.12rem; font-weight: 500; letter-spacing: 0; }
p  { margin: 0 0 1.1em; max-width: var(--measure); }
ul, ol { max-width: var(--measure); padding-left: 1.2em; }
li { margin-bottom: 0.45em; }

code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
  color: var(--brass);
}

blockquote {
  margin: 1.4rem 0;
  padding-left: 1.1rem;
  border-left: 2px solid var(--brass-dim);
  color: var(--text-dim);
}

hr { border: 0; border-top: 1px solid var(--hairline-2); margin: 2rem 0; }

.wrap { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 48rem) { .wrap { padding: 0 2rem; } }

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 500;
  margin: 0 0 0.9rem;
}

.lead { font-size: 1.15rem; color: var(--text-dim); max-width: 38rem; }

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

.site-head {
  border-bottom: 1px solid var(--hairline-2);
  background: var(--bg-2);
}
.site-head .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  align-items: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.brand {
  font-weight: 500;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  margin-right: auto;
  display: flex;
  align-items: center;
}
.brand span { color: var(--brass); }

/* The logo carries its own colours and adapts to the colour scheme itself. */
.brand-logo {
  height: 120px;
  width: auto;
  display: block;
}

/* ---------- language switcher (as on the Backgammon Duo site) ---------- */

.langs { display: flex; gap: 0.55rem; font-size: 0.82rem; letter-spacing: 0.06em; }
.langs a { color: var(--text-dim); text-decoration: none; text-transform: uppercase; }
.langs a:hover { color: var(--brass); }
.langs a[aria-current="true"] { color: var(--text); border-bottom: 1px solid var(--brass); }

.site-nav { display: flex; flex-wrap: wrap; gap: 1.1rem; font-size: 0.9rem; }
.site-nav a { color: var(--text-dim); text-decoration: none; }
.site-nav a:hover,
.site-nav a[aria-current="page"],
.site-nav .current-menu-item > a { color: var(--brass); }

.site-nav ul.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: none;
}
.site-nav ul.nav-list li { margin: 0; }

/* ---------- sections ---------- */

section { padding: 3rem 0; border-top: 1px solid var(--hairline-2); }
section:first-of-type { border-top: 0; }
@media (min-width: 48rem) { section { padding: 4.5rem 0; } }

.hero { padding-top: 2.5rem; }
.hero h1 { max-width: 22ch; }
.hero .lead { margin-bottom: 0; }

/* ---------- product cards ---------- */

.products { display: grid; gap: 1.8rem; margin-top: 2rem; }
@media (min-width: 46rem) { .products { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }

.product {
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: var(--surface);
  padding: 1.4rem 1.3rem 1.5rem;
  display: flex;
  flex-direction: column;
}
.product-icon {
  width: 96px;
  height: 96px;
  flex: none;
  align-self: flex-start;          /* the card is a flex column: do not stretch */
  border-radius: 22%;              /* the iOS squircle, near enough */
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}
.product h3 { color: var(--brass); margin-bottom: 0.35rem; }
.product h3 a { color: inherit; text-decoration: none; }
.product h3 a:hover { text-decoration: underline; }
.product .product-slogan {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 400;
  max-width: none;
  margin-bottom: 0.7rem;
}
.product .product-line { color: var(--text-dim); font-size: 0.97rem; max-width: none; margin-bottom: 1rem; }

/* The playful warning, as a small brass tag. */
.tag-warn {
  display: inline-block;
  align-self: flex-start;          /* shrink to the words, not to the card */
  margin: 0 0 1rem;
  max-width: none;
  padding: 0.12rem 0.6rem 0.18rem;
  border: 1px solid var(--brass-dim);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--brass);
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.5;
}
.product .platforms {
  margin: 0 0 0.9rem;
  max-width: none;
  font-size: 0.86rem;
  color: var(--text-dim);
  border-top: 1px solid var(--hairline-2);
  padding-top: 0.8rem;
}
.platforms-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.1rem;
}
.product .product-visit { margin: auto 0 0; padding-top: 0.9rem; font-size: 0.94rem; max-width: none; }

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

.stores { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.4rem 0 0.8rem; }
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid var(--brass-dim);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  background: transparent;
  cursor: pointer;
}
.btn:hover { border-color: var(--brass); color: var(--brass); }
.btn-primary { background: var(--brass); border-color: var(--brass); color: #1b1b1e; font-weight: 500; }
.btn-primary:hover { background: var(--brass-dim); border-color: var(--brass-dim); color: #1b1b1e; }
.store-note { font-size: 0.85rem; color: var(--text-dim); max-width: none; margin-bottom: 0.2rem; }

/* ---------- posts and pages ---------- */

.post-list { display: grid; gap: 2.2rem; }
.post-summary { border-top: 1px solid var(--hairline-2); padding-top: 1.3rem; }
.post-summary:first-child { border-top: 0; padding-top: 0; }
.post-title { font-size: 1.3rem; margin-bottom: 0.3rem; }
.post-title a { text-decoration: none; }
.post-title a:hover { color: var(--brass); }
.post-meta { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 0.8rem; }

.doc p, .doc li { color: var(--text-dim); font-size: 1rem; }
.doc h2 { font-size: 1.25rem; margin-top: 2.4rem; }
.doc h2:first-of-type { margin-top: 1.2rem; }
.doc h3 { margin-top: 1.8rem; }
.doc img, .doc figure img {
  border: 1px solid var(--hairline);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.navigation.pagination { margin-top: 2.5rem; font-size: 0.92rem; }
.navigation .nav-links { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.navigation a { color: var(--text-dim); text-decoration: none; }
.navigation a:hover { color: var(--brass); }
.navigation .current { color: var(--brass); }

.post-nav { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 2.5rem; font-size: 0.92rem; }
.post-nav a { color: var(--text-dim); text-decoration: none; }
.post-nav a:hover { color: var(--brass); }

.page-links { font-size: 0.9rem; color: var(--text-dim); }

/* ---------- search form ---------- */

.search-form { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.4rem 0; }
.search-field {
  flex: 1 1 14rem;
  min-width: 0;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.94rem;
}
.search-field::placeholder { color: var(--text-dim); }

/* ---------- tables ---------- */

table { border-collapse: collapse; font-size: 0.94rem; width: 100%; }
th, td { text-align: left; padding: 0.6rem 1.2rem 0.6rem 0; border-bottom: 1px solid var(--hairline-2); vertical-align: top; }
th { font-weight: 500; color: var(--text); }
td { color: var(--text-dim); }

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

.site-foot {
  border-top: 1px solid var(--hairline-2);
  background: var(--bg-2);
  padding: 2.5rem 0 3.5rem;
  font-size: 0.9rem;
  color: var(--text-dim);
}
.site-foot p { max-width: 44rem; margin-bottom: 0.8rem; }
.site-foot .foot-nav { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.6rem 1.1rem; margin-bottom: 1.4rem; }
.site-foot .foot-nav a { color: var(--text-dim); text-decoration: none; }
.site-foot .foot-nav a:hover { color: var(--brass); }
.foot-label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
}
.site-foot .fine { font-size: 0.82rem; }
.site-foot .registry { letter-spacing: 0.01em; }
.site-foot code { color: var(--brass); }

/* ---------- WordPress helpers ---------- */

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 0.5rem; top: 0.5rem;
  position: fixed;
  z-index: 10;
  background: var(--brass);
  color: #1b1b1e;
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
}

.screen-reader-text {
  border: 0;
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  clip-path: none;
  background: var(--brass);
  color: #1b1b1e;
  display: block;
  height: auto;
  left: 0.5rem;
  padding: 0.5rem 0.9rem;
  top: 0.5rem;
  width: auto;
  z-index: 10;
  border-radius: 6px;
}

.alignleft { float: left; margin: 0.4rem 1.4rem 1rem 0; }
.alignright { float: right; margin: 0.4rem 0 1rem 1.4rem; }
.aligncenter { margin-left: auto; margin-right: auto; }
.alignwide, .alignfull { max-width: none; }
.sticky .post-title::after { content: " \2605"; color: var(--brass); }

.wp-caption { max-width: 100%; }
.wp-caption-text, figcaption {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 0.6rem;
}

.bypostauthor > .comment-body { border-left: 2px solid var(--brass-dim); padding-left: 0.9rem; }

.gallery { display: grid; gap: 1.2rem; }
@media (min-width: 44rem) { .gallery { grid-template-columns: 1fr 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
