/* =========================================================
   Goldenshowerhead (GS) – Base Stylesheet
   High-gloss editorial: calm spacing, strong typography,
   image-first layout, no loud UI.
   ========================================================= */

/* ---------- Design tokens ---------- */
:root{
  /* widths */
  --main: 2400px;
  --wide: 1600px;
  --read: 1120px;

  /* spacing */
  --gutter: clamp(16px, 2.2vw, 40px);
  --radius: 18px;
  --radius-lg: 26px;

  /* type */
  --serif: ui-serif, "Didot", "Bodoni 72", "Playfair Display", "Libre Baskerville", Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Inter, Roboto, Helvetica, Arial, sans-serif;

  /* palette */
  --paper: #f4f1ea;
  --ink: #0e0f10;
  --muted: rgba(14,15,16,.72);
  --faint: rgba(14,15,16,.54);
  --hair: rgba(14,15,16,.14);

  /* surfaces */
  --card: rgba(255,255,255,.58);
  --shadow: 0 18px 40px rgba(0,0,0,.08);
}

/* ---------- CSS reset-ish ---------- */
*,
*::before,
*::after{ box-sizing: border-box; }

html{
  text-size-adjust: 100%;
  overflow-y: scroll; /* prevents width jiggle from scrollbar */
}

body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; text-underline-offset: 3px; }

::selection{ background: rgba(14,15,16,.10); }

/* ---------- Layout helpers ---------- */
#main{
  max-width: var(--main);
  margin: 0 auto;
}

.container{
  max-width: var(--read);
  margin: 0 auto;
}

.rule{
  border: 0;
  height: 1px;
  background: var(--hair);
  margin: 22px 0;
}

/* ---------- Header / Nav ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hair);
}

.site-header__inner{
  max-width: var(--main);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}

.brand{
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
}

.brand__title{
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: .01em;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.1;
}

.brand__tag{
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.nav{
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  align-items: center;
  justify-content: flex-end;
}

.nav a{
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
  text-decoration: none;
}

.nav a:hover{
  color: var(--ink);
  text-decoration: none;
}

/* ---------- Hero (homepage lead) ---------- */
.hero{
  /* full-bleed breakout */
  position: relative;
  left: 50%;
  margin-left: -50vw;
  width: 100vw;

  margin-top: 18px;
}

.hero__link{
  display: block;
  position: relative; /* anchor for overlay */
  overflow: hidden;
  border-radius: 0;
  text-decoration: none;
}

/* hero should never underline */
.hero__link,
.hero__link:hover,
.hero__link:focus,
.hero__link:visited,
.hero__link *{
  text-decoration: none !important;
}

.hero__img{
  width: 100%;
  height: clamp(520px, 48vw, 880px);
  object-fit: cover;
  display: block;
}

/* text-holding gradient */
.hero__link::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,.74) 0%,
    rgba(0,0,0,.50) 34%,
    rgba(0,0,0,.16) 62%,
    rgba(0,0,0,0) 100%
  );
  pointer-events: none;
}

/* overlay must be positioned */
.hero__overlay{
  position: absolute;
  left: clamp(18px, 3vw, 56px);
  bottom: clamp(18px, 3vw, 56px);
  z-index: 2;

  max-width: min(680px, 72%);
  padding: 0; /* keep it clean; use ::before for background */
}

.hero__overlay::before{
  content: "";
  position: absolute;
  inset: -18px -22px -18px -22px;
  background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,0));
  z-index: -1;
  border-radius: 18px;
}

.kicker{
  margin: 0 0 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 650;
  color: rgba(255,255,255,.84);
}

.hero__title{
  margin: 0 0 12px;
  font-family: var(--serif);
  font-weight: 650;
  line-height: 1.03;
  font-size: clamp(36px, 3.2vw, 64px);
  color: rgba(255,255,255,.98);
  text-wrap: balance;
}

.hero__dek{
  margin: 0;
  font-size: clamp(15px, 1.15vw, 19px);
  line-height: 1.45;
  color: rgba(255,255,255,.82);
  max-width: 60ch;
}

/* ---------- Homepage grids ---------- */
.section{
  margin: 28px 0 0;
}

.section__head{
  max-width: var(--wide);
  margin: 0 auto 12px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 0 var(--gutter);
}

.section__title{
  margin: 0;
  font-family: var(--serif);
  font-weight: 650;
  font-size: 22px;
  letter-spacing: .01em;
}

.section__link{
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
}

.section__intro{
  max-width: var(--read);
  margin: 20 auto 18px;
  padding: 0 var(--gutter);
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
}

.mag-grid{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

/* Constrain the grid to editorial width */
.mag-grid--read{
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.mag-grid .card{
	grid-column: span 4;
}

.card{
  border-top: 1px solid var(--hair);
  padding-top: 14px;
}

.card a{
  display: grid;
  gap: 10px;
  text-decoration: none;
}

.card img{
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 14px;
  background: #e7e2d8;
}

.card h3{
  margin: 0;
  font-family: var(--serif);
  font-weight: 650;
  line-height: 1.12;
  font-size: 20px;
}

.card p{
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 14px;
}

/* Front-page row helper (optional class on the grid) */
.mag-grid--front .card{ grid-column: span 4; }

/* Feature well (image left, text right) */
.feature-list{
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  gap: 16px;
}

.feature{
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--hair);
}

.feature__img{
  border-radius: 16px;
  overflow: hidden;
  background: #e7e2d8;
  aspect-ratio: 16 / 11;
}

.feature__img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature__meta{
  display: grid;
  align-content: start;
  gap: 10px;
}

.feature__title{
  margin: 0;
  font-family: var(--serif);
  font-weight: 650;
  line-height: 1.12;
  font-size: 26px;
  text-wrap: balance;
}

.feature__dek{
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.meta-row{
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  color: var(--faint);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 650;
}

/* ---------- Article page ---------- */
.article{
  max-width: var(--read);
  margin: 0 auto;
  padding: 22px var(--gutter) 0;
}

.article__title{
  margin: 0 0 10px;
  font-family: var(--serif);
  font-weight: 650;
  line-height: 1.05;
  font-size: clamp(34px, 3vw, 54px);
  text-wrap: balance;
}

.article__dek{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
  max-width: 70ch;
}

.article__hero{
  margin: 18px 0 22px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #0b0c0d;
}

.article__hero img{
  width: 100%;
  height: auto;
}

.prose{
  font-size: 17px;
  line-height: 1.75;
}

.prose p{ margin: 0 0 16px; }

.prose h2{
  margin: 28px 0 10px;
  font-family: var(--serif);
  font-weight: 650;
  line-height: 1.12;
  font-size: 26px;
}

.prose blockquote{
  margin: 22px 0;
  padding: 14px 18px;
  border-left: 2px solid var(--hair);
  background: rgba(255,255,255,.36);
  border-radius: 12px;
  color: var(--muted);
}

.prose hr{
  border: 0;
  height: 1px;
  background: var(--hair);
  margin: 26px 0;
}

/* ---------- Footer ---------- */
.site-footer{
  margin-top: 44px;
  border-top: 1px solid var(--hair);
  padding: 22px 0 40px;
}

.site-footer__inner{
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
}

.site-footer a{
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover{
  color: var(--ink);
}

/* ---------- Triad (if you use it) ---------- */
.triad{
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.triad--wide{
	max-width: var(--wide);
	margin: 0 auto;
	padding: 0 var(--gutter);
}
.triad .card{
	border-top: 1px solid var(--hair);
	padding-top: 14px;
}
/* ---------- Responsive ---------- */

/* homepage: stack before the ugly range (works whether you use .triad OR 12-col grid) */
@media (max-width: 1200px){
  .triad{ grid-template-columns: 1fr; }
  .mag-grid--front .card{ grid-column: span 12; }
}

/* general responsive behavior (but exclude the homepage front row) */
@media (max-width: 1020px){
  .mag-grid:not(.mag-grid--front) .card{ grid-column: span 6; }
  .feature{ grid-template-columns: 1fr; }
  .hero__overlay{ max-width: 92%; }
}

/* small screens */
@media (max-width: 640px){
  .site-header__inner{ align-items: center; }
  .brand__tag{ display: none; }
  .mag-grid:not(.mag-grid--front) .card{ grid-column: span 12; }

  /* on phones, use a bottom-up gradient so the headline stays readable */
  .hero__link::after{
    background: linear-gradient(0deg, rgba(0,0,0,.74) 0%, rgba(0,0,0,.22) 60%, rgba(0,0,0,0) 100%);
  }
}


.concierge{
	position: fixed;
	right: 18px;
	bottom: 18px;
	width: 320px;
	max-width: calc(100vw - 36px);
	background: #fff;
	border: 1px solid rgba(0,0,0,0.15);
	border-radius: 10px;
	box-shadow: 0 12px 30px rgba(0,0,0,0.18);
	z-index: 9999;
	font-family: inherit;
	overflow: hidden;
	color: #222;
}

.concierge__header{
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 12px;
	background: rgba(0,0,0,0.04);
	border-bottom: 1px solid rgba(0,0,0,0.08);
	color: #444;
}

.concierge__title{
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.2px;
}

.concierge__close{
	border: 0;
	background: transparent;
	font-size: 18px;
	line-height: 1;
	padding: 4px 8px;
	cursor: pointer;
	opacity: 0.6;
}
.concierge__close:hover{ opacity: 1; }

.concierge__body{
	padding: 12px;
}

.concierge__status{
	display: flex;
	gap: 8px;
	align-items: center;
	font-size: 13px;
}

.concierge__dot{
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #d33;
	display: inline-block;
}

.concierge__spinner{
	margin-top: 12px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px solid rgba(0,0,0,0.2);
	border-top-color: rgba(0,0,0,0.65);
	animation: waitspin 0.9s linear infinite;
}

.concierge__lead{ margin: 0 0 4px; font-size: 13px; }
.concierge__sub{ margin: 0 0 10px; font-size: 12px; opacity: 0.85; }

.concierge__form{ margin-top: 8px; }
.concierge__label{ display:block; font-size: 12px; margin-bottom: 6px; opacity: 0.8; }

.concierge__input{
	width: 100%;
	box-sizing: border-box;
	padding: 10px;
	border: 1px solid rgba(0,0,0,0.2);
	border-radius: 8px;
	font-size: 13px;
}

.concierge__actions{
	display: flex;
	justify-content: flex-end;
	margin-top: 10px;
	gap: 8px;
}

.concierge__submit,
.concierge__retry{
	padding: 8px 10px;
	border-radius: 8px;
	border: 1px solid rgba(0,0,0,0.2);
	background: rgba(0,0,0,0.04);
	cursor: pointer;
	font-size: 13px;
}

.concierge__submit:hover,
.concierge__retry:hover{
	background: rgba(0,0,0,0.07);
}

.concierge__fineprint{
	margin-top: 10px;
	font-size: 11px;
	opacity: 0.65;
}

.concierge__dot--warn{ background: #c90; }
.concierge__dot--bad{ background: #d33; }

.concierge__header_buttons{
	display:flex;
	gap: 4px;
	align-items:center;
}

.concierge__min,
.concierge__close{
	border: 0;
	background: transparent;
	cursor: pointer;
	opacity: 0.6;
	padding: 4px 8px;
	font-size: 18px;
	line-height: 1;
}
.concierge__min:hover,
.concierge__close:hover{ opacity: 1; }

/* collapse body when minimized */
.concierge.is-minimized .concierge__body{
	display: none;
}

/* optional: make minimized widget less tall */
.concierge.is-minimized{
	width: 220px; /* tweak */
}

@keyframes waitspin{
	to{ transform: rotate(360deg); }
}

/* optional: hide on tiny screens */
@media (max-width: 360px){
	.concierge{ width: auto; left: 12px; right: 12px; }
}
