:root {
  --plum: #4a1942;
  --plum-deep: #35112f;
  --amethyst: #7b4b94;
  --amethyst-dark: #633a7a;
  --lavender: #c8a2c8;
  --lavender-soft: #e7d5ea;
  --mist: #f6f0f8;
  --backdrop: #c9b0d4;
  --charcoal: #2f2d33;
  --charcoal-deep: #1d1c20;
  --gold: #c9a86a;
  --ink: #2e2232;
  --ink-soft: #6b5a70;
  --white: #fffdfe;

  --font-display: "Cormorant Garamond", "Garamond", Georgia, serif;
  --font-body: "Lora", Georgia, "Times New Roman", serif;

  --radius: 14px;
  --shadow: 0 6px 24px rgba(74, 25, 66, 0.08);
}

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

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

body {
  margin: 0;
  background: var(--backdrop);
  background-image: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.22), transparent 50%),
    radial-gradient(circle at 100% 40%, rgba(74, 25, 66, 0.12), transparent 45%),
    radial-gradient(circle at 0% 80%, rgba(74, 25, 66, 0.1), transparent 40%);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--amethyst);
  text-decoration-color: var(--lavender);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover,
a:focus-visible {
  color: var(--plum);
  text-decoration-color: var(--gold);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--plum);
  line-height: 1.2;
  letter-spacing: 0.01em;
}

/* Header */
.site-header {
  width: 100%;
  text-align: center;
  padding: 1.6rem 1.5rem;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--charcoal-deep), var(--charcoal) 60%, var(--charcoal-deep));
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.wordmark {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2.2rem, 5vw, 3.25rem);
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.wordmark:hover {
  color: var(--lavender-soft);
}

/* Vine imprint along the left and right edges of the main area */
.vine-backdrop {
  position: relative;
  flex: 1;
}

.vine-backdrop::before,
.vine-backdrop::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(70px, 9vw, 150px);
  background: url("/img/vine.svg") center top / 100% auto repeat-y;
  opacity: 0.32;
  pointer-events: none;
}

.vine-backdrop::before {
  left: 0;
}

.vine-backdrop::after {
  right: 0;
  transform: scaleX(-1);
  background-position: center 180px;
}

/* Layout: 80 / 20 */
.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2.5rem 2rem 3rem;
  display: grid;
  grid-template-columns: 4fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--lavender-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.25rem 2.5rem;
}

.section-title,
.page-title {
  margin: 0 0 1rem;
  font-size: 2rem;
}

.page-title {
  font-size: 2.5rem;
}

.section-title::after,
.page-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 1px;
  margin-top: 0.6rem;
  background: var(--gold);
}

.beliefs {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0 0 0 0.25rem;
}

.beliefs li {
  position: relative;
  padding-left: 1.4rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--plum);
}

.beliefs li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 0.5rem;
  height: 0.5rem;
  border: 1px solid var(--amethyst);
  transform: rotate(45deg);
}

.muted {
  color: var(--ink-soft);
}

/* Articles */
.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.eyebrow a {
  text-decoration: none;
}

.article-title {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.article-title a {
  color: inherit;
  text-decoration: none;
}

.article-title a:hover {
  color: var(--amethyst);
}

.article-body p:first-of-type::first-letter {
  font-family: var(--font-display);
  float: left;
  font-size: 3.6em;
  line-height: 0.85;
  padding: 0.08em 0.1em 0 0;
  color: var(--amethyst);
}

.article-body h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.85rem;
}

.article-body ul {
  margin: 0 0 1.5rem;
  padding-left: 1.4rem;
}

.article-body li {
  margin-bottom: 0.6rem;
}

.article-body li::marker {
  color: var(--amethyst);
}

.article-body .closing {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--plum);
  margin: 0.5rem 0;
}

.read-more {
  display: inline-block;
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  text-decoration: none;
}

.read-more::after {
  content: " \2192";
  transition: margin-left 0.2s ease;
}

.read-more:hover::after {
  margin-left: 0.25em;
}

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

.works-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px dashed var(--lavender-soft);
}

.works-list li:last-child {
  border-bottom: none;
}

.works-list a {
  font-family: var(--font-display);
  font-size: 1.35rem;
  text-decoration: none;
}

.works-list time,
.works-list .domain {
  flex-shrink: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* Projects */
.project-shot {
  display: block;
  margin: 0 0 1.75rem;
  border: 1px solid var(--lavender-soft);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.project-shot:hover,
.project-shot:focus-visible {
  box-shadow: 0 10px 28px rgba(74, 25, 66, 0.16);
  transform: translateY(-2px);
}

.project-shot img {
  display: block;
  width: 100%;
  height: auto;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-section {
  background: var(--white);
  border: 1px solid var(--lavender-soft);
  border-top: 3px solid var(--lavender);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.25rem 1rem;
}

.sidebar-title {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  font-style: italic;
}

.sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}

.sidebar-list li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--mist);
}

.sidebar-list li:last-child {
  border-bottom: none;
}

.sidebar-list a {
  text-decoration: none;
  display: block;
  color: var(--charcoal);
}

.sidebar-list a:hover,
.sidebar-list a:focus-visible {
  color: var(--amethyst);
}

.sidebar-list.recent time {
  display: block;
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.sidebar-list .empty {
  color: var(--ink-soft);
  font-style: italic;
}

.latest-project-link {
  display: block;
  text-decoration: none;
  color: var(--charcoal);
}

.latest-project-link img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--lavender-soft);
  border-radius: calc(var(--radius) / 2);
  transition: box-shadow 0.2s ease;
}

.latest-project-link:hover img,
.latest-project-link:focus-visible img {
  box-shadow: 0 6px 18px rgba(74, 25, 66, 0.18);
}

.latest-project-name {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--plum);
}

.latest-project-link:hover .latest-project-name,
.latest-project-link:focus-visible .latest-project-name {
  color: var(--amethyst);
}

.latest-project-description {
  margin: 0.2rem 0 0.4rem;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.latest-project-site {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

/* Forms */
.newsletter {
  background: linear-gradient(160deg, var(--white), var(--lavender-soft));
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.newsletter-form input[type="email"] {
  flex: 1 1 260px;
}

.newsletter-form .button {
  background: linear-gradient(135deg, var(--charcoal), var(--charcoal-deep));
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.newsletter-form .button:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32);
}

.field {
  margin-bottom: 1.25rem;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--plum);
}

input[type="email"],
input[type="text"],
textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--lavender);
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea {
  border-radius: var(--radius);
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--amethyst);
  box-shadow: 0 0 0 4px rgba(123, 75, 148, 0.15);
}

.button {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: var(--white);
  background: linear-gradient(135deg, var(--amethyst), var(--plum));
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.8rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(74, 25, 66, 0.2);
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(74, 25, 66, 0.28);
}

.button:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.form-status {
  flex-basis: 100%;
  margin: 0.25rem 0 0;
  min-height: 1.5em;
  font-style: italic;
}

.form-status.success {
  color: var(--amethyst);
}

.form-status.error {
  color: #a3324f;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Footer */
.site-footer {
  background: #0e0d10;
  color: var(--lavender-soft);
  text-align: center;
  padding: 2rem 1.5rem 1.75rem;
  border-top: 2px solid var(--gold);
}

.copyright {
  margin: 0.75rem 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  color: var(--white);
}

.credit {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--lavender);
}

.credit a {
  color: var(--lavender-soft);
  text-decoration-color: var(--gold);
}

.credit a:hover {
  color: var(--gold);
}

/* Social icons */
.social-icons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.social-icons a {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  color: var(--charcoal);
  background: var(--mist);
  border: 1px solid var(--lavender-soft);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.social-icons a:hover,
.social-icons a:focus-visible {
  color: var(--white);
  background: var(--charcoal);
  transform: translateY(-2px);
}

.social-icons svg {
  width: 1.15rem;
  height: 1.15rem;
}

.social-icons svg:not([fill="none"]) {
  fill: currentColor;
}

/* Responsive */
@media (max-width: 768px) {
  .page {
    grid-template-columns: 1fr;
    padding: 1.5rem 1rem 2rem;
    gap: 1.5rem;
  }

  .sidebar {
    position: static;
  }

  .card {
    padding: 1.5rem 1.25rem;
  }

  .works-list li {
    flex-direction: column;
    gap: 0.1rem;
  }
}
