/*
Theme Name: willradford.com
Theme URI: https://willradford.com/
Author: Will Radford
Author URI: mailto:radford.will@gmail.com
Credits: Will Radford <radford.will@gmail.com>
Contributors: willradford
Description: Retro 80s arcade WordPress theme using a teal, gold, orange, brick, and plum color palette.
Version: 1.07
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: willradford-com
Tags: custom-colors, custom-logo, custom-menu, featured-images, block-styles, retro, arcade
*/

:root {
  --wr-cream: #fff4e0;
  --wr-sand: #d1b48c;
  --wr-sky: #8fcbcb;
  --wr-teal: #449489;
  --wr-deep-teal: #285763;
  --wr-olive: #b4ba47;
  --wr-gold: #f2b63d;
  --wr-orange: #d46e33;
  --wr-brick: #94353d;
  --wr-plum: #57253b;
  --wr-ink: #171821;
  --wr-max-width: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--wr-cream);
  background:
    radial-gradient(circle at 18% 10%, rgba(143,203,203,.18), transparent 28%),
    radial-gradient(circle at 84% 8%, rgba(242,182,61,.20), transparent 25%),
    linear-gradient(135deg, var(--wr-plum), var(--wr-deep-teal) 52%, #14242b);
  font-family: "Trebuchet MS", Verdana, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
}

a { color: var(--wr-gold); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover, a:focus { color: var(--wr-sky); }

.screen-lines {
  min-height: 100vh;
  background: linear-gradient(rgba(255,255,255,.025) 50%, rgba(0,0,0,.055) 50%);
  background-size: 100% 6px;
}

.site-shell {
  width: min(calc(100% - 32px), var(--wr-max-width));
  margin: 0 auto;
}

.site-header {
  padding: 28px 0 18px;
}

.arcade-cabinet {
  border: 6px solid var(--wr-gold);
  border-radius: 28px;
  background: rgba(87,37,59,.76);
  box-shadow: 0 0 0 8px var(--wr-plum), 0 0 0 14px var(--wr-orange), 0 24px 80px rgba(0,0,0,.45), inset 0 0 45px rgba(0,0,0,.35);
  overflow: hidden;
}

.site-branding {
  padding: 30px 28px;
  text-align: center;
  background: repeating-linear-gradient(90deg, rgba(255,244,224,.06) 0 8px, transparent 8px 18px), linear-gradient(90deg, var(--wr-teal), var(--wr-deep-teal), var(--wr-brick));
  border-bottom: 6px solid var(--wr-gold);
}

.site-title, .hero-title, h1, h2, h3, .arcade-heading {
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  letter-spacing: .045em;
  text-transform: uppercase;
  line-height: 1;
}

.site-title {
  margin: 0;
  font-size: clamp(44px, 8vw, 96px);
  color: var(--wr-gold);
  text-shadow: 4px 4px 0 var(--wr-orange), 8px 8px 0 var(--wr-brick), 12px 12px 0 var(--wr-plum), 0 0 22px rgba(242,182,61,.58);
}

.site-title a { color: inherit; text-decoration: none; }
.site-description { margin: 16px auto 0; max-width: 720px; color: var(--wr-cream); font-size: 21px; }

.main-navigation {
  padding: 16px 22px;
  background: rgba(23,24,33,.62);
  border-bottom: 3px solid var(--wr-sky);
}
.main-navigation ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 18px; list-style: none; margin: 0; padding: 0; }
.main-navigation a { display: block; padding: 8px 12px; color: var(--wr-cream); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; border-radius: 999px; }
.main-navigation a:hover, .main-navigation a:focus { color: var(--wr-plum); background: var(--wr-gold); box-shadow: 3px 3px 0 var(--wr-brick); }

.content-area { padding: 34px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; }
.no-sidebar .layout { grid-template-columns: 1fr; }

.panel, .post, .page, .widget, .comments-area {
  border: 3px solid var(--wr-sky);
  border-radius: 18px;
  background: rgba(255,244,224,.075);
  box-shadow: inset 0 0 20px rgba(143,203,203,.14), 0 10px 28px rgba(0,0,0,.25);
  padding: 24px;
  margin: 0 0 28px;
}

.entry-title { margin: 0 0 12px; font-size: clamp(36px, 6vw, 62px); color: var(--wr-gold); text-shadow: 3px 3px 0 var(--wr-brick), 6px 6px 0 var(--wr-plum); }
.entry-title a { color: inherit; text-decoration: none; }
.entry-meta, .entry-footer, .small-print { color: var(--wr-sand); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }

h1 { color: var(--wr-gold); font-size: clamp(40px, 7vw, 68px); text-shadow: 3px 3px 0 var(--wr-brick), 6px 6px 0 var(--wr-plum); }
h2 { color: var(--wr-orange); font-size: clamp(32px, 5vw, 46px); text-shadow: 3px 3px 0 var(--wr-deep-teal); }
h3 { color: var(--wr-sky); font-size: clamp(25px, 4vw, 34px); text-shadow: 2px 2px 0 var(--wr-plum); }

.wp-block-button__link, button, input[type="submit"], .button, .read-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 3px solid var(--wr-cream);
  border-radius: 999px;
  color: var(--wr-plum) !important;
  background: var(--wr-gold);
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--wr-brick);
  cursor: pointer;
}
.wp-block-button__link:hover, button:hover, input[type="submit"]:hover, .button:hover, .read-more:hover { transform: translateY(-1px); background: var(--wr-sky); }

input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--wr-sky);
  border-radius: 12px;
  color: var(--wr-cream);
  background: rgba(23,24,33,.74);
}
label { color: var(--wr-sand); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.widget-title { color: var(--wr-sky); font-size: 28px; border-bottom: 2px dashed var(--wr-olive); padding-bottom: 10px; margin-top: 0; }
/* Footer centering is intentionally stronger than the general shell styles so the strip cannot hug the left edge. */
.site-footer,
.site-footer.site-shell {
  width: min(calc(100% - 32px), var(--wr-max-width));
  max-width: var(--wr-max-width);
  margin: 28px auto 42px !important;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.footer-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: var(--wr-max-width);
  min-height: 64px;
  margin-left: auto;
  margin-right: auto;
  padding: 18px 28px;
  border-radius: 18px;
  background: linear-gradient(90deg, var(--wr-sand), var(--wr-olive), var(--wr-gold), var(--wr-orange), var(--wr-brick));
  color: var(--wr-plum);
  font-weight: 900;
  letter-spacing: .16em;
  line-height: 1.35;
  text-transform: uppercase;
  text-align: center;
}
.footer-strip a,
.footer-strip span,
.footer-strip p {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Simple File Downloads public footer credit: force darker text inside the arcade footer strip. */
.footer-strip .sfdl-public-footer,
.site-footer .sfdl-public-footer,
.sfdl-public-footer {
  color: var(--wr-ink) !important;
  text-shadow: none;
}
.footer-strip .sfdl-public-footer a,
.site-footer .sfdl-public-footer a,
.sfdl-public-footer a {
  color: var(--wr-plum) !important;
  text-decoration-color: var(--wr-plum);
}

img { max-width: 100%; height: auto; border-radius: 14px; }
.alignwide { max-width: var(--wr-max-width); }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }

/* Keep WordPress content blocks from forcing a wider mobile layout. */
.entry-content,
.entry-summary,
.page-content {
  width: 100%;
  max-width: 100%;
}

.entry-content > *,
.entry-summary > *,
.page-content > * {
  max-width: 100%;
}

pre, code {
  overflow-wrap: anywhere;
}

pre {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre-wrap;
}

iframe, embed, object, video {
  max-width: 100%;
}

/* Mobile optimization */
html, body {
  overflow-x: hidden;
}

.entry-content,
.widget,
.comment-content {
  overflow-wrap: anywhere;
  word-break: normal;
}

.wp-block-image,
.wp-block-embed,
.wp-block-video,
.wp-block-table {
  max-width: 100%;
}

.wp-block-table {
  overflow-x: auto;
  display: block;
}

@media (max-width: 980px) {
  :root { --wr-max-width: 920px; }

  body {
    font-size: 17px;
    line-height: 1.6;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .site-shell,
  .site-footer,
  .site-footer.site-shell {
    width: min(calc(100% - 24px), var(--wr-max-width));
  }

  .content-area {
    padding: 24px;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
    line-height: 1.58;
    background:
      radial-gradient(circle at 20% 8%, rgba(143,203,203,.16), transparent 36%),
      linear-gradient(135deg, var(--wr-plum), var(--wr-deep-teal) 58%, #14242b);
  }

  .screen-lines {
    background-size: 100% 8px;
  }

  .site-header {
    padding: 14px 0 10px;
  }

  .site-shell,
  .site-footer,
  .site-footer.site-shell {
    width: min(calc(100% - 16px), var(--wr-max-width));
  }

  .arcade-cabinet {
    border-width: 3px;
    border-radius: 18px;
    box-shadow:
      0 0 0 4px var(--wr-plum),
      0 0 0 7px var(--wr-orange),
      0 16px 38px rgba(0,0,0,.42),
      inset 0 0 26px rgba(0,0,0,.28);
  }

  .site-branding {
    padding: 22px 14px 20px;
    border-bottom-width: 3px;
  }

  .custom-logo-wrap img,
  .custom-logo {
    max-width: min(86vw, 320px);
    height: auto;
  }

  .site-title {
    font-size: clamp(34px, 14vw, 58px);
    letter-spacing: .025em;
    text-shadow:
      2px 2px 0 var(--wr-orange),
      4px 4px 0 var(--wr-brick),
      6px 6px 0 var(--wr-plum);
  }

  .site-description {
    margin-top: 12px;
    font-size: 16px;
    line-height: 1.45;
  }

  .main-navigation {
    padding: 12px 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .main-navigation ul,
  .main-navigation .menu,
  .main-navigation div ul {
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 8px;
    min-width: max-content;
  }

  .main-navigation a {
    padding: 9px 12px;
    font-size: 13px;
    letter-spacing: .07em;
    white-space: nowrap;
  }

  .content-area {
    padding: 12px 8px;
  }

  .panel, .post, .page, .widget, .comments-area {
    border-width: 2px;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 18px;
  }

  .post,
  .page {
    width: calc(100% - 16px);
    max-width: calc(100% - 16px);
    margin-left: auto;
    margin-right: auto;
  }

  .entry-content,
  .entry-summary,
  .page-content {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .entry-content > *,
  .entry-summary > *,
  .page-content > * {
    max-width: 100% !important;
    margin-left: 0;
    margin-right: 0;
  }

  .entry-content > .alignwide,
  .entry-content > .alignfull,
  .entry-summary > .alignwide,
  .entry-summary > .alignfull,
  .page-content > .alignwide,
  .page-content > .alignfull {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .wp-block-group,
  .wp-block-cover,
  .wp-block-media-text,
  .wp-block-columns {
    max-width: 100%;
  }

  .entry-title,
  h1 {
    font-size: clamp(30px, 11vw, 44px);
    line-height: 1.04;
    letter-spacing: .025em;
    text-shadow: 2px 2px 0 var(--wr-brick), 4px 4px 0 var(--wr-plum);
  }

  h2 {
    font-size: clamp(25px, 8vw, 34px);
    line-height: 1.08;
    text-shadow: 2px 2px 0 var(--wr-deep-teal);
  }

  h3, .widget-title {
    font-size: clamp(22px, 7vw, 28px);
    line-height: 1.1;
  }

  .wp-block-button__link, button, input[type="submit"], .button, .read-more {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    font-size: 14px;
    letter-spacing: .08em;
    box-shadow: 3px 3px 0 var(--wr-brick);
  }

  input, textarea, select {
    min-height: 46px;
    font-size: 16px;
  }

  .alignwide,
  .alignfull {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .site-footer,
  .site-footer.site-shell {
    margin: 18px auto 26px !important;
  }

  .footer-strip {
    min-height: auto;
    padding: 14px 12px;
    border-radius: 14px;
    font-size: 12px;
    letter-spacing: .08em;
    line-height: 1.45;
    flex-wrap: wrap;
  }
}

@media (max-width: 420px) {
  .site-shell,
  .site-footer,
  .site-footer.site-shell {
    width: min(calc(100% - 12px), var(--wr-max-width));
  }

  .content-area {
    padding: 10px 4px;
  }

  .panel, .post, .page, .widget, .comments-area {
    padding: 12px;
  }

  .post,
  .page {
    width: calc(100% - 12px);
    max-width: calc(100% - 12px);
  }

  .site-title {
    font-size: clamp(30px, 13vw, 48px);
  }
}
