:root {
  --ink: #333;
  --mute: #777;
  --line: #dedede;
  --paper: #fff;
  --soft: #f3f3f3;
  --accent: #2a7d74;
  --logo: #4a4a4a;
  --sans: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --serif: "Bodoni Moda", "Playfair Display", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }
[hidden] { display: none !important; }

.wrap { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }

.topbar {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
}
.subscribe {
  color: #222;
  font-size: 13px;
  font-weight: 600;
}
.subscribe:hover { color: var(--accent); }
.search {
  display: flex;
  border: 1px solid #ccc;
}
.search input {
  border: 0;
  padding: 6px 10px;
  width: 180px;
  outline: none;
}
.search button {
  border: 0;
  border-left: 1px solid #ccc;
  background: #fafafa;
  padding: 6px 12px;
  cursor: pointer;
}

.masthead { text-align: center; padding: 32px 16px 18px; }
.logo {
  display: inline-block;
  color: #111;
  font-family: var(--serif);
}
.logo-lockup {
  position: relative;
  display: inline-block;
  padding-top: 22px;
}
.logo-tagline {
  position: absolute;
  top: 2px;
  right: .04em;
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(12px, 1.35vw, 16px);
  color: #111;
  text-align: right;
  letter-spacing: .01em;
  line-height: 1;
  white-space: nowrap;
}
.logo-brand {
  display: block;
  font-style: normal;
  font-weight: 600;
  font-size: clamp(72px, 12.5vw, 112px);
  line-height: .72;
  letter-spacing: -.058em;
  color: #111;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 96;
}
.logo-place {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 10px 0 0 auto;
  font-family: var(--serif);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(11px, 1.35vw, 15px);
  letter-spacing: .22em;
  text-transform: uppercase;
  text-align: right;
  color: #111;
  line-height: 1;
  white-space: nowrap;
}
.logo-in {
  font-size: .82em;
  letter-spacing: .14em;
  margin-right: .35em;
}

.nav-main, .nav-sub { border-top: 1px solid var(--line); }
.nav-main { border-bottom: 1px solid var(--line); }
.nav-sub { background: var(--soft); }
.nav-main ul, .nav-sub ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 28px;
  list-style: none;
  margin: 0;
  padding: 11px 10px;
}
.nav-main a {
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 12px;
  font-weight: 600;
  color: #666;
}
.nav-main a:hover,
.nav-main a.active,
.nav-main .current-menu-item > a,
.nav-main .current_page_item > a { color: #111; }
.nav-sub a {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  font-weight: 600;
  color: #555;
}
.nav-sub a:hover, .nav-sub a.active { color: #111; }
.menu-toggle { display: none; }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 36px;
  padding: 26px 0 50px;
}

.hero { position: relative; margin-bottom: 14px; }
.hero-slide { display: none; }
.hero-slide.is-on { display: block; }
.hero-slide img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}
.hero-title {
  margin: 16px 0 8px;
  text-align: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 36px);
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.15;
}
.hero-title:hover { color: var(--accent); }
.hero-arrow {
  position: absolute;
  top: 190px;
  width: 36px;
  height: 36px;
  border: 0;
  background: rgba(255,255,255,.86);
  color: #222;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.hero-prev { left: 10px; }
.hero-next { right: 10px; }

.news {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 22px;
  margin-top: 28px;
}
.card img { width: 100%; height: 200px; object-fit: cover; margin-bottom: 10px; }
.card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  line-height: 1.25;
}
.card h3:hover { color: var(--accent); }

.ad {
  display: grid;
  place-items: center;
  min-height: 220px;
  margin-bottom: 28px;
  background: #ececec;
  color: #777;
  text-align: center;
  padding: 20px;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ad.has-image {
  padding: 0;
  overflow: hidden;
  background: #f3f3f3;
}
.ad.has-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.ad.tall.has-image img { height: 280px; }

.sidebar h3 {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 16px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.side-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  margin-bottom: 16px;
  align-items: start;
}
.side-item img { width: 84px; height: 64px; object-fit: cover; }
.side-item h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}
.side-item h4:hover { color: var(--accent); }

.welcome {
  background: var(--paper);
  padding: 0 0 8px;
  border-top: 1px solid var(--line);
}
.welcome-stack .welcome:first-child { padding-top: 10px; }
.welcome-stack .welcome:last-child { padding-bottom: 50px; }
.welcome-inner {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 28px;
  align-items: start;
  padding-top: 28px;
}
.welcome-inner.is-flip {
  grid-template-columns: 1fr 160px;
}
.welcome-inner.is-flip img { order: 2; }
.welcome img {
  width: 160px;
  height: 200px;
  object-fit: cover;
}
.welcome h2 {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 20px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.welcome p { margin: 0; color: #555; max-width: 70ch; }

.widgets {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}
.widgets h3 {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.widgets p, .widgets a { color: #555; font-size: 14px; }
.widgets a { color: var(--accent); }

.legal {
  border-top: 1px solid var(--line);
  padding: 20px 0 28px;
  color: #777;
  font-size: 12px;
  text-align: center;
}

.page-hero { padding: 28px 0 8px; }
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 40px;
  margin: 0 0 8px;
}
.story img.lead { width: 100%; height: 420px; object-fit: cover; margin: 12px 0 20px; }
.story .body { max-width: 68ch; }
.story .body p { margin: 0 0 16px; }
.kicker {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  font-weight: 600;
}
.meta { color: var(--mute); font-size: 13px; }
.issue-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.issue-grid img { height: 280px; object-fit: cover; width: 100%; }
.form { display: grid; gap: 12px; max-width: 420px; }
.form input, .form textarea {
  border: 1px solid #ccc;
  padding: 10px 12px;
}
.form button {
  justify-self: start;
  background: #333;
  color: #fff;
  border: 0;
  padding: 8px 16px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .layout, .news, .widgets, .issue-grid, .welcome-inner { grid-template-columns: 1fr; }
  .logo-brand { font-size: clamp(56px, 18vw, 84px); }
  .logo-tagline { font-size: 11px; }
  .hero-slide img, .story img.lead { height: 240px; }
  .hero-arrow { top: 100px; }
  .topbar-inner { gap: 10px; }
  .search input { width: 120px; }
  .menu-toggle {
    display: block;
    margin: 10px auto;
    background: none;
    border: 1px solid #ccc;
    padding: 6px 14px;
  }
  .nav-main ul { display: none; }
  .nav-main.open ul { display: flex; flex-direction: column; align-items: center; }
  .welcome-inner.is-flip { grid-template-columns: 1fr; }
  .welcome-inner.is-flip img { order: 0; }
  .welcome img { width: 120px; height: 150px; }
}
