@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  color-scheme: dark;
  --ink: #f4efe6;
  --muted: #aaa49a;
  --panel: #171717;
  --panel-soft: #20201e;
  --accent: #d84b37;
  --accent-light: #f07154;
  --line: rgba(244, 239, 230, .14);
  --page-width: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  color: var(--ink);
  background: #10100f;
  font-family: Inter, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 15px;
  line-height: 1.75;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background: linear-gradient(135deg, #171513 0%, #10100f 55%, #1c1714 100%);
  content: "";
}

a {
  color: var(--accent-light);
  text-decoration: none;
  transition: color .2s ease, opacity .2s ease;
}

a:hover { color: #fff; }

img, video, iframe { max-width: 100%; }

.wrap { width: 100%; }
.container {
  width: min(var(--page-width), calc(100% - 48px));
  margin: 0 auto;
}

#header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 105px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

#logo, #slug { float: none; width: auto; margin: 0; }
#logo a {
  color: var(--ink);
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(32px, 4vw, 47px);
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1;
  text-transform: lowercase;
}

#slug {
  margin-right: auto;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}

#nav { float: none; width: auto; margin: 0; }
#navigation {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#navigation li { float: none; margin: 0; }
#navigation a {
  display: block;
  padding: 9px 10px;
  color: #d1cbc1;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
#navigation a:hover,
#navigation .current-menu-item a {
  color: #fff;
  background: var(--accent);
}

.home-hero {
  position: relative;
  width: min(var(--page-width), calc(100% - 48px));
  min-height: 300px;
  margin: 34px auto 42px;
  padding: clamp(36px, 8vw, 88px) 28px;
  overflow: hidden;
  text-align: center;
  background: radial-gradient(ellipse at 50% 110%, rgba(216, 75, 55, .2), transparent 55%), #171513;
  border: 1px solid var(--line);
}
.home-hero .hero-eyebrow {
  margin: 0 0 10px;
  color: var(--accent-light);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .28em;
}
.home-hero h2 {
  margin: 0;
  color: var(--ink);
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(48px, 9vw, 94px);
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1;
}
.home-hero > p:not(.hero-eyebrow) {
  margin: 18px 0 24px;
  color: #d0cbc3;
}
.home-hero .hero-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  color: #fff;
  background: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
}
.home-hero .hero-link:hover { background: var(--accent-light); }

/* The old theme scripts can override visibility unless the retired carousel is force-hidden. */
#slider,
#slider.flexslider,
.carousel-thumbs {
  display: none !important;
}

#slider {
  position: relative;
  width: min(var(--page-width), calc(100% - 48px));
  margin: 34px auto 0;
  overflow: hidden;
  background: #201b18;
  border: 1px solid var(--line);
}
#slider .slides { margin: 0; padding: 0; list-style: none; }
#slider .slides > li { position: relative; }
#slider .slides > li > a,
#slider .slides > li > img { display: block; }
#slider .slides img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 5;
  object-fit: cover;
}
#slider .inner-shadow { pointer-events: none; }
.slider-pagination {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 12px 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, .8));
}
.slider-pagination .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.slider-title { color: #fff; font-weight: 600; }
.slider-pagination .arrows { display: flex; gap: 12px; }
.slider-pagination .arrows img { width: 24px; height: 19px; object-fit: contain; }

.carousel-thumbs { margin: 0 auto 42px; }
.carousel-thumbs .container { padding: 16px; background: rgba(255,255,255,.035); }
#carousel .slides {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
#carousel .slides li { min-width: 0; }
#carousel .bordered { margin: 0; border: 1px solid var(--line); }
#carousel img { display: block; width: 100%; aspect-ratio: 1.63; object-fit: cover; }

body > .wrap:not(.top):not(.carousel-thumbs):not(.footer) > .container > .sixteen.columns {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: minmax(0, 1.7fr) minmax(220px, .85fr) minmax(220px, .85fr);
  gap: 24px;
  align-items: start;
}
.columns { float: none; width: auto; min-width: 0; margin: 0; }
.content, .sidebar {
  width: 100%;
  min-width: 0;
  margin: 0;
}
.content article, .post-copy { min-width: 0; width: 100%; }
.content article, .sidebar .widget {
  margin: 0 0 22px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.post-copy { float: none; width: auto; }

h1, h2, h3, h4 {
  color: var(--ink);
  font-family: "Barlow Condensed", Inter, sans-serif;
  font-weight: 700;
  line-height: 1.2;
}
.post-copy h2,
.widget-title {
  margin: 0 0 18px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
  font-size: 25px;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.post-copy h2::after,
.widget-title::after {
  display: block;
  width: 36px;
  height: 3px;
  margin-top: 10px;
  background: var(--accent);
  content: "";
}
.post-copy h3 { font-size: 19px; }
.post-copy p { color: #d0cbc3; }
.post-copy > p:empty { display: none; }
.post-copy img { height: auto; }

.whatsnew dl { margin: 0; }
.whatsnew dl dl { padding: 13px 0; }
.whatsnew dt {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .08em;
}
.whatsnew dd { margin: 2px 0 0; color: var(--ink); }
.whatsnew > hr { margin: 0; border: 0; border-top: 1px solid var(--line); }
.newmark { color: var(--accent-light); font-weight: 700; }

.widget p { margin: 0 0 12px; color: #d0cbc3; }
.widget p:last-child { margin-bottom: 0; }
.widget ul { margin: 0; padding: 0; list-style: none; }
.widget-events:empty { display: none; }
.widget audio, .widget video { display: block; width: 100%; }
.widget .wp-video { width: 100% !important; }
.widget video { min-height: 150px; background: #090909; }
.widget iframe.wp-video-shortcode {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
}
.widget .textwidget a { overflow-wrap: anywhere; }
.searchform input[type="text"] {
  width: 68%;
  padding: 10px;
  color: var(--ink);
  background: #10100f;
  border: 1px solid var(--line);
}
.searchform input[type="submit"] {
  padding: 10px 14px;
  color: #fff;
  background: var(--accent);
  border: 0;
  cursor: pointer;
}

.footer {
  margin-top: 44px;
  padding: 42px 0 20px;
  background: #0b0b0a;
  border-top: 1px solid var(--line);
}
#footer { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
#footer .widget-area { min-width: 0; }
#footer .widget { margin-bottom: 22px; }
#footer .widget-title { font-size: 20px; }
#footer ul { margin: 0; padding: 0; list-style: none; }
#footer li { padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
#footer a { color: var(--muted); }
#footer a:hover { color: var(--accent-light); }
#footer p { color: var(--muted); }

@media (max-width: 1050px) {
  #header { flex-wrap: wrap; }
  #slug { margin-right: 0; }
  #nav { flex-basis: 100%; }
  #navigation { justify-content: flex-start; }
  body > .wrap:not(.top):not(.carousel-thumbs):not(.footer) > .container > .sixteen.columns {
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, .8fr);
  }
  .content { grid-row: span 2; }
  #footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .container, #slider, .home-hero { width: min(100% - 28px, var(--page-width)); }
  .home-hero { min-height: 250px; margin: 20px auto 26px; padding: 44px 18px; }
  #header { gap: 12px; padding: 18px 0; }
  #slug { width: 100%; order: 2; }
  #nav { order: 3; }
  #navigation { gap: 2px; }
  #navigation a { padding: 7px 8px; font-size: 14px; }
  #slider { margin-top: 20px; }
  #slider .slides img { aspect-ratio: 16 / 8; }
  .carousel-thumbs { margin-bottom: 24px; }
  .carousel-thumbs .container { padding: 10px; }
  #carousel .slides { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  body > .wrap:not(.top):not(.carousel-thumbs):not(.footer) > .container > .sixteen.columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .content { grid-row: auto; }
  .content article, .sidebar .widget { padding: 17px; }
  .footer { margin-top: 24px; padding-top: 30px; }
  #footer { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}
