/* RafShopUltimate, Hexa Art Space. Plain CSS, system fonts only. */

:root {
  --paper: #f6f2ea;
  --paper-deep: #ede6d9;
  --ink: #1d1a16;
  --ink-soft: #4a443c;
  --rule: #d6ccbb;
  --accent: #8e3f22;
  --accent-ink: #6f2f17;
  --select: #e8c9b6;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", ui-serif, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1.125rem, 4vw, 2.5rem);
  --measure: 40rem;

  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--select);
  color: var(--ink);
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent-ink);
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -3rem;
  padding: 0.5rem 0.75rem;
  background: var(--ink);
  color: var(--paper);
  z-index: 1;
}

.skip:focus {
  top: 0.75rem;
}

/* Page frame */

.frame {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--rule);
}

.site-header .frame {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.0625rem;
  letter-spacing: 0.01em;
}

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

.brand svg {
  width: 1.375rem;
  height: 1.375rem;
  flex: none;
  color: var(--accent);
}

.site-nav ul {
  display: flex;
  gap: clamp(1rem, 3vw, 1.75rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: 0.5rem 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  text-decoration: none;
  white-space: nowrap;
}

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

.site-nav a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--accent);
}

/* Title block */

.masthead {
  padding: clamp(3rem, 9vw, 6.5rem) 0 clamp(2.25rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--rule);
}

.studio {
  margin: 0 0 0.75rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--ink-soft);
}

h1 {
  margin: 0;
  max-width: 14ch;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 7.5vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.lede {
  max-width: 36rem;
  margin: clamp(1.25rem, 3vw, 1.75rem) 0 0;
  font-family: var(--serif);
  font-size: clamp(1.1875rem, 2.4vw, 1.4375rem);
  line-height: 1.5;
  color: var(--ink);
}

.effective {
  margin: 1.25rem 0 0;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.effective time {
  color: var(--ink);
  font-weight: 600;
}

.intro {
  max-width: var(--measure);
  margin: clamp(1.25rem, 3vw, 1.75rem) 0 0;
}

/* Sections: heading column + text column on wide screens */

.section {
  display: grid;
  gap: 0.75rem;
  padding: clamp(2rem, 5vw, 3rem) 0;
  border-bottom: 1px solid var(--rule);
}

.section:last-of-type {
  border-bottom: 0;
}

@media (min-width: 52rem) {
  .section {
    grid-template-columns: 15rem minmax(0, var(--measure));
    gap: 2.5rem;
  }
}

h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.4375rem;
  line-height: 1.25;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

.section-body > :first-child {
  margin-top: 0;
}

.section-body > :last-child {
  margin-bottom: 0;
}

p {
  margin: 0 0 1em;
}

ul.list {
  margin: 0;
  padding: 0;
  list-style: none;
}

ul.list > li {
  position: relative;
  padding-left: 1.5rem;
}

ul.list > li + li {
  margin-top: 0.85rem;
}

ul.list > li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.62em;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--accent);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}

strong {
  font-weight: 600;
}

address {
  font-style: normal;
}

/* Footer */

.site-footer {
  margin-top: clamp(1rem, 4vw, 2rem);
  background: var(--paper-deep);
  border-top: 1px solid var(--rule);
}

.site-footer .frame {
  padding-top: 2rem;
  padding-bottom: 2.5rem;
}

.site-footer p {
  max-width: 46rem;
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.site-footer .footer-nav {
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

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

.site-footer .footer-nav a + a {
  margin-left: 1.25rem;
}

@media print {
  .site-header,
  .skip {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }
}

ul.list + p {
  margin-top: 1.25rem;
}

/* Brand site additions */

.actions {
  margin: clamp(1.5rem, 3.5vw, 2rem) 0 0;
}

.button {
  display: inline-block;
  padding: 0.8rem 1.35rem;
  background: var(--accent);
  color: var(--paper);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 2px;
}

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

.button:focus-visible {
  outline-offset: 4px;
}

.site-footer .footer-line {
  font-size: 0.875rem;
}

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

.intro + .intro {
  margin-top: 1rem;
}

/* Gallery */

.gallery {
  padding: clamp(2rem, 5vw, 3rem) 0;
  border-bottom: 1px solid var(--rule);
}

.gallery h2 {
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.875rem, 2.5vw, 1.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery-grid .feature {
  grid-column: span 2;
}

@media (min-width: 52rem) {
  .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .gallery-grid .feature {
    grid-row: span 2;
  }
}

.gallery-grid a {
  display: block;
  color: var(--ink);
  text-decoration: none;
}

.gallery-grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--paper-deep);
}

.gallery-grid .caption {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--serif);
  font-size: 0.9375rem;
  line-height: 1.35;
  color: var(--ink-soft);
}

.gallery-grid .feature .caption {
  font-size: 1.0625rem;
}

.gallery-grid a:hover .caption {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.gallery-grid a:focus-visible {
  outline-offset: 4px;
}
