/* General Store Winchester: native CSS, 7 / 2 / 4.
   Brand-directed light theme with one requested blue-black evening section.
   Original photographs keep their full aspect ratio. */
:root {
  --paper: #fffdf8;
  --ink: #182f3d;
  --muted: #50616a;
  --line: #d8dedf;
  --accent: #9f502a;
  --surface: #f2f5f4;
  --font: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
  --evening-muted: #d4dce0;
}

* { box-sizing: border-box; }

html {
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a, summary { -webkit-tap-highlight-color: transparent; }

a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

figure, h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); }

.shell {
  width: min(100% - 96px, 1160px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 16px;
  z-index: 1;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-180%);
}

.skip-link:focus { transform: translateY(0); }

.preview-note {
  min-height: 26px;
  padding: 3px 20px;
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
  line-height: 20px;
  text-align: center;
}

.site-header {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}

.brand {
  flex-shrink: 0;
  display: flex;
  align-items: baseline;
  gap: 12px;
  text-decoration: none;
}

.brand-name {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.8px;
}

.brand-place {
  color: var(--muted);
  font-size: 13px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  line-height: 1.4;
}

.main-nav a {
  padding-block: 14px;
  text-decoration: none;
  text-underline-offset: 6px;
  white-space: nowrap;
}

.main-nav a:hover { text-decoration: underline; }

.hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  column-gap: 76px;
  padding-block: 30px 54px;
}

.hero-copy { padding-bottom: 18px; }

h1 {
  font-size: clamp(58px, 6vw, 82px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -3.7px;
}

.hero-address {
  margin-top: 26px;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border: 1px solid var(--ink);
  border-radius: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 140ms ease;
}

.button-primary {
  background: var(--ink);
  color: var(--paper);
}

.button-outline { background: transparent; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(1px); }

.hero-photo {
  width: min(100%, 470px, calc((100svh - 172px) * 0.75));
  max-width: 768px;
  justify-self: end;
}

.section-space { padding-block: 84px; }

h2 {
  font-size: clamp(35px, 3.45vw, 46px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -1.6px;
}

.coffee-section {
  border-top: 1px solid var(--line);
}

.coffee-heading {
  max-width: 620px;
  margin-left: 11%;
}

.coffee-heading p,
.evenings-heading p {
  max-width: 43ch;
  margin-top: 22px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.coffee-photos {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  column-gap: 110px;
  margin-top: 40px;
}

.coffee-photo {
  width: min(100%, 340px);
  max-width: 768px;
  justify-self: end;
}

.cake-photo {
  width: min(100%, 470px);
  max-width: 768px;
  justify-self: end;
}

.evenings-section {
  padding-block: 78px 84px;
  background: var(--ink);
  color: var(--paper);
}

.evenings-heading { max-width: 630px; }
.evenings-heading p { color: var(--evening-muted); }

.evening-photos {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  column-gap: 90px;
  margin-top: 44px;
}

.interior-photo {
  width: min(100%, 380px);
  max-width: 768px;
}

.board-photo {
  width: min(100%, 630px);
  max-width: 1024px;
}

.visit-section {
  padding-top: 68px;
  border-top: 1px solid var(--line);
}

.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 45px;
}

.visit-location address {
  margin-bottom: 28px;
  font-size: 25px;
  font-style: normal;
  line-height: 1.5;
}

.visit-note {
  max-width: 33ch;
  margin-top: 24px;
  color: var(--muted);
  font-size: 14px;
}

.visit-contact {
  align-self: start;
  border-left: 2px solid var(--accent);
  padding-left: 38px;
}

h3 {
  margin-bottom: 14px;
  font-size: 26px;
  line-height: 1.3;
  letter-spacing: -0.4px;
}

.contact-address {
  font-size: 17px;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.events-contact {
  margin-top: 27px;
  color: var(--muted);
  font-size: 14px;
}

.events-contact a {
  overflow-wrap: anywhere;
  text-underline-offset: 4px;
}

.text-link {
  display: inline-block;
  margin-top: 29px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  text-underline-offset: 5px;
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 50px;
  padding-block: 28px 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.footer-brand { flex-shrink: 0; }

.preview-details {
  width: min(100%, 590px);
}

.preview-details summary {
  width: fit-content;
  margin-left: auto;
  cursor: pointer;
  text-underline-offset: 4px;
}

.preview-details summary:hover { text-decoration: underline; }

.details-content { padding-top: 18px; }
.details-content p + p { margin-top: 14px; }
.details-content a { text-underline-offset: 3px; }

@media (max-width: 1023px) {
  .shell { width: min(100% - 64px, 1160px); }
  .brand { gap: 8px; }
  .brand-name { font-size: 21px; }
  .main-nav { gap: 22px; font-size: 13px; }
  .hero { gap: 40px; }
  h1 { font-size: 52px; letter-spacing: -2.4px; }
  .hero-address { font-size: 16px; }
  .button { padding-inline: 16px; }
  .coffee-photos { gap: 64px; }
  .evening-photos { gap: 48px; }
  .visit-grid { gap: 30px; }
  .visit-contact { padding-left: 24px; }
  .contact-address { font-size: 15px; }
}

@media (max-width: 767px) {
  html { scroll-padding-top: 20px; }
  .shell { width: min(100% - 40px, 560px); }
  .preview-note { min-height: 24px; padding-block: 2px; font-size: 10px; }
  .site-header { min-height: 62px; gap: 14px; }
  .brand { display: block; }
  .brand-name { display: block; font-size: 19px; line-height: 1.2; letter-spacing: -0.5px; }
  .brand-place { display: block; margin-top: 1px; font-size: 11px; line-height: 1.3; }
  .main-nav { gap: 0; font-size: 13px; }
  .main-nav a:not(:last-child) { display: none; }
  .main-nav a:last-child { padding: 12px 0 12px 16px; }
  .hero { grid-template-columns: 1fr; gap: 20px; padding-block: 18px 36px; }
  .hero-copy { padding-bottom: 0; }
  h1 { font-size: 43px; line-height: 1.06; letter-spacing: -1.9px; }
  .hero-address { margin-top: 14px; font-size: 14px; line-height: 1.6; }
  .hero-actions { margin-top: 16px; gap: 10px; }
  .button { min-height: 44px; padding: 10px 17px; font-size: 13px; }
  .hero-photo { width: min(100%, 296px); justify-self: center; }
  .section-space { padding-block: 50px; }
  h2 { font-size: 33px; letter-spacing: -1.2px; }
  .coffee-heading { margin-left: 0; max-width: 100%; }
  .coffee-heading p, .evenings-heading p { margin-top: 18px; font-size: 15px; line-height: 1.6; }
  .coffee-photos { grid-template-columns: 1fr; gap: 28px; margin-top: 28px; }
  .coffee-photo { width: min(100%, 260px); justify-self: start; }
  .cake-photo { width: min(100%, 470px); justify-self: end; }
  .evenings-section { padding-block: 50px; }
  .evening-photos { grid-template-columns: 1fr; gap: 28px; margin-top: 28px; }
  .interior-photo { width: min(100%, 360px); justify-self: center; }
  .board-photo { width: 100%; }
  .visit-grid { grid-template-columns: 1fr; gap: 38px; margin-top: 28px; }
  .visit-location address { margin-bottom: 24px; font-size: 23px; }
  .visit-note { margin-top: 18px; font-size: 13px; }
  .visit-contact { padding-left: 20px; }
  h3 { font-size: 23px; }
  .contact-address { font-size: 15px; }
  .events-contact { margin-top: 23px; font-size: 13px; }
  .text-link { margin-top: 23px; font-size: 13px; }
  .site-footer { display: block; padding-block: 23px 28px; }
  .preview-details { margin-top: 13px; }
  .preview-details summary { margin-left: 0; }
}

@media (max-width: 359px) {
  .shell { width: calc(100% - 32px); }
  h1 { font-size: 39px; letter-spacing: -1.8px; }
  h2 { font-size: 29px; }
  .hero-photo { width: min(100%, 280px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
  .button:hover, .button:active { transform: none; }
}
