/*
Theme Name: Webpage Maker
Theme URI: https://webpage-maker.com/
Author: Webpage Maker
Author URI: https://webpage-maker.com/
Description: A bright board-style theme for useful links, page routes, address updates, media windows, source checks, and safe browsing articles.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: webpage-maker-com
*/

:root {
  --wm-ink: #202124;
  --wm-muted: #5f6673;
  --wm-line: #cfd7df;
  --wm-paper: #ffffff;
  --wm-mint: #e8fbf7;
  --wm-aqua: #22a699;
  --wm-coral: #ef6351;
  --wm-gold: #f6c85f;
  --wm-blue: #4a7abc;
  --wm-leaf: #4f9d69;
  --wm-max: 1180px;
}

* {
  box-sizing: border-box;
}

body.wm-theme-body {
  margin: 0;
  min-height: 100vh;
  color: var(--wm-ink);
  background:
    linear-gradient(90deg, rgba(32, 33, 36, 0.04) 1px, transparent 1px) 0 0 / 36px 36px,
    linear-gradient(180deg, #e8fbf7 0, #f6fbff 52%, #f3f7f4 100%);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  line-height: 1.55;
}

body.wm-theme-body a {
  color: inherit;
  text-decoration: none;
}

body.wm-theme-body img {
  max-width: 100%;
  height: auto;
}

.wm-page {
  min-height: 100vh;
}

.wm-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid var(--wm-line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

body.admin-bar .wm-header {
  top: 32px;
}

.wm-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--wm-max);
  margin: 0 auto;
  padding: 18px 22px;
}

.wm-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
}

.wm-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(5px 5px 0 var(--wm-coral));
}

.wm-brand strong {
  display: block;
  color: var(--wm-ink);
  font-size: 22px;
  line-height: 1;
}

.wm-brand small {
  display: block;
  margin-top: 5px;
  color: var(--wm-muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.wm-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.wm-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid var(--wm-ink);
  border-radius: 8px;
  background: #ffffff;
  font-size: 13px;
  font-weight: 900;
  overflow-wrap: anywhere;
  white-space: normal;
}

.wm-nav a:nth-child(1) { box-shadow: inset 0 -5px 0 rgba(34, 166, 153, 0.34); }
.wm-nav a:nth-child(2) { box-shadow: inset 0 -5px 0 rgba(239, 99, 81, 0.30); }
.wm-nav a:nth-child(3) { box-shadow: inset 0 -5px 0 rgba(246, 200, 95, 0.46); }
.wm-nav a:nth-child(4) { box-shadow: inset 0 -5px 0 rgba(74, 122, 188, 0.30); }
.wm-nav a:nth-child(5) { box-shadow: inset 0 -5px 0 rgba(79, 157, 105, 0.30); }
.wm-nav a:nth-child(6) { box-shadow: inset 0 -5px 0 rgba(32, 33, 36, 0.16); }

.wm-main {
  max-width: var(--wm-max);
  margin: 0 auto;
  padding: 34px 22px 56px;
}

.wm-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 26px;
  align-items: stretch;
}

.wm-hero-copy {
  padding: clamp(30px, 5vw, 62px);
  border: 2px solid var(--wm-ink);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 10px 10px 0 rgba(34, 166, 153, 0.26);
}

.wm-kicker {
  display: inline-flex;
  margin: 0 0 15px;
  color: #a83c31;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.wm-hero-copy h1,
.wm-page-article h1 {
  max-width: 760px;
  margin: 0;
  color: var(--wm-ink);
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

.wm-hero-copy p {
  max-width: 690px;
  margin: 22px 0 0;
  color: var(--wm-muted);
  font-size: 18px;
  line-height: 1.72;
}

.wm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.wm-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--wm-ink);
  border-radius: 8px;
  background: var(--wm-aqua);
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
}

.wm-actions a + a {
  background: #ffffff;
  color: var(--wm-ink);
}

.wm-board {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  border: 2px solid var(--wm-ink);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 10px 10px 0 rgba(239, 99, 81, 0.22);
}

.wm-board-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: 2px solid var(--wm-ink);
  background: var(--wm-gold);
  font-size: 13px;
  font-weight: 900;
}

.wm-board-head span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.wm-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(126px, 1fr));
  gap: 10px;
  min-height: 420px;
  padding: 18px;
  align-items: stretch;
}

.wm-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.wm-block {
  display: grid;
  align-content: center;
  min-height: 84px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--wm-ink);
  border-radius: 8px;
  background: #f7fbff;
  color: var(--wm-ink);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
  white-space: normal;
}

.wm-block small {
  display: block;
  margin-bottom: 6px;
  color: var(--wm-muted);
  font-size: 10px;
  text-transform: uppercase;
}

.wm-block.tall { min-height: 148px; }
.wm-block.aqua { background: #d9f6f1; }
.wm-block.coral { background: #ffe1dd; }
.wm-block.gold { background: #fff0c5; }
.wm-block.blue { background: #e3edff; }
.wm-block.leaf { background: #e3f5e7; }

.wm-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.wm-strip article {
  min-height: 122px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--wm-ink);
  border-radius: 8px;
  background: #ffffff;
  overflow-wrap: anywhere;
}

.wm-strip b {
  display: block;
  margin-bottom: 10px;
  color: var(--wm-ink);
  font-size: 16px;
  line-height: 1.2;
}

.wm-strip span {
  color: var(--wm-muted);
  font-size: 14px;
}

.wm-section {
  margin-top: 30px;
  border: 2px solid var(--wm-ink);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.wm-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border-bottom: 2px solid var(--wm-ink);
  background: #f8fbff;
}

.wm-section-head h2 {
  margin: 0;
  color: var(--wm-ink);
  font-size: 25px;
  line-height: 1.1;
}

.wm-section-head p {
  max-width: 590px;
  margin: 0;
  color: var(--wm-muted);
  font-size: 14px;
}

.wm-categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wm-category {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  min-height: 152px;
  min-width: 0;
  border-bottom: 1px solid var(--wm-line);
  overflow-wrap: anywhere;
}

.wm-category:nth-child(2n - 1) {
  border-right: 1px solid var(--wm-line);
}

.wm-category:nth-last-child(-n+2) {
  border-bottom: 0;
}

.wm-number {
  display: grid;
  place-items: center;
  border-right: 1px solid var(--wm-line);
  background: #f8fafc;
  color: var(--wm-ink);
  font-size: 24px;
  font-weight: 900;
}

.wm-category:nth-child(1) .wm-number { background: #d9f6f1; }
.wm-category:nth-child(2) .wm-number { background: #ffe1dd; }
.wm-category:nth-child(3) .wm-number { background: #fff0c5; }
.wm-category:nth-child(4) .wm-number { background: #e3edff; }
.wm-category:nth-child(5) .wm-number { background: #e3f5e7; }
.wm-category:nth-child(6) .wm-number { background: #eeeeee; }

.wm-category-body {
  min-width: 0;
  padding: 20px;
}

.wm-category small,
.wm-archive-list small {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--wm-muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.wm-category h2 {
  margin: 0;
  color: var(--wm-ink);
  font-size: 23px;
  line-height: 1.15;
}

.wm-category p {
  margin: 11px 0 0;
  color: var(--wm-muted);
  font-size: 14px;
}

.wm-inline-posts {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.wm-inline-posts a {
  padding-top: 8px;
  border-top: 1px solid var(--wm-line);
  color: #315f9f;
  font-size: 13px;
  font-weight: 900;
}

.wm-page-main {
  display: grid;
  gap: 22px;
  max-width: var(--wm-max);
  margin: 0 auto;
  padding: 34px 22px 56px;
}

.wm-page-article,
.wm-related-posts {
  border: 2px solid var(--wm-ink);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 8px 8px 0 rgba(34, 166, 153, 0.16);
}

.wm-page-article {
  padding: clamp(28px, 5vw, 58px);
}

.wm-page-article h1 {
  font-size: clamp(38px, 5vw, 64px);
}

.wm-page-body {
  max-width: 820px;
  margin-top: 24px;
  color: var(--wm-muted);
  font-size: 17px;
  line-height: 1.75;
}

.wm-page-body h2,
.wm-page-body h3 {
  margin: 30px 0 10px;
  color: var(--wm-ink);
  line-height: 1.2;
}

.wm-page-body p {
  margin: 0 0 16px;
}

.wm-related-posts {
  padding: 24px;
}

.wm-related-posts h2 {
  margin: 0 0 16px;
  color: var(--wm-ink);
  font-size: 22px;
}

.wm-archive-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.wm-archive-list article {
  min-height: 154px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--wm-ink);
  border-radius: 8px;
  background: #ffffff;
  overflow-wrap: anywhere;
}

.wm-archive-list h2,
.wm-archive-list h3 {
  margin: 8px 0 0;
  color: var(--wm-ink);
  font-size: 20px;
  line-height: 1.22;
}

.wm-archive-list h3 {
  font-size: 18px;
}

.wm-archive-list p {
  margin: 10px 0 0;
  color: var(--wm-muted);
  font-size: 14px;
}

.wm-empty {
  margin: 0;
  padding: 18px;
  border: 1px dashed var(--wm-ink);
  border-radius: 8px;
  background: #ffffff;
  color: var(--wm-muted);
  font-weight: 700;
}

.wm-single-meta {
  margin-top: 14px;
  color: #315f9f;
  font-size: 13px;
  font-weight: 900;
}

.wm-featured-image {
  margin: 24px 0 0;
}

.wm-featured-image img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--wm-ink);
}

.wm-pagination {
  display: flex;
  gap: 10px;
}

.wm-pagination a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 9px 13px;
  border: 1px solid var(--wm-ink);
  border-radius: 8px;
  background: #ffffff;
  font-weight: 900;
}

.wm-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--wm-max);
  margin: 0 auto;
  padding: 24px 22px 34px;
  color: var(--wm-muted);
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 980px) {
  body.admin-bar .wm-header {
    top: 46px;
  }

  .wm-header-inner,
  .wm-section-head,
  .wm-footer {
    display: grid;
  }

  .wm-nav {
    justify-content: flex-start;
  }

  .wm-hero,
  .wm-strip {
    grid-template-columns: 1fr;
  }

  .wm-map {
    grid-template-columns: repeat(2, minmax(126px, 1fr));
  }

  .wm-categories,
  .wm-archive-list {
    grid-template-columns: 1fr;
  }

  .wm-category,
  .wm-category:nth-child(2n - 1),
  .wm-category:nth-last-child(-n+2) {
    border-right: 0;
    border-bottom: 1px solid var(--wm-line);
  }

  .wm-category:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 620px) {
  .wm-main,
  .wm-page-main {
    padding-inline: 14px;
  }

  .wm-header-inner {
    padding-inline: 14px;
  }

  .wm-brand {
    min-width: 0;
  }

  .wm-brand img {
    width: 42px;
    height: 42px;
  }

  .wm-brand strong {
    font-size: 19px;
  }

  .wm-nav a {
    flex: 1 1 calc(50% - 7px);
    justify-content: center;
  }

  .wm-hero-copy,
  .wm-page-article {
    padding: 28px 20px;
  }

  .wm-hero-copy h1,
  .wm-page-article h1 {
    font-size: 39px;
  }

  .wm-map {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .wm-category {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .wm-number {
    font-size: 20px;
  }
}
