: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: "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: 18px;
}
.logo-brand {
  display: block;
  font-family: var(--serif);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(68px, 10.2vw, 104px);
  line-height: .82;
  letter-spacing: -.04em;
  color: #111;
  white-space: nowrap;
}
/* Longer wordmarks (e.g. SAN MARCO) match At Home lockup visual size */
.logo-lockup.is-wordmark .logo-brand {
  font-size: clamp(42px, 6.8vw, 70px);
  line-height: 1;
  letter-spacing: .04em;
}
.logo-lockup.is-wordmark .logo-place {
  font-size: clamp(14px, 2vw, 22px);
  margin-top: 6px;
}
.logo-at {
  display: inline;
}
.logo-home {
  position: relative;
  display: inline-block;
  padding-top: 0;
}
.logo-tagline {
  position: absolute;
  left: auto;
  right: 0.7em;
  bottom: 100%;
  margin: 0 0 -24px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(10px, 1.1vw, 13px);
  color: #111;
  text-align: right;
  letter-spacing: .02em;
  line-height: 1;
  white-space: nowrap;
  width: max-content;
}
.logo-tm {
  display: inline-block;
  font-size: .18em;
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0;
  line-height: 1;
  vertical-align: super;
  margin-left: .1em;
}
.logo-place {
  display: block;
  width: 100%;
  margin: 4px 0 0;
  font-family: var(--serif);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(18px, 2.5vw, 28px);
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
  color: #111;
  line-height: 1;
  white-space: nowrap;
}
.logo-in {
  font-size: 1em;
  letter-spacing: inherit;
  margin-right: .45em;
}

.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: visible;
  background: #f0f0f0;
  min-height: 0;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
}
.ad.has-image img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
  display: block;
}
.ad.tall.has-image {
  aspect-ratio: auto;
}
.ad.tall.has-image img {
  width: 100%;
  height: auto;
}
.sidebar-network-ad {
  margin: 0 0 28px;
  width: 100%;
}
.sidebar-network-ad .cam-ad,
.sidebar-network-ad .cam-ad img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.mobile-mid-ad {
  display: none;
}

.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:has([class*="embeddable-"]),
.story .body:has(.ahm-dining-embed),
.story .body:has(.ff_widget-container),
.story .body:has(.ff_display-article-full-content),
.story .body:has(.ff_contentwidget) {
  max-width: none;
  width: 100%;
}
.ahm-dining-embed,
.ff_widget-container,
.ff_display-article-full-content,
.ff_contentwidget {
  width: 100%;
  max-width: 100% !important;
  box-sizing: border-box;
}
@media (max-width: 767px) {
  .ff_contentwidget.ff_layout-two,
  .ff_contentwidget.ff_layout-three {
    max-width: 100% !important;
  }
  .ff_contentwidget.ff_layout-two .focus-area,
  .ff_contentwidget.ff_layout-three .focus-area,
  .ff_contentwidget.ff_layout-two.ff_vertical .focus-area,
  .ff_contentwidget.ff_layout-three.ff_vertical .focus-area {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .ff_contentwidget.ff_layout-two .focus-area .ffcw_pictures,
  .ff_contentwidget.ff_layout-three .focus-area .ffcw_pictures {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
  .ff_contentwidget.ff_layout-two .focus-area .ffcw_picture,
  .ff_contentwidget.ff_layout-three .focus-area .ffcw_picture {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    position: relative !important;
  }
  .ff_contentwidget.ff_layout-two .focus-area .ffcw_picture img,
  .ff_contentwidget.ff_layout-three .focus-area .ffcw_picture img {
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  .ff_contentwidget.ff_layout-two .snippet-area,
  .ff_contentwidget.ff_layout-three .snippet-area {
    margin-left: 0 !important;
    width: 100% !important;
  }
}
.ahm-dining-embed {
  width: 100%;
  max-width: 100%;
  margin: 8px 0 28px;
}
.home-embed {
  padding: 24px 0 28px;
}
.home-embed .ahm-dining-embed {
  margin: 0;
}
.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; }
  .mobile-mid-ad {
    display: block;
    grid-column: 1 / -1;
    margin: 4px 0 18px;
  }
  .mobile-mid-ad .ad {
    margin-bottom: 0;
  }
  .sidebar-ad-desktop {
    display: none;
  }
  .logo-brand { font-size: clamp(52px, 15vw, 84px); }
  .logo-lockup.is-wordmark .logo-brand { font-size: clamp(34px, 10vw, 48px); }
  .logo-place { font-size: clamp(14px, 3.2vw, 22px); }
  .logo-lockup.is-wordmark .logo-place { font-size: clamp(12px, 3vw, 16px); }
  .logo-tagline { font-size: 10px; }
  .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; }
}
