/* Feelhai — hand-written stylesheet. No framework, no build step, no web fonts.
 *
 * The artwork is loud and varies wildly in palette, so the page is deliberately
 * quiet: warm paper, hairline rules, no shadows, and every piece set inside a
 * white mount so the site reads as a wall rather than competing with what is on it.
 *
 * Accent blue is sampled from the artwork itself — it is the most-used saturated
 * colour across the set, so it belongs rather than being imposed.
 */

:root {
  --paper: #faf8f4;
  --mount: #ffffff;
  --ink: #15181c;
  --muted: #5e656d;
  --faint: #8b9199;
  --accent: #0070b0;
  --amber: #e0a030;
  --rule: #e2ded6;
  --rule-soft: #eeebe4;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

/* ---------------------------------------------------------------- nav */

.site-nav {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 40px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.site-nav .brand {
  font-family: Georgia, serif;
  font-size: 25px;
  letter-spacing: 0.02em;
}

.site-nav .brand:hover { color: var(--ink); }

.site-nav .links {
  display: flex;
  align-items: baseline;
  gap: 26px;
  flex-wrap: wrap;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cart-count {
  display: inline-block;
  margin-left: 7px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.cart-count.empty { color: var(--faint); }

/* ---------------------------------------------------------------- hero */

.hero {
  padding: 96px 40px 86px;
  border-bottom: 1px solid var(--rule);
  text-align: center;
}

.hero .wordmark {
  font-family: Georgia, serif;
  font-size: clamp(54px, 11vw, 124px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
}

.hero h1 {
  max-width: 740px;
  margin: 0 auto;
  font-size: clamp(21px, 2.6vw, 29px);
  color: var(--muted);
  font-style: italic;
}

.hero .tagline {
  max-width: 560px;
  margin: 26px auto 34px;
  color: var(--muted);
  font-size: 17px;
}

/* ---------------------------------------------------------------- layout */

.container { max-width: 1200px; margin: 0 auto; padding: 68px 40px 88px; }
.container.narrow { max-width: 780px; }

.home-body { max-width: 1200px; margin: 0 auto; padding: 68px 40px 10px; }
.home-body p { max-width: 660px; font-size: 18px; color: var(--muted); }
.home-body p + p { margin-top: 20px; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin: 0 0 30px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}

.section-head h2 { font-size: clamp(27px, 3.2vw, 36px); }

.section-head .count,
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.eyebrow { display: block; margin-bottom: 16px; color: var(--accent); }

.page-title { font-size: clamp(34px, 5.4vw, 58px); margin-bottom: 16px; }

.subtitle {
  max-width: 660px;
  margin: 0;
  font-size: 18px;
  color: var(--muted);
}

/* ---------------------------------------------------------------- cards */

.collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 46px 38px;
  margin-bottom: 70px;
}

.product-card { display: flex; flex-direction: column; }
.product-card:hover .shot { border-color: var(--accent); }
.product-card:hover h3 { color: var(--accent); }

/* fixed height + object-fit keeps the grid on a baseline whatever the aspect
 * ratio: this set runs from 1.89:1 landscape to 0.8:1 portrait */
.product-card .shot {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 330px;
  padding: 26px;
  overflow: hidden;
  background: var(--mount);
  border: 1px solid var(--rule);
  transition: border-color 0.15s ease;
}

.product-card .shot img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.product-card .meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 2px 0;
  margin-top: auto;
}

.product-card h3 {
  font-size: 20px;
  transition: color 0.15s ease;
}

.product-card .kind {
  margin-top: 4px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.price-pill {
  flex: none;
  font-family: Georgia, serif;
  font-size: 18px;
  color: var(--muted);
}

/* collection teasers on the home page */
.collection-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.tile { padding: 38px 32px; background: var(--paper); transition: background 0.15s ease; }
.tile:hover { background: var(--mount); }
.tile h3 { font-size: 27px; margin-bottom: 10px; }
.tile p { margin: 0; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-block;
  padding: 14px 30px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:hover { background: var(--ink); color: var(--paper); }

.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: var(--mount); }

.btn-ghost { border-color: var(--rule); color: var(--muted); }
.btn-ghost:hover { background: transparent; border-color: var(--ink); color: var(--ink); }

/* ---------------------------------------------------------------- product page */

.back-link {
  display: block;
  margin-bottom: 34px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.product-page {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: start;
}

/* grid items default to min-width:auto, which stops a wide image shrinking
 * and pushes the row past the viewport on narrow screens */
.product-page > * { min-width: 0; }

.product-image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 44px;
  background: var(--mount);
  border: 1px solid var(--rule);
}

.product-image img { max-width: 100%; max-height: 620px; width: auto; height: auto; }

.product-info h1 { font-size: clamp(32px, 4.2vw, 46px); margin-bottom: 14px; }

.product-size {
  margin: 0 0 26px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.price-tag {
  font-family: Georgia, serif;
  font-size: 34px;
  margin-bottom: 30px;
}

.description { margin: 0 0 18px; color: var(--muted); }

.fun-fact {
  margin: 32px 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--rule);
  font-size: 16px;
  color: var(--muted);
}

.fact-label {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.added-msg { margin-top: 20px; min-height: 22px; font-size: 15px; color: var(--muted); }
.added-msg a { color: var(--accent); text-decoration: underline; }

/* ---------------------------------------------------------------- cart */

.cart-list { list-style: none; margin: 0 0 36px; padding: 0; }

.cart-item {
  display: grid;
  grid-template-columns: 92px 1fr auto auto;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule-soft);
}

.cart-item:first-child { border-top: 1px solid var(--rule); }

.cart-item .thumb {
  width: 92px;
  height: 92px;
  object-fit: contain;
  background: var(--mount);
  border: 1px solid var(--rule);
}

.cart-item h4 { font-size: 19px; margin-bottom: 5px; }

.cart-item .size {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.cart-item .price { font-family: Georgia, serif; font-size: 19px; }

.cart-item .remove {
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  cursor: pointer;
}

.cart-item .remove:hover { color: var(--accent); }

.cart-summary { max-width: 420px; margin-left: auto; }

.cart-summary .row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 9px 0;
  font-size: 15px;
  color: var(--muted);
}

.cart-summary .row.total {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--ink);
  font-family: Georgia, serif;
  font-size: 23px;
  color: var(--ink);
}

.cart-actions { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }
.cart-empty { font-size: 19px; color: var(--muted); }
.cart-empty a { color: var(--accent); text-decoration: underline; }

.shipping-note {
  margin-top: 22px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--faint);
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  padding: 44px 40px;
  border-top: 1px solid var(--rule);
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.site-footer a { color: var(--faint); }
.site-footer a:hover { color: var(--accent); }
.site-footer p { margin: 0; }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 900px) {
  .product-page { grid-template-columns: 1fr; gap: 40px; }
  .product-image { padding: 26px; }
  .product-image img { max-height: 460px; }
  .container { padding: 48px 24px 64px; }
  .home-body { padding: 48px 24px 8px; }
  .hero { padding: 68px 24px 62px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-nav { padding: 20px 22px; flex-wrap: wrap; gap: 14px; }
  .site-nav .links { gap: 18px; }
  .product-card .shot { height: 280px; padding: 18px; }
  .cart-item { grid-template-columns: 70px 1fr; row-gap: 12px; }
  .cart-item .thumb { width: 70px; height: 70px; }
  .cart-item .price, .cart-item .remove { grid-column: 2; justify-self: start; }
  .cart-summary { margin-left: 0; }
}
