:root {
  color-scheme: dark;
  --black: #050505;
  --white: #f6f6f3;
  --line-light: rgba(255, 255, 255, 0.28);
  --line-dark: rgba(0, 0, 0, 0.24);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  text-rendering: optimizeLegibility;
}

button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }

main {
  min-height: 100vh;
  padding: clamp(1.4rem, 4vw, 4rem);
}

.top-row { min-height: 8.2rem; display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; }
.utility-cluster { display: flex; align-items: flex-start; justify-content: flex-end; flex-wrap: wrap; gap: 0.8rem; }
.identity-column { display: grid; justify-items: start; gap: 1.15rem; }

.identity {
  width: fit-content;
  display: grid;
  justify-items: start;
  gap: 0.2rem;
}

.identity img {
  width: 4.7rem;
  height: 3.2rem;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1);
}

.identity span {
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: #bcbcbc;
}

.email-link { min-width: 7.6rem; min-height: 2.65rem; padding: 0.55rem 0.8rem; display: flex; align-items: center; gap: 0.65rem; border: 1px solid #555; background: #090909; color: #d8d8d4; transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease; }
.email-link:hover { transform: translateY(-0.12rem); border-color: #fff; background: #151515; }
.email-link:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.email-link strong { font-size: 0.63rem; font-weight: 900; letter-spacing: 0.13em; text-transform: uppercase; }
.envelope-icon { width: 1.5rem; height: 1.05rem; display: grid; place-items: center; border: 1px solid #d8d8d4; color: #f5f5f2; font-family: Arial, sans-serif; font-size: 1.1rem; line-height: 0.8; overflow: hidden; }

.eyebrow { display: block; font-size: 0.57rem; font-weight: 800; letter-spacing: 0.19em; text-transform: uppercase; color: #8f8f8f; }
.date-calendar { width: 17rem; padding: 0.9rem; border: 1px solid #444; background: #090909; }
.date-time-display { padding-bottom: 0.75rem; border-bottom: 1px solid #333; }
.live-time { display: block; margin-top: 0.18rem; font-size: 1.45rem; font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.live-date { display: block; margin-top: 0.3rem; color: #a5a5a5; font-size: 0.61rem; font-weight: 700; letter-spacing: 0.035em; }
.mini-calendar { width: 100%; margin-top: 0.65rem; table-layout: fixed; border-collapse: collapse; text-align: center; font-variant-numeric: tabular-nums; }
.mini-calendar caption { padding-bottom: 0.45rem; color: #d6d6d2; font-size: 0.62rem; font-weight: 900; letter-spacing: 0.12em; text-align: left; text-transform: uppercase; }
.mini-calendar th { height: 1.15rem; color: #717171; font-size: 0.48rem; font-weight: 900; }
.mini-calendar td { height: 1.28rem; color: #aaa; font-size: 0.57rem; }
.mini-calendar td.is-today { background: #f3f3ef; color: #090909; font-weight: 900; box-shadow: 0 0 0 1px #fff; }
.weather-widget { width: 17rem; padding: 0.9rem; border: 1px solid #444; background: #090909; transition: width 420ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 220ms ease; }
.weather-widget.has-forecast { width: min(45rem, calc(100vw - 3rem)); border-color: #686868; }
.weather-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.weather-topline strong { display: block; margin-top: 0.3rem; font-size: 0.72rem; letter-spacing: 0.04em; }
.weather-widget form { margin-top: 0.75rem; }
.weather-widget form label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.zip-row { display: flex; }
.zip-row input { width: 100%; min-width: 0; height: 2.3rem; padding: 0 0.7rem; border: 1px solid #555; border-right: 0; border-radius: 0; outline: 0; background: #050505; color: #fff; font-size: 0.72rem; letter-spacing: 0.08em; }
.zip-row input:focus { border-color: #fff; }
.zip-row button, .refresh-button, .feed-message button { border: 1px solid #666; border-radius: 0; background: #f3f3ef; color: #090909; cursor: pointer; font-size: 0.62rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; transition: background-color 180ms ease, color 180ms ease, transform 180ms ease; }
.zip-row button { min-width: 4.2rem; }
.zip-row button:hover, .feed-message button:hover { background: #fff; transform: translateY(-1px); }
.zip-row button:disabled, .refresh-button:disabled { cursor: wait; opacity: 0.5; }
.weather-error { margin: 0.55rem 0 0; color: #ef8c8c; font-size: 0.68rem; }
.current-weather { display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 0.45rem; text-align: right; }
.current-weather > span { grid-row: span 2; font-size: 1.5rem; }
.current-weather b { font-size: 1.15rem; line-height: 1; }
.current-weather small { color: #aaa; font-size: 0.58rem; white-space: nowrap; }
.forecast-strip { margin-top: 0.8rem; padding-top: 0.8rem; display: grid; grid-template-columns: repeat(10, minmax(3rem, 1fr)); border-top: 1px solid #333; animation: panel-content-in 380ms ease both; }
.forecast-day { min-width: 0; padding: 0.15rem 0.35rem; border-left: 1px solid #292929; text-align: center; }
.forecast-day:first-child { border-left: 0; }
.forecast-day > span { display: block; color: #929292; font-size: 0.53rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.forecast-day > b { display: block; height: 1.7rem; margin-top: 0.35rem; font-family: Arial,sans-serif; font-size: 1rem; font-weight: 400; }
.forecast-day p { display: flex; justify-content: center; gap: 0.25rem; margin: 0; font-size: 0.63rem; }
.forecast-day p small { color: #777; font-size: inherit; }

.menu-strip {
  margin-top: clamp(2rem, 4vw, 3.6rem);
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.72rem;
  max-width: 72rem;
}

.news-feed { width: min(72rem, 100%); margin-top: clamp(4rem, 8vw, 7rem); padding-top: 1.6rem; border-top: 1px solid #383838; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.section-heading h1 { margin: 0.25rem 0 0; font-size: clamp(2rem, 5vw, 4.25rem); line-height: 0.95; letter-spacing: -0.055em; text-transform: uppercase; }
.refresh-button { padding: 0.72rem 0.85rem; background: transparent; color: #ddd; }
.refresh-button:hover { border-color: #fff; color: #fff; }
.refresh-button span { display: inline-block; margin-right: 0.25rem; font-size: 0.9rem; transition: transform 300ms ease; }
.refresh-button:hover span { transform: rotate(120deg); }
.category-tabs { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.category-tabs button { min-height: 2.25rem; padding: 0.48rem 0.67rem; border: 1px solid #484848; border-radius: 0; background: transparent; color: #aaa; cursor: pointer; font-size: 0.59rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease; }
.category-tabs button:hover { color: #fff; border-color: #888; transform: translateY(-1px); }
.category-tabs button.is-selected { background: #f4f4f0; border-color: #f4f4f0; color: #080808; }
.category-tabs button:focus-visible, .refresh-button:focus-visible, .zip-row button:focus-visible, .zip-row input:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.news-search { width: min(36rem, 100%); min-height: 3.15rem; margin-top: 1.35rem; display: grid; grid-template-columns: auto 1fr auto; align-items: center; border: 1px solid #555; background: #090909; transition: border-color 180ms ease, box-shadow 180ms ease; }
.news-search:focus-within { border-color: #fff; box-shadow: 0 0 0 1px #fff; }
.news-search label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.news-search > span { padding-left: 0.9rem; color: #8b8b8b; font-size: 1.2rem; line-height: 1; }
.news-search input { min-width: 0; height: 3rem; padding: 0 0.8rem; border: 0; outline: 0; background: transparent; color: #fff; font-size: 0.8rem; }
.news-search input::placeholder { color: #777; }
.news-search input::-webkit-search-cancel-button { display: none; }
.news-search button { height: 2rem; margin-right: 0.55rem; padding: 0 0.65rem; border: 1px solid #4b4b4b; background: transparent; color: #bbb; cursor: pointer; font-size: 0.55rem; font-weight: 900; letter-spacing: 0.09em; text-transform: uppercase; }
.news-search button:hover { border-color: #aaa; color: #fff; }
.news-search button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.headline-sheet { margin-top: 2.6rem; overflow: hidden; background: #f6f6f2; color: #080808; border: 1px solid #fff; box-shadow: 0 1.4rem 3.5rem rgba(0,0,0,0.35); }
.feed-heading { margin-top: 0; padding: 1.2rem 1.25rem 0.9rem; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-bottom: 1px solid #bdbdb7; }
.feed-heading h2 { margin: 0; font-size: 0.78rem; letter-spacing: 0.13em; text-transform: uppercase; }
.feed-heading span { color: #777; font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; }
.story-list { display: grid; }
.story { min-height: 5.5rem; padding: 1.15rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-bottom: 1px solid #d2d2cc; transition: padding 220ms ease, border-color 180ms ease, background-color 180ms ease; animation: story-in 380ms ease both; }
.story:hover { padding-left: 1.65rem; padding-right: 1.65rem; border-color: #9b9b95; background: #fff; }
.story p { max-width: 58rem; margin: 0; font-size: clamp(0.9rem, 1.5vw, 1.08rem); font-weight: 700; line-height: 1.38; }
.story span { display: block; margin-top: 0.4rem; color: #656560; font-size: 0.59rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.story > b { color: #70706b; font-size: 1rem; font-weight: 400; transition: color 180ms ease, transform 180ms ease; }
.story:hover > b { color: #080808; transform: translate(0.18rem,-0.18rem); }
.feed-loading, .feed-message { min-height: 12rem; display: flex; align-items: center; justify-content: center; gap: 0.42rem; color: #777; font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; }
.feed-loading i { width: 0.27rem; height: 0.27rem; border-radius: 50%; background: #bbb; animation: loading-dot 900ms ease-in-out infinite alternate; }
.feed-loading i:nth-child(2) { animation-delay: 180ms; }
.feed-loading i:nth-child(3) { animation-delay: 360ms; margin-right: 0.4rem; }
.feed-message { flex-direction: column; }
.feed-message button { padding: 0.65rem 0.8rem; }
.headline-sheet .feed-loading, .headline-sheet .feed-message { color: #5f5f5a; }
.headline-sheet .feed-loading i { background: #171717; }
.headline-sheet .feed-message button { background: #111; color: #fff; border-color: #111; }
.headline-sheet .feed-message button:hover { background: #333; }

.menu-button {
  position: relative;
  min-height: 3.45rem;
  padding: 0.85rem 0.8rem 0.85rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 0.18rem;
  cursor: pointer;
  font-family: "Arial Black", "Arial Narrow", Arial, sans-serif;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(0, 0, 0, 0.95),
    0 0.4rem 1.2rem rgba(0, 0, 0, 0.42);
  transition:
    transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 220ms ease,
    box-shadow 280ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 220ms ease;
}

.menu-button::before {
  content: "";
  position: absolute;
  inset: -80% auto -80% -35%;
  width: 28%;
  background: rgba(255, 255, 255, 0.24);
  transform: rotate(18deg);
  transition: left 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.menu-button::after {
  content: "";
  position: absolute;
  inset: -65%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.72) 0 5%, rgba(255,255,255,0.3) 12%, transparent 42%);
  transform: scale(0.25);
}

.menu-button:hover {
  filter: brightness(1.1) saturate(1.06);
  transform: translateY(-0.2rem);
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(0, 0, 0, 0.95),
    0 0.65rem 1.45rem rgba(0, 0, 0, 0.56);
}
.menu-button:hover::before { left: 118%; }
.menu-button.is-gleaming { animation: button-gleam 720ms ease-out both; }
.menu-button.is-gleaming::before { animation: click-sweep 720ms cubic-bezier(0.2,0.75,0.25,1) both; }
.menu-button.is-gleaming::after { animation: click-flare 720ms ease-out both; }
.menu-button:active { transform: translateY(0); transition-duration: 80ms; }
.menu-button.is-active {
  transform: translateY(-0.2rem);
  border-color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(0, 0, 0, 0.95),
    0 0 0 2px rgba(255, 255, 255, 0.23),
    0 0.75rem 1.6rem rgba(0, 0, 0, 0.58);
}
.menu-button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.menu-button.light { color: #fff; }
.menu-button.dark { color: #111; }
.menu-button.dark { border-color: rgba(255, 255, 255, 0.82); }
.menu-button b {
  position: relative;
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  line-height: 1;
  font-weight: 400;
  transition: transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1), background-color 220ms ease;
}
.menu-button.is-active b {
  transform: rotate(135deg);
  background: rgba(255, 255, 255, 0.16);
}
.menu-button.dark.is-active b { background: rgba(0, 0, 0, 0.1); }

.link-panel {
  width: min(72rem, 100%);
  display: grid;
  grid-template-rows: 0fr;
  margin-top: 0.72rem;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-0.7rem);
  border: 1px solid transparent;
  border-radius: 0.18rem;
  box-shadow: 0 0 0 1px transparent, 0 1rem 2.5rem rgba(0, 0, 0, 0);
  transition:
    grid-template-rows 420ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 260ms ease,
    transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background-color 260ms ease,
    border-color 260ms ease,
    box-shadow 320ms ease;
}

.link-panel.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translateY(0);
  border-color: rgba(255, 255, 255, 0.64);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.95), 0 1rem 2.5rem rgba(0, 0, 0, 0.46);
}

.link-panel.light { color: #fff; }
.link-panel.dark { color: #111; }
.panel-clip { min-height: 0; overflow: hidden; }

.panel-inner {
  padding: clamp(1.3rem, 3vw, 2rem);
  animation: panel-content-in 380ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.panel-inner > p {
  margin: 0 0 1.35rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line-light);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  opacity: 0.78;
}

.link-panel.dark .panel-inner > p {
  border-bottom-color: var(--line-dark);
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.link-grid a {
  min-height: 3.15rem;
  padding: 0.72rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--line-light);
  border-radius: 0.12rem;
  background: rgba(0, 0, 0, 0.08);
  font-size: 0.82rem;
  font-weight: 700;
  transition:
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background-color 180ms ease,
    border-color 180ms ease;
}

.link-panel.dark .link-grid a {
  border-color: var(--line-dark);
  background: rgba(255, 255, 255, 0.16);
}

.link-grid a b {
  font-size: 0.82rem;
  font-weight: 400;
  opacity: 0.55;
  transition: translate 140ms ease, opacity 140ms ease;
}

.link-grid a:hover b {
  translate: 0.2rem -0.2rem;
  opacity: 1;
}
.link-grid a:hover {
  transform: translateY(-0.12rem);
  border-color: currentColor;
  background: rgba(255, 255, 255, 0.11);
}
.link-panel.dark .link-grid a:hover { background: rgba(255, 255, 255, 0.3); }

.link-grid a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

@media (max-width: 760px) {
  main { padding: 1.25rem; }
  .top-row { min-height: 0; flex-direction: column; }
  .identity-column { width: 100%; grid-template-columns: 1fr auto; align-items: center; }
  .utility-cluster { width: 100%; justify-content: stretch; }
  .date-calendar { width: 100%; }
  .weather-widget, .weather-widget.has-forecast { width: 100%; }
  .forecast-strip { overflow-x: auto; grid-template-columns: repeat(10,3.5rem); padding-bottom: 0.45rem; }
  .menu-strip { margin-top: 3.5rem; }
  .menu-strip { gap: 0.58rem; }
  .menu-button { min-height: 3rem; padding: 0.72rem 0.75rem 0.72rem 0.88rem; font-size: 0.66rem; gap: 0.9rem; }
  .link-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: center; }
  .story { gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

@keyframes panel-content-in {
  from { opacity: 0; transform: translateY(-0.45rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes story-in { from { opacity: 0; transform: translateY(0.35rem); } to { opacity: 1; transform: translateY(0); } }
@keyframes loading-dot { from { opacity: 0.25; transform: translateY(0); } to { opacity: 1; transform: translateY(-0.22rem); } }
@keyframes button-gleam {
  0%, 100% { filter: brightness(1); }
  32% { filter: brightness(1.55) saturate(1.15); box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 0 0 1px #000, 0 0 1.5rem rgba(255,255,255,0.5); }
}
@keyframes click-sweep {
  0% { left: -42%; opacity: 0; }
  18% { opacity: 1; }
  72%, 100% { left: 125%; opacity: 0; }
}
@keyframes click-flare {
  0% { opacity: 0; transform: scale(0.2); }
  28% { opacity: 0.85; transform: scale(0.72); }
  100% { opacity: 0; transform: scale(1.2); }
}
