/*
Theme Name: Seto Pank
Theme URI: https://setopank.setoinfo.eu
Author: Seto Pank
Description: Seto Panga tume-kirsipruun WordPressi kujundus.
Version: 1.4.0
Text Domain: seto-pank
*/

:root {
  --cherry-950: #260813;
  --cherry-900: #3a0d1d;
  --cherry-800: #52152a;
  --cherry-700: #6c2038;
  --gold: #c8a96a;
  --gold-light: #e4d2a7;
  --cream: #f7f1e8;
  --paper: #fffdf9;
  --ink: #231c1e;
  --muted: #6e6265;
  --line: #e2d6ca;
  --shadow: 0 18px 55px rgba(42, 8, 20, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; }
a { color: var(--cherry-700); text-underline-offset: 3px; }
a:hover { color: var(--cherry-900); }
.sp-container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  background: rgba(38, 8, 19, .97);
  color: #fff;
  border-bottom: 1px solid rgba(228, 210, 167, .28);
}
.admin-bar .site-header { top: 32px; }
.header-inner { min-height: 86px; display: flex; align-items: center; gap: 30px; }
.brand { display: flex; align-items: center; gap: 13px; color: #fff; text-decoration: none; flex: 0 0 auto; }
.brand img { width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); object-fit: cover; }
.brand-copy { display: grid; line-height: 1.12; }
.brand-title { font-family: Georgia, serif; font-size: 23px; letter-spacing: .02em; }
.brand-kicker { margin-top: 6px; color: var(--gold-light); font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: 25px; margin: 0; padding: 0; list-style: none; }
.main-nav a { color: rgba(255,255,255,.91); text-decoration: none; font-size: 15px; font-weight: 600; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--gold-light); }
.menu-toggle { display: none; margin-left: auto; border: 1px solid rgba(255,255,255,.35); border-radius: 8px; background: transparent; color: #fff; padding: 9px 12px; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 96px;
  color: #fff;
  background:
    radial-gradient(circle at 83% 25%, rgba(200,169,106,.22), transparent 30%),
    linear-gradient(135deg, var(--cherry-950), var(--cherry-800));
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image: repeating-linear-gradient(45deg, transparent 0 19px, rgba(255,255,255,.2) 20px 21px);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 70px; }
.eyebrow { color: var(--gold-light); font-size: 13px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.hero h1 { max-width: 760px; margin: 18px 0 22px; font-family: Georgia, serif; font-size: clamp(48px, 6vw, 82px); font-weight: 500; line-height: 1.03; letter-spacing: -.035em; }
.hero-lead { max-width: 680px; margin: 0 0 32px; color: rgba(255,255,255,.81); font-size: clamp(19px, 2vw, 23px); }
.actions { display: flex; flex-wrap: wrap; gap: 13px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; border: 1px solid var(--gold); border-radius: 4px; padding: 10px 20px; background: var(--gold); color: var(--cherry-950); font-size: 14px; font-weight: 800; text-decoration: none; }
.button.secondary { background: transparent; color: #fff; }
.hero-seal { width: min(100%, 360px); justify-self: end; padding: 32px; border: 1px solid rgba(228,210,167,.35); border-radius: 50%; background: rgba(255,255,255,.06); box-shadow: 0 30px 60px rgba(0,0,0,.2); aspect-ratio: 1; display: grid; place-items: center; }
.hero-seal img { width: 78%; border-radius: 50%; mix-blend-mode: screen; }

.section { padding: 84px 0; }
.section.paper { background: var(--paper); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.section-heading h2, .page-title { margin: 8px 0 0; font-family: Georgia, serif; color: var(--cherry-900); font-size: clamp(35px, 4vw, 52px); font-weight: 500; line-height: 1.13; }
.section-heading p { max-width: 540px; margin: 0; color: var(--muted); }
.text-link { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }

.money-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.money-card, .post-card, .document-row {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  box-shadow: 0 8px 30px rgba(42,8,20,.055);
}
.money-card a { color: inherit; text-decoration: none; }
.money-card-image { display: grid; place-items: center; height: 215px; padding: 24px; background: #eee7dd; }
.money-card-image img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 12px rgba(0,0,0,.16)); }
.money-card-content { padding: 23px; }
.money-card h3, .post-card h3 { margin: 0 0 8px; font-family: Georgia, serif; color: var(--cherry-900); font-size: 24px; font-weight: 500; line-height: 1.25; }
.money-card p, .post-card p { margin: 0; color: var(--muted); font-size: 15px; }
.setopank-contact-card {
  max-width: 760px;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--line);
  border-top: 5px solid var(--gold);
  border-radius: 3px;
  background: #fffdf9;
  box-shadow: 0 16px 40px rgba(61, 20, 32, .08);
}
.setopank-contact-card h2 { margin-top: 0; }
.contact-details { margin: 30px 0 0; }
.contact-details div {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr;
  gap: 20px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}
.contact-details dt { color: var(--muted); font-weight: 700; }
.contact-details dd { margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.feature-panel { padding: 42px; border-radius: 6px; }
.feature-panel.dark { background: var(--cherry-900); color: #fff; }
.feature-panel.light { border: 1px solid var(--line); background: var(--paper); }
.feature-panel h2 { margin: 8px 0 18px; font-family: Georgia, serif; font-size: 37px; font-weight: 500; line-height: 1.15; }
.feature-panel.dark h2 { color: #fff; }
.feature-panel p { color: inherit; opacity: .82; }

.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card-image { height: 205px; background: #e8ded2; }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; }
.post-card-content { padding: 23px; }
.post-meta { margin-bottom: 10px; color: var(--cherry-700); font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }

.document-list { display: grid; gap: 12px; }
.document-row { display: grid; grid-template-columns: 100px 1fr auto; align-items: center; gap: 22px; padding: 20px 24px; color: inherit; text-decoration: none; }
.document-date { color: var(--muted); font-size: 13px; }
.document-title { font-family: Georgia, serif; color: var(--cherry-900); font-size: 19px; line-height: 1.3; }
.document-arrow { color: var(--cherry-700); font-weight: 800; }

.page-hero { padding: 72px 0 48px; background: var(--paper); border-bottom: 1px solid var(--line); }
.content-layout { display: grid; grid-template-columns: minmax(0, 780px) minmax(220px, 1fr); gap: 72px; padding: 64px 0 90px; }
.entry-content { min-width: 0; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2, .entry-content h3 { color: var(--cherry-900); font-family: Georgia, serif; line-height: 1.25; }
.entry-content h2 { margin-top: 2em; font-size: 34px; }
.entry-content h3 { margin-top: 1.7em; font-size: 25px; }
.entry-content img { border-radius: 4px; }
.entry-content figure { margin: 30px 0; }
.entry-content blockquote { margin: 32px 0; border-left: 4px solid var(--gold); padding: 5px 0 5px 25px; color: var(--cherry-800); font-family: Georgia, serif; font-size: 23px; }
.sidebar-card { position: sticky; top: 115px; border-top: 4px solid var(--gold); padding: 25px; background: var(--cherry-900); color: #fff; }
.sidebar-card h2 { margin: 0 0 12px; font-family: Georgia, serif; font-size: 25px; }
.sidebar-card p { margin: 0; color: rgba(255,255,255,.72); font-size: 14px; }

.money-note-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 0 0 48px;
}
.entry-content .money-note-image {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 34px rgba(42, 8, 20, .09);
}
.money-note-image a {
  display: grid;
  min-height: 245px;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 40%, rgba(255,255,255,.9), transparent 72%),
    #eee7dd;
}
.money-note-image img {
  display: block;
  width: 100%;
  max-height: 300px;
  border-radius: 2px;
  object-fit: contain;
  filter: drop-shadow(0 10px 13px rgba(35, 28, 30, .2));
  transition: transform .25s ease;
}
.money-note-image a:hover img { transform: scale(1.018); }
.money-note-image figcaption {
  border-top: 1px solid var(--line);
  padding: 11px 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .11em;
  text-align: center;
  text-transform: uppercase;
}
.setopank-money-page .entry-content > h3:first-of-type {
  margin-top: 0;
}

.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination a, .pagination span { display: grid; min-width: 42px; min-height: 42px; place-items: center; border: 1px solid var(--line); background: var(--paper); text-decoration: none; }
.pagination .current { background: var(--cherry-800); color: #fff; }

.site-footer { padding: 55px 0 25px; background: var(--cherry-950); color: rgba(255,255,255,.72); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 50px; }
.site-footer h2, .site-footer h3 { margin-top: 0; color: #fff; font-family: Georgia, serif; font-weight: 500; }
.site-footer a { color: var(--gold-light); }
.footer-bottom { margin-top: 38px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.13); font-size: 13px; }

@media (max-width: 900px) {
  .admin-bar .site-header { top: 46px; }
  .menu-toggle { display: block; }
  .main-nav { display: none; position: absolute; inset: 86px 0 auto; padding: 20px; background: var(--cherry-950); }
  .main-nav.is-open { display: block; }
  .main-nav ul { width: min(1180px, calc(100% - 40px)); margin-inline: auto; align-items: stretch; flex-direction: column; gap: 0; }
  .main-nav a { display: block; padding: 12px 0; }
  .hero-inner, .content-layout { grid-template-columns: 1fr; }
  .hero-seal { display: none; }
  .money-grid, .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .content-layout { gap: 30px; }
  .sidebar-card { position: static; }
}
@media (max-width: 640px) {
  .contact-details div { grid-template-columns: 1fr; gap: 5px; }
  body { font-size: 17px; }
  .sp-container { width: min(100% - 28px, 1180px); }
  .brand-kicker { display: none; }
  .hero { padding: 70px 0; }
  .section { padding: 60px 0; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 15px; }
  .money-grid, .posts-grid, .split, .footer-grid { grid-template-columns: 1fr; }
  .document-row { grid-template-columns: 1fr auto; }
  .document-date { grid-column: 1 / -1; }
  .feature-panel { padding: 30px 24px; }
  .money-note-gallery { grid-template-columns: 1fr; gap: 18px; margin-bottom: 36px; }
  .money-note-image a { min-height: 205px; padding: 18px; }
}
