/*
Theme Name: RobotMedia
Theme URI: https://robotmediaonline.com/
Author: RobotMedia Pty Ltd
Description: Company site. Brand grid plus the latest videos and articles from every brand, pulled in automatically.
Version: 1.0.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: robotmedia
*/

:root{
  --ink:#0a0042;        /* RobotMedia navy */
  --body:#2b2b3a;
  --muted:#6b6b7b;
  --rule:#e8e8ee;
  --accent:#ff5555;     /* RobotMedia CTA red */
  --accent-ink:#d13a3a;
  --bg:#ffffff;
  --wash:#f6f6fa;
  --w:1040px;
  --text:720px;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--body);font-family:"Poppins",system-ui,sans-serif;font-size:16px;line-height:1.65}
a{color:var(--ink);text-decoration:none}
a:hover{text-decoration:underline;text-underline-offset:3px}
a:focus-visible,button:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:2px}
img{max-width:100%;height:auto;display:block}
h1,h2,h3{color:var(--ink);letter-spacing:-.015em}
.wrap{max-width:var(--w);margin:0 auto;padding:0 24px}
.wrap.narrow{max-width:var(--text)}
.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* header */
header.site{padding:22px 0}
header.site .row{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}
header.site .brandname{display:flex;align-items:center;gap:10px;font-weight:700;color:var(--ink);font-size:18px}
header.site .brandname img{height:44px;width:auto}
header.site .brandname:hover{text-decoration:none}
nav.primary ul{display:flex;gap:26px;flex-wrap:wrap;align-items:center;list-style:none;margin:0;padding:0}
nav.primary a{font-weight:500;font-size:15px;color:var(--ink)}
nav.primary li.cta a{background:var(--accent);color:#fff;border-radius:8px;padding:10px 20px;font-weight:600}
nav.primary li.cta a:hover{background:var(--accent-ink);text-decoration:none}

/* hero */
.hero{padding:56px 0 48px;border-bottom:1px solid var(--rule)}
.hero h1{font-size:44px;line-height:1.12;font-weight:700;margin:0 0 18px;max-width:760px}
.hero p{margin:0 0 12px;max-width:640px;font-size:17px}
.hero p.quiet{color:var(--muted);font-size:15px}
.hero .proof{display:flex;gap:28px;flex-wrap:wrap;margin-top:26px}
.hero .proof div{font-size:14px;color:var(--muted)}
.hero .proof strong{display:block;font-size:22px;color:var(--ink);font-weight:700;letter-spacing:-.02em}

/* sections */
section,.section{padding:48px 0;border-bottom:1px solid var(--rule)}
main > :last-child{border-bottom:0}
h2{font-size:22px;font-weight:700;margin:0 0 22px;display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap}
h2 .more{font-weight:500;font-size:14px;color:var(--muted)}
h3.sub{font-size:14px;font-weight:600;color:var(--muted);margin:26px 0 12px}
h3.sub:first-child{margin-top:0}

/* brand grid */
ul.brands{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
ul.brands li{border:1px solid var(--rule);border-radius:12px;padding:22px 22px 20px;display:flex;flex-direction:column;gap:12px}
ul.brands .logo{height:40px;display:flex;align-items:center}
ul.brands .logo img{max-height:40px;max-width:170px;width:auto}
ul.brands .logo-text{font-weight:700;color:var(--ink);font-size:18px}
ul.brands p.what{margin:0;font-size:15px;flex:1}
ul.brands p.what strong{display:none}
ul.brands p.links{margin:0;font-size:14.5px;display:flex;gap:14px;flex-wrap:wrap}
ul.brands p.links a{font-weight:600;color:var(--accent-ink)}
ul.brands p.links a.page{color:var(--ink)}

/* latest from brands */
.from h2 .logo img{height:26px;width:auto;display:inline-block;vertical-align:middle;margin-left:6px}
ul.videos{list-style:none;margin:0 0 10px;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:18px 16px}
ul.videos .play{display:block;width:100%;padding:0;border:0;background:#000;border-radius:8px;overflow:hidden;position:relative;cursor:pointer;aspect-ratio:16/9}
ul.videos .play img{width:100%;height:100%;object-fit:cover;opacity:.92}
ul.videos .play:hover img{opacity:1}
ul.videos .tri{position:absolute;left:50%;top:50%;width:44px;height:44px;margin:-22px 0 0 -22px;border-radius:50%;background:rgba(10,0,66,.78)}
ul.videos .tri::after{content:"";position:absolute;left:18px;top:13px;border-left:14px solid #fff;border-top:9px solid transparent;border-bottom:9px solid transparent}
ul.videos.single{grid-template-columns:1fr;margin-bottom:28px;max-width:var(--text)}
ul.videos iframe{width:100%;aspect-ratio:16/9;height:auto;border:0;border-radius:8px}
ul.videos p{margin:8px 0 0;font-size:14px;line-height:1.4}
ul.videos p a{color:var(--ink);font-weight:600;display:block}
ul.videos p .who{color:var(--muted);font-size:13px;display:block}
ul.videos time{color:var(--muted);font-size:13px;display:block}

/* posts lists */
ul.posts{list-style:none;margin:0;padding:0}
ul.posts.syndicated{columns:2;column-gap:40px}
ul.posts li{break-inside:avoid;display:grid;grid-template-columns:72px 1fr auto;gap:0 14px;align-items:baseline;padding:9px 0;border-top:1px solid var(--rule)}
ul.posts.syndicated li{grid-template-columns:72px 1fr}
ul.posts.syndicated .src{display:none}
ul.posts time{color:var(--muted);font-size:13px;white-space:nowrap}
ul.posts a.title{color:var(--ink);font-weight:600;font-size:15.5px;line-height:1.35}
ul.posts a.title:hover{color:var(--accent-ink)}
ul.posts .src{color:var(--muted);font-size:13px;white-space:nowrap}
ul.posts li.pinned a.title::before{content:"Pinned";display:inline-block;font-size:11px;font-weight:700;color:#fff;background:var(--accent);border-radius:4px;padding:1px 6px;margin-right:8px;vertical-align:2px}
.feednote{margin:18px 0 0;font-size:14.5px;color:var(--muted)}

/* brand page */
.brandhead{padding:48px 0 32px;border-bottom:1px solid var(--rule)}
.brandhead .logo img{max-width:220px;margin-bottom:22px}
.brandhead h1{font-size:36px;line-height:1.15;margin:0 0 12px}
.brandhead p.lead{font-size:18px;margin:0 0 6px;max-width:640px}
.brandhead p.visit{margin:14px 0 0;font-weight:600}
.brandhead p.visit a{color:var(--accent-ink)}

/* about + founder */
.about .cols{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:start}
.about p{margin:0 0 12px}
.person{display:flex;gap:18px;align-items:flex-start;padding:20px;border:1px solid var(--rule);border-radius:12px}
.person img{width:72px;height:72px;border-radius:50%;object-fit:cover;flex:none}
.person strong{display:block;color:var(--ink);font-size:17px}
.person span{color:var(--muted);font-size:14px;display:block;margin-bottom:6px}
.person p{margin:0;font-size:15px}

/* article content */
.entry-head{padding-top:56px;padding-bottom:24px}
.entry-head h1{font-size:36px;line-height:1.15;margin:0 0 10px}
.entry-head .meta{color:var(--muted);font-size:14.5px;display:flex;gap:14px;flex-wrap:wrap}
.entry{padding-bottom:56px;font-size:17px;line-height:1.7}
.entry h2{display:block;font-size:24px;margin:40px 0 12px}
.entry h3{font-size:20px;margin:30px 0 10px}
.entry p,.entry ul,.entry ol{margin:0 0 20px}
.entry img{border-radius:8px}
.entry blockquote{margin:0 0 20px;padding-left:18px;border-left:3px solid var(--rule);color:var(--muted)}
.entry pre{background:var(--wash);padding:16px;border-radius:8px;overflow:auto;font-size:14px}
.entry code{background:var(--wash);padding:1px 5px;border-radius:3px;font-size:.9em}
.entry iframe{max-width:100%}
.entry iframe[src*="youtube"],.entry iframe[src*="youtu.be"],.entry iframe[src*="vimeo"]{width:100%;height:auto;aspect-ratio:16/9;border-radius:8px}
.entry audio{width:100%}
.entry .gform_wrapper input[type="text"],.entry .gform_wrapper input[type="email"],.entry .gform_wrapper textarea{font:inherit;padding:10px 12px;border:1px solid #cfcfd8;border-radius:8px;width:100%}
.entry .gform_wrapper input[type="submit"],.entry .gform_wrapper button{font:inherit;font-weight:600;background:var(--accent);color:#fff;border:0;border-radius:8px;padding:12px 22px;cursor:pointer}
.reply{margin:0 auto 56px;font-size:15px;color:var(--muted)}
.page .entry-head{padding-top:48px}
.archive-head{padding-top:48px;padding-bottom:8px}
.archive-head h1{font-size:30px;margin:0 0 6px}
.archive-head p{color:var(--muted);margin:0}
.pagination{display:flex;gap:16px;padding-top:24px;padding-bottom:56px;font-weight:500}

/* footer */
footer.site{padding:36px 0 56px;color:var(--muted);font-size:14px;border-top:1px solid var(--rule)}
footer.site .cols{display:flex;justify-content:space-between;gap:24px;flex-wrap:wrap}
footer.site .links a{color:var(--ink);font-weight:500;margin-right:16px}
footer.site p{margin:6px 0 0}

@media (max-width:900px){
  ul.brands{grid-template-columns:repeat(2,1fr)}
  ul.videos{grid-template-columns:repeat(2,1fr)}
  .about .cols{grid-template-columns:1fr}
}
@media (max-width:640px){
  .hero{padding:40px 0 36px}
  .hero h1{font-size:32px}
  ul.brands{grid-template-columns:1fr}
  ul.posts.syndicated{columns:1}
  ul.posts li{grid-template-columns:1fr auto;gap:2px 12px}
  ul.posts.syndicated li{grid-template-columns:1fr}
  ul.posts time{grid-column:1 / -1;order:3}
  header.site .row{align-items:flex-start}
  .entry-head h1{font-size:28px}
  .brandhead h1{font-size:30px}
}
@media (prefers-reduced-motion:no-preference){
  a,button{transition:color .12s ease,background-color .12s ease}
}
