/*
 * Malfunctionz workshop binder
 * Keep this file small. Pages should be edited with normal WordPress blocks.
 */

:root {
  --team-red: #c8102e;
  --team-navy: #102b50;
  --text: #182433;
  --muted: #5d6b7a;
  --line: #d8dde3;
  --paper: #ffffff;
  --soft: #f3f5f7;
  --grey: #eeeeee;	
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

a {
  color: #9d1630;
  text-underline-offset: 0.16em;
}

a:hover { color: var(--team-red); }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--team-red);
  outline-offset: 3px;
}

/* Header */
.mf-site-header {
  background: var(--grey) !important;
  border-top: 4px solid var(--team-red);
  border-bottom: 1px solid var(--line);
}

.mf-header-inner {
  max-width: 860px;
  margin: 0 auto;
  gap: 2rem;
}

.mf-header-logo {
  width: 250px;
  margin: 0;
}

.mf-header-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.mf-site-header .wp-block-navigation-item__content {
  color: var(--team-navy) !important;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
}

.mf-site-header .wp-block-navigation-item__content:hover {
  color: var(--team-red) !important;
}

/* Normal page content */
.mf-home-shell,
.mf-page-shell {
  background: var(--paper);
}

.mf-home-shell > .wp-block-post-content,
.mf-page-shell {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.mf-home-shell .mf-logo-image {
  max-width: 330px;
  margin: 0 0 1.25rem;
}

.mf-home-shell .mf-logo-image img {
  display: block;
  width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  color: var(--team-navy);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
}

h2 {
  margin: 2.4rem 0 0.65rem;
  font-size: 1.55rem;
}

h3 { font-size: 1.15rem; }

p { margin: 0 0 1.15rem; }

ul,
ol {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
}

li { margin: 0.45rem 0; }

.wp-block-separator {
  margin: 2.5rem 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.wp-block-buttons {
  gap: 0.6rem;
  margin: 1.5rem 0;
}

.wp-block-button__link {
  border-radius: 3px;
  background: var(--team-red);
  color: #ffffff;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.7rem 1rem;
  text-transform: uppercase;
}

.is-style-outline .wp-block-button__link {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--team-navy);
}

/* Update cards */
.mf-post-card {
  margin: 1rem 0;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
  border-left: 4px solid var(--team-red);
}

.mf-post-meta { color: var(--muted); }

/* Footer */
.mf-site-footer {
  border-top: 1px solid var(--line);
  background: var(--soft) !important;
  color: var(--muted) !important;
}

.mf-site-footer p { margin: 0; }

/* Phones */
@media (max-width: 781px) {
  .mf-header-inner { gap: 1rem; }

  .mf-header-logo { width: 145px; }

  .mf-home-shell > .wp-block-post-content,
  .mf-page-shell {
    padding: 2.25rem 1.25rem 3rem;
  }

  .wp-block-navigation__responsive-container.is-menu-open {
    padding: 1.5rem;
    background: var(--paper);
  }

  .wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation-item__content {
    font-size: 1rem;
    padding: 0.7rem 0;
  }
}


/* Desktop navigation uses links, not the mobile menu button. */
@media (min-width: 782px) {
  .wp-block-navigation__responsive-container-open {
    display: none;
  }
}
