/* SwissMicros shared design tokens — mirrors webshop.swissmicros.com */

:root {
  --brand-50:  #f4f7fb;
  --brand-100: #e6ecf5;
  --brand-500: #1f7a25;
  --brand-600: #1a6629;
  --brand-700: #185214;

  --color-page:       #ffffff;
  --color-surface:    #ffffff;
  --color-text:       #0f172a;
  --color-text-muted: #64748b;
  --color-border:     #e2e8f0;

  --container-max: 72rem;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

@font-face {
  font-family: 'Theinhardt';
  src: url('/fonts/theinhardt-regular.woff2') format('woff2'),
       url('/fonts/theinhardt-regular.woff')  format('woff');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Theinhardt';
  src: url('/fonts/theinhardt-italic.woff2') format('woff2'),
       url('/fonts/theinhardt-italic.woff')  format('woff');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Theinhardt';
  src: url('/fonts/theinhardt-medium.woff2') format('woff2'),
       url('/fonts/theinhardt-medium.woff')  format('woff');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Theinhardt';
  src: url('/fonts/theinhardt-bold.woff2') format('woff2'),
       url('/fonts/theinhardt-bold.woff')  format('woff');
  font-weight: 700; font-style: normal; font-display: swap;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--color-page);
  color: var(--color-text);
  font-family: 'Theinhardt', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

h1, h2, h3, h4 {
  color: var(--color-text);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.005em;
}

h1 { font-size: 2.25rem; margin: 0 0 1rem; }
h2 { font-size: 1.5rem;  margin: 1.75rem 0 .75rem; }
h3 { font-size: 1.125rem; margin: 1.25rem 0 .5rem; }

p  { margin: 0 0 1rem; }

code, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

/* Layout */
.sm-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1rem;
}

.sm-main {
  flex: 1 0 auto;
  padding: 2rem 0 3rem;
}

/* Header */
.sm-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.sm-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}
.sm-brand {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.005em;
}
.sm-brand:hover { color: var(--color-text); }
.sm-brand img { display: block; height: 28px; width: 28px; }

.sm-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: .9375rem;
}
.sm-nav a {
  color: var(--color-text);
  text-decoration: none;
}
.sm-nav a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .sm-nav { gap: 1rem; font-size: .875rem; }
  .sm-brand { font-size: 1rem; }
}

/* Footer */
.sm-footer {
  margin-top: 3rem;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}
.sm-footer__row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  font-size: .875rem;
  color: var(--color-text-muted);
}
.sm-footer__row a { color: var(--color-text-muted); text-decoration: none; }
.sm-footer__row a:hover { text-decoration: underline; color: var(--color-text); }
.sm-footer__tagline { font-style: italic; opacity: .85; }
.sm-footer__social { display: inline-flex; gap: .75rem; }
.sm-footer__social a { display: inline-flex; }
.sm-footer__social svg { width: 18px; height: 18px; }

/* Tools section: cards */
.sm-tools h2 {
  font-size: 1.875rem;
  margin-top: 0;
}
.sm-tools .lead {
  color: var(--color-text-muted);
  font-size: 1.0625rem;
  max-width: 60ch;
}

.sm-section {
  margin: 2.25rem 0 .75rem;
  display: flex;
  align-items: baseline;
  gap: .75rem;
  flex-wrap: wrap;
}
.sm-section h3 {
  margin: 0;
  font-size: 1.25rem;
}
.sm-section small {
  color: var(--color-text-muted);
  font-size: .875rem;
  font-weight: 400;
}

.sm-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.sm-card {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.25rem 1.125rem;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.sm-card:hover {
  border-color: var(--brand-500);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 16px rgba(15, 23, 42, 0.05);
  transform: translateY(-1px);
}
.sm-card__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--color-text);
}
.sm-card__arrow {
  color: var(--brand-600);
  font-size: 1.125rem;
  line-height: 1;
}
.sm-card__desc {
  color: var(--color-text-muted);
  font-size: .9375rem;
  line-height: 1.5;
  margin: 0;
}

/* Notice / shop call-out */
.sm-notice {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 2rem 0 0;
  padding: 1rem 1.25rem;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-left: 4px solid var(--brand-500);
  border-radius: var(--radius-md);
  color: var(--color-text);
}
.sm-notice a {
  color: var(--brand-700);
  font-weight: 600;
}

/* Buttons / pills */
.sm-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.25rem;
  border-radius: 9999px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.sm-btn--primary {
  background: var(--color-text);
  color: #fff;
}
.sm-btn--primary:hover {
  background: #2a2421;
  color: #fff;
}
.sm-btn--ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.sm-btn--ghost:hover {
  border-color: var(--brand-500);
  color: var(--color-text);
}

.sm-pill {
  display: inline-flex;
  align-items: center;
  padding: .15rem .55rem;
  border-radius: 9999px;
  background: var(--brand-100);
  color: var(--brand-700);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .01em;
}
