/* Perfecto's Caffe — an Italian caffe: aubergine, the logo's purple, warm cream and brass */
:root {
  --purple: #860e89;
  --purple-dark: #6a0a6d;
  --night: #1d0a22;      /* deep aubergine */
  --night-2: #2a1031;
  --brass: #c9a35c;
  --brass-light: #e4c88e;
  --cream: #f8f2e7;
  --cream-2: #efe5d2;
  --ink: #24122a;
  --muted: #6d5c70;
  --white: #fff;
  --line: #e2d6c1;
  --open: #2f6b4f;
  --display: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  --body: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 17px/1.65 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, dl, dd, address { margin: 0; }
ul { padding: 0; list-style: none; }
address { font-style: normal; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.04; letter-spacing: -0.005em; text-wrap: balance; }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--purple); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; }

.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; }
.eyebrow { font-size: 12.5px; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase; color: var(--brass); margin-bottom: 18px; }
.eyebrow::before { content: ''; display: inline-block; width: 34px; height: 1px; background: currentColor; vertical-align: middle; margin-right: 14px; }
.fine { font-size: 15px; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 32px; border: 1px solid transparent; border-radius: 2px; font: 500 13.5px/1.2 var(--body); letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; text-align: center; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.btn-sm { min-height: 42px; padding: 10px 22px; font-size: 12.5px; }
.btn-purple { background: var(--purple); color: var(--white); }
.btn-purple:hover { background: var(--purple-dark); }
.btn-ghost { border-color: rgba(248, 242, 231, .6); color: var(--cream); }
.btn-ghost:hover { background: var(--cream); color: var(--night); }
.btn-brass { background: var(--brass); color: var(--night); }
.btn-brass:hover { background: var(--brass-light); }
.link { font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--purple); text-underline-offset: 6px; }

/* ---------- Top bar + header ---------- */
.topbar { background: var(--night); color: var(--brass-light); text-align: center; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; padding: 9px 16px; border-bottom: 1px solid rgba(201, 163, 92, .25); }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(29, 10, 34, .96); backdrop-filter: blur(10px); color: var(--cream); }
.header-row { display: flex; align-items: center; gap: 22px; min-height: 80px; }
.brand { flex: none; }
.brand img { width: auto; height: 60px; max-width: none; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { padding: 10px 13px; font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: #e6d9e8; transition: color .2s; }
.nav a:hover { color: var(--brass-light); }
.header-order { flex: none; }
.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid rgba(248, 242, 231, .35); border-radius: 2px; background: none; cursor: pointer; padding: 14px 11px; }
.nav-toggle span { display: block; height: 1.5px; background: var(--cream); }
.nav-toggle span + span { margin-top: 6px; }

/* ---------- Hero: the café, with the cup to order from ---------- */
.hero { position: relative; isolation: isolate; background: var(--night); color: var(--cream); min-height: min(86vh, 820px); display: flex; align-items: center; padding: clamp(48px, 7vw, 96px) 0; overflow: hidden; }
.hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; z-index: -2; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(29, 10, 34, .94) 0%, rgba(29, 10, 34, .84) 34%, rgba(29, 10, 34, .3) 62%, rgba(29, 10, 34, .12) 100%),
  linear-gradient(0deg, rgba(29, 10, 34, .7) 0%, rgba(29, 10, 34, 0) 34%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 4vw, 64px); align-items: center; width: min(1200px, 100% - 48px); }
.hero h1 { font-size: clamp(48px, 6.6vw, 96px); font-weight: 500; }
.hero h1 em { color: var(--brass-light); }
.lead { font-size: clamp(18px, 1.5vw, 20px); max-width: 31em; margin-top: 24px; color: #efe6f0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-towns { margin-top: 34px; font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--brass-light); }
.hero-cup { justify-self: end; display: block; width: min(100%, 360px); filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55)); transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.hero-cup:hover, .hero-cup:focus-visible { transform: translateY(-8px) rotate(-2deg); }
.hero-cup img { width: 100%; }

/* ---------- Fact strip ---------- */
.strip { background: var(--night); color: var(--brass-light); display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 0; padding: 18px 20px; font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; border-top: 1px solid rgba(201, 163, 92, .3); }
.strip span { padding: 0 22px; }
.strip span + span { border-left: 1px solid rgba(201, 163, 92, .45); }

/* ---------- Sections ---------- */
.section { padding: clamp(68px, 9vw, 128px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(34px, 4.5vw, 60px); }
.section-head h2, .coffee h2, .story h2, .panel h2, .catering h2 { font-size: clamp(38px, 4.8vw, 64px); }
.section-head p:not(.eyebrow) { margin-top: 18px; font-size: 19px; color: var(--muted); }

/* ---------- Coffee ---------- */
.coffee { background: var(--night-2); color: var(--cream); }
.coffee h2 em { color: var(--brass-light); }
.coffee-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.coffee-grid > div:first-child p:not(.eyebrow) { margin-top: 20px; color: #e3d6e5; max-width: 34em; }
.coffee .btn { margin-top: 32px; }
.flavors { border: 1px solid rgba(201, 163, 92, .4); padding: clamp(26px, 3.4vw, 46px); position: relative; }
.flavors::before { content: ''; position: absolute; inset: 7px; border: 1px solid rgba(201, 163, 92, .16); pointer-events: none; }
.flavors h3 { font: 500 12.5px/1.2 var(--body); letter-spacing: .26em; text-transform: uppercase; color: var(--brass); }
.flavors h3:not(:first-child) { margin-top: 30px; }
.flavor-line { font: italic 500 clamp(21px, 2vw, 25px)/1.45 var(--display); margin-top: 10px; color: var(--cream); }
.flavor-line span { white-space: nowrap; }
.flavor-line i { color: var(--brass); font-style: normal; padding: 0 2px 0 9px; }
.flavors .fine { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(201, 163, 92, .25); color: #cbbacd; }

/* ---------- Locations ---------- */
.locations { background: var(--cream); }
.loc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.loc { position: relative; background: var(--white); padding: 34px 32px 32px; display: flex; flex-direction: column; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); scroll-margin-top: 110px; }
.loc:target { box-shadow: inset 0 0 0 2px var(--brass); }
.loc-cup { position: absolute; top: 22px; right: 18px; width: 150px; filter: drop-shadow(0 8px 10px rgba(29, 10, 34, .18)); transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.loc-cup:hover, .loc-cup:focus-visible { transform: translateY(-5px) rotate(-3deg); }
.loc-cup img { width: 100%; }
.loc h3 { font-size: 38px; color: var(--ink); padding-right: 156px; }
.loc[data-loc] .loc-status, .loc[data-loc] .loc-note, .loc[data-loc] address { margin-right: 156px; }
.loc[data-loc] address { min-height: 3.3em; }
.loc-note { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--brass); margin-top: 8px; }
.loc-status { align-self: flex-start; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.loc-status::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #b9a9bb; margin-right: 9px; vertical-align: 1px; }
.loc-status.is-open { color: var(--open); }
.loc-status.is-open::before { background: var(--open); }
.loc address { margin-top: 20px; }
.hours { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.hours div { display: flex; justify-content: space-between; gap: 12px; }
.hours dt { color: var(--muted); }
.hours dd { font-weight: 500; }
.loc-phone { margin-top: 16px; font-size: 15px; color: var(--muted); }
.loc-phone > a { font: 600 24px/1.2 var(--display); color: var(--ink); text-decoration: none; margin-right: 8px; white-space: nowrap; }
.loc-phone span a { color: var(--purple); text-underline-offset: 4px; }
.loc-actions { margin-top: auto; padding-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.loc-actions .btn { flex: 1 1 auto; min-height: 48px; padding: 12px 18px; letter-spacing: .16em; }
.loc-promo { background: var(--night); color: var(--cream); justify-content: center; align-items: flex-start; gap: 16px; }
.loc-promo h3 { color: var(--brass-light); font-style: italic; font-weight: 500; padding: 0; }
.loc-promo p { color: #e3d6e5; }

/* ---------- Breakfast & bakery ---------- */
#menu { background: var(--white); border-top: 1px solid var(--line); }
.menu-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 28px; }
.item img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: var(--white); border: 1px solid var(--line); padding: 10px; }
.item h3 { font-size: 27px; margin-top: 18px; }
.item p { font-size: 15.5px; line-height: 1.55; color: var(--muted); margin-top: 6px; }
.carte { margin-top: clamp(48px, 6vw, 80px); padding: clamp(30px, 4vw, 54px); background: var(--cream); border: 1px solid var(--line); text-align: center; }
.carte h3 { font: 500 12.5px/1.2 var(--body); letter-spacing: .26em; text-transform: uppercase; color: var(--brass); }
.carte ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; margin: 20px auto 30px; max-width: 900px; }
.carte li { font: italic 500 clamp(22px, 2.2vw, 28px)/1.4 var(--display); }
.carte li:not(:last-child)::after { content: '·'; color: var(--brass); font-style: normal; padding: 0 14px; }

/* ---------- Catering ---------- */
.catering { position: relative; isolation: isolate; padding: clamp(64px, 9vw, 128px) 0; background: var(--night); }
.catering-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.catering::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(29, 10, 34, .5), rgba(29, 10, 34, .1)); }
.catering-card { background: var(--cream); padding: clamp(30px, 4.4vw, 60px); max-width: 740px; box-shadow: 0 30px 70px rgba(0, 0, 0, .35); }
.catering h2 { font-size: clamp(32px, 3.8vw, 50px); }
.catering-card > p:not(.eyebrow) { margin-top: 18px; }
.phone-list { margin-top: 24px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 36px; }
.phone-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.phone-list span { font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.phone-list a { font: 600 22px/1.2 var(--display); text-decoration: none; color: var(--purple); white-space: nowrap; }

/* ---------- Story + awards ---------- */
.story-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.story h2 { margin-bottom: 26px; }
.story-copy p + p { margin-top: 18px; }
.story-copy p:first-of-type::first-letter { font: 600 4.2em/.8 var(--display); float: left; padding: 6px 10px 0 0; color: var(--purple); }
.champ { background: var(--night); color: #e3d6e5; padding: clamp(30px, 3.4vw, 46px); position: sticky; top: 110px; border: 1px solid var(--brass); outline: 1px solid rgba(201, 163, 92, .3); outline-offset: -8px; }
.champ-year { font: 500 clamp(72px, 9vw, 120px)/.85 var(--display); color: var(--brass-light); }
.champ h3 { font-size: 30px; font-style: italic; font-weight: 500; margin: 14px 0 14px; color: var(--white); }
.awards { margin-top: clamp(52px, 7vw, 88px); padding-top: 40px; border-top: 1px solid var(--line); }
.awards-title { font-size: 34px; margin-bottom: 20px; }
.awards-list { columns: 2; column-gap: 64px; }
.awards-list li { display: flex; gap: 18px; padding: 11px 0; break-inside: avoid; font-size: 16px; border-bottom: 1px solid var(--line); }
.awards-list b { font: 600 20px/1.3 var(--display); color: var(--brass); flex: none; width: 48px; }

/* ---------- Wholesale + careers ---------- */
.duo { padding-top: 0; }
.duo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); }
.panel { padding: clamp(32px, 4.6vw, 64px); scroll-margin-top: 110px; }
.panel h2 { font-size: clamp(32px, 3.6vw, 48px); margin-bottom: 20px; }
.panel p + p { margin-top: 14px; }
.panel .btn { margin-top: 30px; }
.panel-plum { background: var(--night); color: #e3d6e5; }
.panel-plum h2 { color: var(--cream); }
.panel-white { background: var(--white); }
.jobs { margin-top: 22px; }
.jobs li { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); font: 600 22px/1.3 var(--display); }
.jobs a { flex: none; font: 500 12.5px/1 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--purple); text-underline-offset: 6px; }
.panel .fine { margin-top: 20px; }

/* ---------- Instagram + TikTok ---------- */
.social-feed { background: var(--white); border-top: 1px solid var(--line); }
.feed-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.feed h3 { font-size: 34px; padding-bottom: 14px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.feed h3 a { text-decoration: none; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.feed h3 span { font: 500 12.5px/1 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--brass); }
.feed h3 a:hover span { color: var(--purple); }
.feed-frame { display: block; width: 100%; border: 1px solid var(--line); background: var(--white); }
.ig-wrap { position: relative; padding-bottom: calc(66.7% + 160px); }  /* profile header + two rows of three square posts */
.ig-wrap .feed-frame { position: absolute; inset: 0; height: 100%; }
.tt-frame { height: 480px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: #cbbacd; padding: 68px 0 30px; font-size: 16px; border-top: 1px solid rgba(201, 163, 92, .3); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-logo { width: 150px; margin-bottom: 18px; }
.site-footer h4 { font: 500 12.5px/1.2 var(--body); letter-spacing: .26em; text-transform: uppercase; color: var(--brass); margin-bottom: 16px; }
.site-footer li { padding: 4px 0; }
.site-footer a { text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--brass-light); }
.social { margin-top: 18px; display: flex; gap: 22px; }
.social a { font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--brass-light); border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.footer-base { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(248, 242, 231, .14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 13.5px; }
.footer-base a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Phone order bar ---------- */
.mobile-order { display: none; }

/* ---------- Location picker ---------- */
.picker { width: min(500px, calc(100% - 28px)); border: 1px solid var(--brass); padding: 34px 30px 28px; background: var(--cream); color: var(--ink); box-shadow: 0 30px 90px rgba(0, 0, 0, .5); text-align: center; }
.picker::backdrop { background: rgba(29, 10, 34, .74); }
.picker-cup { width: 74px; margin: 0 auto 10px; }
.picker h2 { font-size: 40px; }
.picker > p { color: var(--muted); margin-top: 4px; }
.picker-close { position: absolute; top: 10px; right: 12px; width: 42px; height: 42px; border: 0; background: none; font-size: 28px; line-height: 1; color: var(--ink); cursor: pointer; }
.picker-list { margin-top: 22px; text-align: left; border-top: 1px solid var(--line); }
.picker-list a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 10px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background-color .2s, padding .2s; }
.picker-list a:hover { background: var(--white); padding-left: 16px; }
.picker-list b { display: block; font: 600 26px/1.15 var(--display); }
.picker-list small { font-size: 14px; color: var(--muted); }
.pick-status { font-style: normal; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; color: var(--muted); }
.pick-status.is-open { color: var(--open); }

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .nav a { padding: 10px 8px; font-size: 12px; letter-spacing: .12em; }
}
@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .header-order { margin-left: auto; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--night); padding: 4px 24px 20px; border-top: 1px solid rgba(201, 163, 92, .3); box-shadow: 0 30px 40px rgba(0, 0, 0, .35); }
  .nav.open { display: flex; }
  .nav a { padding: 16px 2px; font-size: 14px; letter-spacing: .2em; border-bottom: 1px solid rgba(248, 242, 231, .12); }
  .coffee-grid, .story-grid, .duo-grid, .feed-grid { grid-template-columns: 1fr; }
  .loc-grid { grid-template-columns: repeat(2, 1fr); }
  .menu-grid { grid-template-columns: repeat(3, 1fr); }
  .champ { position: static; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .6fr); }
}
@media (max-width: 700px) {
  body { font-size: 16px; padding-bottom: 78px; }
  .wrap, .hero-grid { width: calc(100% - 36px); }
  .topbar { font-size: 11px; letter-spacing: .1em; }
  .header-row { min-height: 66px; gap: 10px; }
  .brand img { height: 48px; }
  .hero { min-height: 0; padding: 44px 0 52px; }
  .hero-bg img { object-position: 50% 0; }
  .hero::after { background: linear-gradient(180deg, rgba(29, 10, 34, .5) 0%, rgba(29, 10, 34, .86) 42%, rgba(29, 10, 34, .96) 100%); }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-cup { order: -1; width: 190px; margin-top: 18px; justify-self: center; }
  .hero .eyebrow::before { display: none; }
  .lead { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-towns { line-height: 2; }
  .strip { font-size: 11px; letter-spacing: .14em; }
  .strip span { padding: 0 12px; }
  .loc-grid { grid-template-columns: 1fr; }
  .loc { padding: 28px 24px; }
  .loc-cup { width: 128px; top: 20px; right: 14px; }
  .loc h3 { padding-right: 128px; }
  .loc[data-loc] .loc-status, .loc[data-loc] .loc-note { margin-right: 128px; }
  .loc[data-loc] address { margin-right: 0; }
  .loc-status { letter-spacing: .08em; white-space: nowrap; }
  .menu-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .item h3 { font-size: 23px; }
  .item p { font-size: 14.5px; }
  .carte li:not(:last-child)::after { padding: 0 9px; }
  .phone-list { grid-template-columns: 1fr; }
  .awards-list { columns: 1; }
  .tt-frame { height: 400px; }
  .feed h3 { font-size: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .mobile-order { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; min-height: 54px; align-items: center; justify-content: center; border-radius: 2px; background: var(--purple); color: var(--white); font-weight: 500; font-size: 14px; letter-spacing: .22em; text-transform: uppercase; text-decoration: none; box-shadow: 0 12px 34px rgba(29, 10, 34, .5); transition: transform .25s; }
  .mobile-order.tucked { transform: translateY(140%); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .mobile-order, .picker-list a, .hero-cup, .loc-cup { transition: none; }
}
