/* Bramley Portfolio v3 */

:root {
  --bg: #FFFFFF;
  --ink: #2A2A2A;
  --ink-strong: #000000;
  --ink-header: #1A1A1A;
  --muted: #6B6B6B;
  --muted-light: #8A8A8A;
  --muted-faint: #A3A3A3;
  --rule: #EDEBE6;
  --underline: #D4D2CC;
  --chip-border: #E4E2DD;
  --hover-fill: #F5F4F1;
  --mark-fill: #F0EFEB;
  --dot: #CFCBC3;
  --grid-line: #EFEDE8;
  --selection: #E8E6E1;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--bg);
  font-family: "Geist", system-ui, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

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

::selection { background: var(--selection); }

/* Background textures */
.bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, transparent 30%, #000 100%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, transparent 30%, #000 100%);
}
.bg-dots {
  background-image: radial-gradient(var(--dot) 1px, transparent 1.2px);
  background-size: 22px 22px;
}
.bg-grid {
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, transparent 25%, #000 100%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, transparent 25%, #000 100%);
}

/* Layout */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  font-size: 15px;
}

.sig-link {
  display: flex;
  align-items: center;
  height: 36px;
  color: var(--ink-header);
}
.sig-link:hover { color: var(--ink-strong); }

.sig {
  font-family: "Mrs Saint Delafield", cursive;
  font-size: 40px;
  line-height: 1.4;
  padding-right: 6px;
  display: inline-block;
  transform: translateY(4px);
  animation: sigwipe 1100ms cubic-bezier(.45, 0, .2, 1) 200ms both;
}

@keyframes sigwipe {
  from { clip-path: inset(-50% 100% -50% -20%); }
  to   { clip-path: inset(-50% -20% -50% -20%); }
}

@media (prefers-reduced-motion: reduce) {
  .sig { animation: none !important; }
}

.site-nav {
  display: flex;
  gap: 24px;
  color: var(--muted);
}
.site-nav a { color: var(--muted); }
.site-nav a:hover { color: var(--ink-strong); }

.content {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 72px 24px 96px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

/* Intro */
.intro {
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-size: 17px;
  line-height: 1.75;
}
.intro h1 {
  margin: 0 0 8px;
  font-size: 36px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-strong);
}
.intro p { margin: 0; text-wrap: pretty; }

.inline-link { border-bottom: 1px solid var(--underline); }
.inline-link:hover { border-color: var(--ink-strong); color: var(--ink-strong); }

/* Products */
.products {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.products h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 8px;
  margin: 0 -12px;
}
.product {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 10px;
}
.product:hover { background: var(--hover-fill); }
.product-mark {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 10px;
  background: var(--mark-fill);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 600;
  color: var(--muted);
}
img.product-mark {
  object-fit: cover;
  padding: 0;
  overflow: hidden;
}
img.product-mark-contain {
  object-fit: contain;
  padding: 7px;
}
.product-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.product-name {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-strong);
}
.product-desc {
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted-light);
}

/* Find me */
.find-me {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  font-size: 16px;
  line-height: 1.7;
}
.muted { color: var(--muted); }
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  padding: 6px 12px;
  border: 1px solid var(--chip-border);
  border-radius: 8px;
  font-size: 14px;
}
.chip:hover { background: var(--hover-fill); }
.email-link {
  color: var(--ink);
  border-bottom: 1px solid var(--underline);
}
.email-link:hover { border-color: var(--ink-strong); }

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 24px 32px;
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  color: var(--muted-faint);
  text-align: center;
}

/* Small screens */
@media (max-width: 480px) {
  .site-header { padding: 20px 16px; }
  .content { padding: 48px 16px 72px; }
  .product-grid { margin: 0 -8px; }
  .site-footer { padding: 24px 16px; }
}
