/* ---------- Base ---------- */

:root {
  --bg: #f7f1e9;
  --bg-alt: #f3e7da;
  --paper: #fdf8f2;
  --ink: #25211f;
  --muted: #6e655f;
  --strong: #514944;
  --accent: #f2a868;
  --accent-soft: rgba(242, 168, 104, 0.16);
  --border-soft: rgba(37, 33, 31, 0.08);
  --outline: rgba(37, 33, 31, 0.18);
  --shadow-soft: 0 16px 35px rgba(28, 20, 14, 0.12);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  --font-serif: "Georgia", "Iowan Old Style", "Palatino", serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top left, #fce8d7 0, var(--bg) 50%);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Layout ---------- */

.page {
  min-height: 100vh;
  max-width: 1040px;
  margin: 0 auto;
  padding: 20px 18px 40px;
}

@media (min-width: 768px) {
  .page {
    padding: 28px 24px 56px;
  }
}

/* ---------- Header / Nav ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 40%;
  background: linear-gradient(135deg, #f2a868, #fcd9a4);
  color: #20150f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 10px 25px rgba(176, 105, 46, 0.45);
}

.brand-mark:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(154, 68, 2, 0.6);
}


.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.brand-tagline {
  font-size: 0.78rem;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  position: relative;
  text-transform: lowercase;
  letter-spacing: 0.08em;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.2s ease;
}

.nav a:hover::after {
  width: 100%;
}

@media (max-width: 700px) {
  .nav {
    display: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  gap: 24px;
  margin-bottom: 40px;

  /* background: linear-gradient(
    135deg,
    #f6e4cf 0%,
    #f3ddc8 50%,
    #f6e4cf 100%
  ); */

}


@media (min-width: 860px) {
  .hero {
    grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr);
    align-items: stretch;
  }
}

.hero-glow {
  position: absolute;
  top: -25%;                  /* move it into the corner */
  right: -20%;
  width: 55vw;
  height: 55vw;
  pointer-events: none;
  z-index: 0;

  /* soft orange radial gradient fading to transparent */
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 142, 75, 0.9) 0%,   /* center: bright orange */
    rgba(255, 142, 75, 0.4) 30%,
    rgba(255, 142, 75, 0.0) 70%   /* edges: transparent */
  );

  filter: blur(40px);          /* softens the edges */
  opacity: 0.9;                /* tweak to taste */
}






.hero-text {
  padding: 18px 4px 4px;
}

.hero-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0 0 10px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.1vw + 1.5rem, 2.9rem);
  line-height: 1.1;
  margin: 0 0 14px;
}

.hero-highlight {
  /* background: linear-gradient(120deg, #f2a868, #f8c08d); */
  background:  #f2a868;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-description {
  margin: 0 0 18px;
  color: var(--muted);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}



/* contact */
.contact-mini {
  position: relative;
  top: 2rem;
  right: 0rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: right;
  opacity: 0.6;
  font-size: 1rem;
}

.contact-mini a {
  text-decoration: none;
  color: #444;
  transition: 0.2s ease;
}

.contact-mini a:hover {
  opacity: 1;
  color: #000;
}


/* .contact-mini a::after {
  content: " ↗";
  font-size: 1em;
} */


/* small label with fiery dot */
/* .hero-contact-label {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b38b6a;
  opacity: 0.9;
  margin-bottom: 0.25rem;
  position: relative;
}

.hero-contact-label::before {
  content: "";
  position: absolute;
  right: 100%;
  margin-right: 0.4rem;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: radial-gradient(
    circle,
    #ff8d3a 0%,
    #ffb36b 40%,
    rgba(255, 141, 58, 0) 100%
  );
} */


/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease,
  background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
  white-space: nowrap;
}

.button.primary {
  background: #20150f;
  color: #fdf7ef;
  box-shadow: 0 6px 16px rgba(16, 7, 0, 0.4);
}

.button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(16, 7, 0, 0.6);
}

.button.ghost {
  background: transparent;
  border-color: var(--outline);
  color: var(--ink);
}

.button.ghost:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* ---------- Hero notebook card ---------- */

.hero-notebook {
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 18px 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  position: relative;
  overflow: hidden;
}

.hero-notebook::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    to bottom,
    rgba(210, 190, 174, 0.24) 1px,
    transparent 1px
  );
  background-size: 100% 26px;
  opacity: 0.7;
  pointer-events: none;
}

.hero-notebook::after {
  content: "";
  position: absolute;
  left: 42px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(210, 160, 120, 0.7);
  pointer-events: none;
}

.notebook-title {
  position: relative;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 8px;
}

.notebook-body {
  position: relative;
  padding-left: 26px;
  font-size: 0.9rem;
}

.notebook-body p {
  margin: 4px 0 8px;
}

.notebook-footer {
  position: relative;
  margin-top: 10px;
  padding-left: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: #7c4b23;
}

/* ---------- Sections ---------- */

.section {
  margin: 40px 0;
  padding: 26px 0 0;
  border-top: 1px dashed rgba(126, 108, 94, 0.5);
}

.section-header {
  margin-bottom: 18px;
}

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0 0 6px;
}

.section h2 {
  font-family: var(--font-serif);
  margin: 0;
  font-size: 1.5rem;
}

/* ---------- Grid ---------- */

.grid {
  display: grid;
  gap: 14px;
}

.grid.two-column {
  grid-template-columns: minmax(0, 1fr);
}

.grid.three-column {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 780px) {
  .grid.two-column {
    grid-template-columns: 1.15fr 0.9fr;
  }
}

@media (min-width: 960px) {
  .grid.three-column {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- Cards ---------- */

.card {
  border-radius: var(--radius-lg);
  padding: 14px 14px 16px;
  background: rgba(253, 248, 242, 0.98);
  border: 1px solid var(--border-soft);
}

.card.soft {
  /* background: linear-gradient(
    135deg,
    rgba(253, 248, 242, 0.96),
    rgba(246, 233, 220, 0.96)
  ); */
  background: rgba(253, 248, 242, 0.98);
}

.card.outline {
  background: transparent;
  border-style: dashed;
  border-color: var(--outline);
}

.card-title {
  margin: 0 0 6px;
  font-size: 1rem;
}

.card-text {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0;
}

.strong-card-text{
  font-size: 1rem;
  color: var(--strong);
  /* margin: 0;  */
}

.card-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin: 0 0 4px;
}

.card-link {
  display: inline-flex;
  margin-top: 10px;
  font-size: 0.82rem;
  text-decoration: none;
  text-transform: lowercase;
  letter-spacing: 0.12em;
  color: #7c4b23;
}

.card-link.muted {
  color: var(--muted);
}

.card-link::after {
  content: " ↗";
  font-size: 0.8em;
}

.card-link.underline {
  position: relative;       /* needed for ::after positioning */
}

.card-link.underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;             /* distance under text */
  width: 0%;
  height: 1px;
  background: currentColor; /* matches text color */
  transition: width 0.2s ease;
}

.card-link.underline:hover::after {
  width: 100%;
}


.hover-lift {
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    border-color 0.12s ease;
}

.hover-lift:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 26px rgba(47, 25, 7, 0.16);
  border-color: rgba(140, 86, 40, 0.4);
}

/* ---------- Lists ---------- */

.list {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.list li {
  padding: 4px 0;
  position: relative;
  padding-left: 14px;
}

.list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 6  px;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- Timeline ---------- */

.timeline {
  position: relative;
  margin-top: 10px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(157, 126, 103, 0.4);
}

.timeline-item {
  display: flex;
  gap: 14px;
  padding: 10px 0 10px;
}

.timeline-marker {
  width: 18px;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #f2a868;
  background: var(--paper);
  margin-top: 4px;
  box-shadow: 0 0 0 3px rgba(242, 168, 104, 0.18);
}

.timeline-content {
  padding: 8px 12px 10px;
  margin-left: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  background: linear-gradient(
    135deg,
    rgba(253, 248, 242, 0.97),
    rgba(245, 233, 224, 0.96)
  );
}

.timeline-meta {
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--muted);
}

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

.quote-card {
  border-radius: var(--radius-md);
  padding: 14px 16px;
  background: rgba(32, 21, 15, 0.94);
  color: #fdf7ef;
  font-family: var(--font-serif);
  font-size: 0.98rem;
  line-height: 1.5;
  position: relative;
  overflow: hidden;
}

.quote-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top left,
    rgba(242, 168, 104, 0.22),
    transparent 55%
  );
  pointer-events: none;
}

.quote-text {
  margin: 0;
}

/* ---------- Contact ---------- */

.section-contact {
  margin-bottom: 32px;
}

.contact-grid {
  align-items: stretch;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 4px;
}

.contact-link {
  font-size: 0.9rem;
  text-decoration: none;
  color: #7c4b23;
  padding-bottom: 3px;
  border-bottom: 1px dashed rgba(124, 75, 35, 0.35);
}

.contact-link:hover {
  border-bottom-style: solid;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid rgba(126, 108, 94, 0.25);
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}

/* ---------- Hidden ---------- */

.hidden {
  display: none;
}

.projects-toggle-wrapper {
  margin-top: -20px;
  display: flex;
  justify-content: center;
}
