/*
Theme Name: Tyhja Pohja
Theme URI: https://example.com/
Author: Private
Description: Erittäin kevyt ja neutraali WordPress-teema omia plugineja ja shortcode-sivuja varten.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: GPLv2 or later
Text Domain: tyhja-pohja
*/

:root {
  --tp-bg: #f6f7f9;
  --tp-surface: #ffffff;
  --tp-text: #111827;
  --tp-muted: #64748b;
  --tp-border: #e2e8f0;
  --tp-link: #1d4ed8;
  --tp-max-width: 1180px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--tp-bg);
  color: var(--tp-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: var(--tp-link);
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tp-site {
  min-height: 100vh;
}

.tp-header {
  border-bottom: 1px solid var(--tp-border);
  background: rgba(255, 255, 255, 0.92);
}

.tp-header-inner,
.tp-main,
.tp-footer-inner {
  width: min(var(--tp-max-width), calc(100% - 24px));
  margin: 0 auto;
}

.tp-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 56px;
}

.tp-site-title {
  margin: 0;
  font-size: 16px;
  font-weight: 650;
}

.tp-site-title a {
  color: inherit;
  text-decoration: none;
}

.tp-menu {
  position: relative;
}

.tp-menu-toggle {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--tp-border);
  border-radius: 12px;
  background: var(--tp-surface);
  color: var(--tp-text);
  cursor: pointer;
  list-style: none;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.tp-menu-toggle::-webkit-details-marker {
  display: none;
}

.tp-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  padding: 0.5rem;
  border: 1px solid var(--tp-border);
  border-radius: 14px;
  background: var(--tp-surface);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
  z-index: 100;
}

.tp-menu:not([open]) .tp-menu-panel {
  display: none;
}

.tp-menu-list,
.tp-menu-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tp-menu-list a {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  color: var(--tp-text);
  text-decoration: none;
}

.tp-menu-list a:hover {
  background: #f1f5f9;
}

.tp-main {
  padding: 1rem 0 2rem;
}

.tp-content {
  width: 100%;
}

.tp-content > :first-child {
  margin-top: 0;
}

.tp-footer {
  border-top: 1px solid var(--tp-border);
  color: var(--tp-muted);
  font-size: 13px;
}

.tp-footer-inner {
  padding: 1rem 0;
}

@media (max-width: 700px) {
  .tp-header-inner,
  .tp-main,
  .tp-footer-inner {
    width: min(100% - 16px, var(--tp-max-width));
  }

  .tp-main {
    padding-top: 0.75rem;
  }
}
