/*
Theme Name: Stuart Black
Theme URI: https://example.com/
Author: Daniel (with ChatGPT)
Author URI: https://example.com/
Description: Minimal black theme with white buttons and page templates for Photo Portfolio, Affiliate Links, and Live Video Feed.
Version: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: stuart-black
Tags: custom-logo, custom-header, one-column, accessibility-ready, responsive-layout
*/

:root{
  --bg:#000;
  --fg:#fff;
  --muted:rgba(255,255,255,.75);
  --border:rgba(255,255,255,.2);
  --btn-bg:#fff;
  --btn-fg:#000;
  --focus:#9ad7ff;
  --max:1080px;
  --radius:14px;
  --gap:18px;
  --font: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  background:var(--bg);
  color:var(--fg);
  line-height:1.55;
}
a{color:var(--fg)}
a:hover{opacity:.9}
img{max-width:100%; height:auto}

.skip-link{
  position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{
  left:14px; top:14px; width:auto; height:auto; padding:10px 12px;
  background:#111; border:1px solid var(--border); border-radius:10px;
}

.site-header, .site-footer{
  background:var(--bg);
  border-bottom:1px solid var(--border);
}
.site-footer{border-top:1px solid var(--border); border-bottom:none}

.wrap{
  max-width:var(--max);
  margin:0 auto;
  padding:22px 18px;
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}
.brand .site-title{
  margin:0;
  font-size:18px;
  letter-spacing:.2px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.brand .site-title a{ text-decoration:none }
.brand .site-desc{
  margin:0;
  font-size:12px;
  color:var(--muted);
}

.site-nav ul{
  list-style:none;
  display:flex;
  gap:14px;
  padding:0;
  margin:0;
  flex-wrap:wrap;
}
.site-nav a{
  text-decoration:none;
  padding:8px 10px;
  border-radius:10px;
  border:1px solid transparent;
}
.site-nav a:focus, .site-nav a:hover{
  border-color:var(--border);
  outline:none;
}

main{min-height:60vh}

.hero{
  padding:56px 0 40px;
  text-align:center;
}
.hero h1{
  margin:0 0 10px;
  font-size:34px;
  letter-spacing:.3px;
}
.hero p{
  margin:0 auto 28px;
  color:var(--muted);
  max-width:60ch;
}

.btn-row{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:var(--gap);
  max-width:860px;
  margin:0 auto;
}
@media (max-width: 720px){
  .btn-row{ grid-template-columns:1fr; }
  .hero{ padding:40px 0 26px; }
  .hero h1{ font-size:28px; }
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:100%;
  padding:16px 16px;
  border-radius:var(--radius);
  background:var(--btn-bg);
  color:var(--btn-fg);
  text-decoration:none;
  font-weight:650;
  border:1px solid rgba(255,255,255,.6);
  transition:transform .08s ease, opacity .12s ease;
}
.btn:hover{ transform:translateY(-1px); }
.btn:active{ transform:translateY(0); opacity:.92; }
.btn:focus{
  outline:3px solid var(--focus);
  outline-offset:3px;
}

.content{
  padding:26px 0 54px;
}
.content h1, .content h2, .content h3{letter-spacing:.2px}
.content p, .content li{color:rgba(255,255,255,.9)}
.content .card{
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:18px;
  background:#060606;
}

.gallery-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:12px;
}
@media (max-width: 900px){ .gallery-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width: 560px){ .gallery-grid{ grid-template-columns:1fr; } }

.gallery-grid a{
  display:block;
  border-radius:14px;
  overflow:hidden;
  border:1px solid var(--border);
  background:#050505;
}
.gallery-grid img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.affiliate-list{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:14px;
}
@media (max-width: 720px){ .affiliate-list{ grid-template-columns:1fr; } }

.affiliate-item{
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:16px;
  background:#060606;
}
.affiliate-item a{
  text-decoration:none;
  display:inline-block;
  margin-top:10px;
  padding:10px 12px;
  border-radius:12px;
  background:#fff;
  color:#000;
  font-weight:650;
}

.video-embed{
  position:relative;
  width:100%;
  padding-top:56.25%; /* 16:9 */
  border-radius:var(--radius);
  overflow:hidden;
  border:1px solid var(--border);
  background:#050505;
}
.video-embed iframe,
.video-embed video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
}

.footer-inner{
  display:flex;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:12px;
}
