/*
Theme Name: Elise Designer - Andreas Øye
Author: ChatGPT Work
Author URI: https://openai.com
Description: En personlig, profesjonell portefølje for Andreas Øye med Gutenberg, interesser, prosjekter, artikler og redigerbar tidslinje.
Version: 1.3.0
Requires at least: 6.3
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: elise-designer
Tags: blog, portfolio, custom-background, custom-logo, featured-images, block-styles, wide-blocks
*/

:root {
  --ed-ink: #071d49;
  --ed-ink-soft: #294064;
  --ed-blue: #0f67ff;
  --ed-blue-dark: #0848c9;
  --ed-coral: #ff7d55;
  --ed-paper: #fffaf1;
  --ed-paper-alt: #f3f7ff;
  --ed-line: rgba(7, 29, 73, 0.14);
  --ed-muted: #6b7890;
  --ed-white: #ffffff;
  --ed-shadow: 0 24px 60px rgba(7, 29, 73, 0.12);
  --ed-radius: 8px;
  --ed-serif: "Cormorant Garamond", Georgia, serif;
  --ed-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--ed-blue);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus {
  color: var(--ed-blue-dark);
}

img {
  display: block;
  height: auto;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal;
}

.site {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 250, 241, 0.86);
  border-bottom: 1px solid rgba(7, 29, 73, 0.08);
  backdrop-filter: blur(18px);
}

.site-header__inner,
.site-footer__inner,
.site-main,
.alignwide {
  width: min(100% - 40px, 1180px);
  margin-inline: auto;
}

.site-header__inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-branding {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: max-content;
}

.site-title {
  margin: 0;
  color: var(--ed-ink);
  font-family: var(--ed-sans);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.1;
  text-transform: uppercase;
}

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

.site-description {
  margin: 0;
  color: var(--ed-muted);
  font-size: 12px;
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: 18px;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ed-line);
  border-radius: 999px;
  background: var(--ed-white);
  color: var(--ed-ink);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  content: "";
}

.menu-toggle span::before {
  transform: translateY(-6px);
}

.menu-toggle span::after {
  transform: translateY(4px);
}

.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-navigation a {
  color: var(--ed-ink);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
  color: var(--ed-blue);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--ed-blue);
  color: var(--ed-white);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(15, 103, 255, 0.24);
}

.header-cta:hover,
.header-cta:focus {
  background: var(--ed-blue-dark);
  color: var(--ed-white);
}

.site-main {
  padding-block: 64px 88px;
}

.site-main--plain {
  padding-top: 36px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--ed-ink-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--ed-coral);
  content: "";
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 18px;
  color: var(--ed-ink);
  font-family: var(--ed-serif);
  font-weight: 760;
  letter-spacing: 0;
  line-height: 0.96;
}

h1 {
  font-size: 88px;
  max-width: 920px;
}

h2 {
  font-size: 48px;
}

h3 {
  font-size: 28px;
}

p {
  margin: 0 0 1.25rem;
}

.lede {
  max-width: 690px;
  color: var(--ed-ink-soft);
  font-size: 20px;
}

.button,
.wp-block-button__link,
button[type="submit"],
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  background: var(--ed-blue);
  color: var(--ed-white);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button:hover,
.button:focus,
.wp-block-button__link:hover,
.wp-block-button__link:focus,
button[type="submit"]:hover,
input[type="submit"]:hover {
  background: var(--ed-blue-dark);
  color: var(--ed-white);
}

.button--ghost {
  background: transparent;
  color: var(--ed-blue);
  box-shadow: inset 0 0 0 1px rgba(15, 103, 255, 0.22);
}

.button--ghost:hover,
.button--ghost:focus {
  background: rgba(15, 103, 255, 0.08);
  color: var(--ed-blue-dark);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(320px, 0.82fr);
  align-items: center;
  gap: clamp(34px, 6vw, 86px);
  min-height: calc(100vh - 166px);
  padding-bottom: 46px;
}

.hero__copy {
  position: relative;
}

.hero__title-mark {
  position: relative;
  display: inline-block;
}

.hero__title-mark::after {
  position: absolute;
  left: 0.04em;
  bottom: 0.02em;
  z-index: -1;
  width: 94%;
  height: 0.12em;
  border-radius: 999px;
  background: var(--ed-coral);
  content: "";
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.organic-frame {
  position: relative;
  isolation: isolate;
}

.organic-frame img,
.organic-placeholder {
  width: 100%;
  aspect-ratio: 0.92;
  object-fit: cover;
  border-radius: 42% 58% 49% 51% / 48% 34% 66% 52%;
  box-shadow: var(--ed-shadow);
}

.organic-placeholder {
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    linear-gradient(135deg, rgba(15, 103, 255, 0.22), rgba(255, 125, 85, 0.13)),
    linear-gradient(160deg, #dceaff, #fff5e8);
  color: var(--ed-ink);
  text-align: center;
}

.hand-note {
  display: inline-block;
  max-width: 210px;
  padding: 18px 20px;
  border-radius: 28px 22px 30px 18px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ed-ink);
  font-family: "Bradley Hand", "Comic Sans MS", cursive;
  font-size: 18px;
  line-height: 1.25;
  box-shadow: 0 16px 40px rgba(7, 29, 73, 0.08);
  transform: rotate(-5deg);
}

.hero .hand-note {
  position: absolute;
  right: -4%;
  bottom: 6%;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 22px 0 58px;
  border: 1px solid var(--ed-line);
  background: var(--ed-line);
}

.stat {
  min-height: 112px;
  padding: 20px 22px;
  background: rgba(255, 250, 241, 0.76);
}

.stat__value {
  display: block;
  color: var(--ed-ink);
  font-family: var(--ed-serif);
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
}

.stat__label {
  display: block;
  margin-top: 6px;
  color: var(--ed-muted);
  font-size: 13px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head p {
  max-width: 620px;
  margin: 0;
  color: var(--ed-ink-soft);
}

.project-grid,
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.project-card,
.post-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--ed-line);
  border-radius: var(--ed-radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 48px rgba(7, 29, 73, 0.08);
}

.project-card__image,
.post-card__image {
  display: block;
  overflow: hidden;
  aspect-ratio: 1.55;
  background: var(--ed-paper-alt);
}

.project-card__image img,
.post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.project-card:hover img,
.post-card:hover img {
  transform: scale(1.035);
}

.project-card__body,
.post-card__body {
  padding: 18px 18px 20px;
}

.project-card__meta,
.post-card__meta,
.single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--ed-muted);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0;
  text-transform: uppercase;
}

.project-card h3,
.post-card h3 {
  margin-bottom: 8px;
  font-family: var(--ed-sans);
  font-size: 1.12rem;
  font-weight: 850;
  line-height: 1.2;
}

.project-card h3 a,
.post-card h3 a {
  color: var(--ed-ink);
  text-decoration: none;
}

.project-card p,
.post-card p {
  color: var(--ed-ink-soft);
  font-size: 0.94rem;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--ed-line);
  border-radius: 999px;
  color: var(--ed-ink-soft);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.timeline {
  position: relative;
  display: grid;
  gap: 0;
  margin: 44px 0 24px;
}

.timeline::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: min(178px, 22vw);
  width: 2px;
  background: var(--ed-blue);
  content: "";
}

.timeline-item {
  display: grid;
  grid-template-columns: minmax(100px, 178px) 18px minmax(0, 1fr);
  gap: 24px;
  padding: 0 0 30px;
}

.timeline-item__period {
  color: var(--ed-muted);
  font-size: 14px;
  font-weight: 780;
}

.timeline-item__dot {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  margin-top: 5px;
  border: 3px solid var(--ed-paper);
  border-radius: 999px;
  background: var(--ed-blue);
  box-shadow: 0 0 0 1px var(--ed-blue);
}

.timeline-item__content {
  display: grid;
  grid-template-columns: minmax(180px, 0.6fr) minmax(0, 1fr);
  gap: 22px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--ed-line);
}

.timeline-item h3 {
  margin-bottom: 6px;
  font-family: var(--ed-sans);
  font-size: 1.12rem;
  font-weight: 850;
  line-height: 1.22;
}

.timeline-item p {
  margin: 0;
  color: var(--ed-ink-soft);
  font-size: 0.98rem;
}

.about-split,
.contact-split,
.single-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: center;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 44px 0 58px;
  border: 1px solid var(--ed-line);
  background: var(--ed-line);
}

.feature {
  padding: 24px;
  background: rgba(255, 250, 241, 0.76);
}

.feature__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border: 1px solid rgba(15, 103, 255, 0.22);
  border-radius: 50%;
  color: var(--ed-blue);
  font-weight: 900;
}

.archive-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 34px;
}

.archive-filter a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--ed-line);
  border-radius: 999px;
  color: var(--ed-ink-soft);
  font-size: 13px;
  font-weight: 780;
  text-decoration: none;
}

.archive-filter a:hover,
.archive-filter a.is-active {
  border-color: var(--ed-blue);
  background: rgba(15, 103, 255, 0.08);
  color: var(--ed-blue);
}

.entry-content,
.page-content {
  color: var(--ed-ink-soft);
}

.entry-content > *,
.page-content > * {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.entry-content > .alignwide,
.page-content > .alignwide {
  max-width: 1180px;
}

.entry-content > .alignfull,
.page-content > .alignfull {
  max-width: none;
}

.entry-content h2,
.page-content h2 {
  margin-top: 2.4rem;
}

.entry-content img,
.page-content img {
  border-radius: var(--ed-radius);
}

.wp-caption,
.wp-block-image figcaption {
  color: var(--ed-muted);
  font-size: 13px;
  text-align: left;
}

.project-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 44px 0;
  border: 1px solid var(--ed-line);
  background: var(--ed-line);
}

.project-fact {
  padding: 20px;
  background: rgba(255, 255, 255, 0.74);
}

.project-fact strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ed-muted);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.contact-list {
  display: grid;
  gap: 16px;
  margin-top: 30px;
}

.contact-list > a,
.contact-list > .contact-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--ed-ink);
  text-decoration: none;
}

.contact-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(15, 103, 255, 0.1);
  color: var(--ed-blue);
  font-weight: 900;
}

.contact-form {
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--ed-line);
  border-radius: var(--ed-radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--ed-shadow);
}

.section-spacer {
  margin-top: 72px;
}

.contact-extra {
  margin-top: 52px;
}

.contact-form-spacer {
  margin-top: 54px;
}

.contact-form label {
  display: block;
  margin-bottom: 14px;
  color: var(--ed-ink);
  font-size: 14px;
  font-weight: 780;
}

.contact-form input,
.contact-form textarea,
.comment-form input,
.comment-form textarea,
.search-form input[type="search"] {
  width: 100%;
  min-height: 48px;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid var(--ed-line);
  border-radius: var(--ed-radius);
  background: var(--ed-white);
  color: var(--ed-ink);
}

.contact-form textarea,
.comment-form textarea {
  min-height: 150px;
  resize: vertical;
}

.site-footer {
  border-top: 1px solid var(--ed-line);
  background: rgba(255, 250, 241, 0.88);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 116px;
  color: var(--ed-muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: var(--ed-ink-soft);
  text-decoration: none;
}

.pagination,
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 44px;
}

.page-numbers,
.nav-links a,
.nav-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--ed-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--ed-ink);
  text-decoration: none;
}

.page-numbers.current {
  border-color: var(--ed-blue);
  background: var(--ed-blue);
  color: var(--ed-white);
}

.nothing-found {
  max-width: 680px;
}

@media (max-width: 920px) {
  .site-header__inner {
    min-height: 68px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .main-navigation {
    margin-left: auto;
  }

  .main-navigation .menu {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px 20px 20px;
    border-bottom: 1px solid var(--ed-line);
    background: rgba(255, 250, 241, 0.98);
  }

  .main-navigation.is-open .menu {
    display: flex;
  }

  .main-navigation .menu a {
    display: block;
    padding: 12px 0;
  }

  .header-cta {
    min-height: 40px;
    padding-inline: 14px;
  }

  .hero,
  .about-split,
  .contact-split,
  .single-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero .hand-note {
    right: 2%;
    bottom: -2%;
  }

  .stats,
  .feature-row,
  .project-facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-grid,
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline::before {
    left: 7px;
  }

  .timeline-item {
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 16px;
  }

  .timeline-item__period {
    grid-column: 2;
    grid-row: 1;
  }

  .timeline-item__dot {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .timeline-item__content {
    grid-column: 2;
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 640px) {
  .site-header__inner,
  .site-footer__inner,
  .site-main,
  .alignwide {
    width: min(100% - 28px, 1180px);
  }

  .site-main {
    padding-block: 42px 64px;
  }

  h1 {
    font-size: 52px;
  }

  .site-branding {
    min-width: 0;
  }

  .site-title {
    font-size: 15px;
  }

  .site-description {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .project-grid,
  .post-grid,
  .stats,
  .feature-row,
  .project-facts {
    grid-template-columns: 1fr;
  }

  .section-head,
  .site-footer__inner {
    display: block;
  }

  .section-head .button {
    margin-top: 18px;
  }

  .footer-links {
    margin-top: 16px;
  }
}
/* Personal profile layouts. */
.profile-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 520px;
  padding: 52px 0 70px;
  border-bottom: 1px solid var(--ed-line);
}
.profile-hero__copy { position: relative; z-index: 1; max-width: 820px; }
.profile-hero h1 { font-size: 112px; line-height: 1.02; overflow-wrap: anywhere; }
.profile-hero .lede { max-width: 580px; }
.profile-hero__period { color: #c94e33; }
.profile-note {
  position: absolute; right: 0; bottom: 45px;
  font-family: "Bradley Hand", cursive; font-size: 24px; color: var(--ed-ink-soft);
  transform: rotate(-5deg);
}
.profile-hero--photo {
  margin-top: -64px; width: 100vw; margin-left: calc(50% - 50vw);
  padding: 80px max(24px, calc((100vw - 1180px) / 2)); min-height: 620px;
  background: #f0f3f6;
}
.profile-hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.profile-hero--photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.96), rgba(255,255,255,.8) 40%, transparent 75%);
}
.profile-hero--photo .profile-note { z-index: 1; right: max(24px, calc((100vw - 1180px) / 2)); }
.text-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; padding: 12px 0; }
.profile-content { margin-top: 64px; }
.about-split--text { grid-template-columns: minmax(0, 800px); }
.interest-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; margin-top: 32px; }
.interest-item { padding: 24px 0; border-top: 1px solid var(--ed-line); min-width: 0; }
.interest-item h3 { font-size: 28px; }
.interest-item p { color: var(--ed-ink-soft); margin: 0; }
.profile-invitation { border-top: 1px solid var(--ed-line); padding-top: 48px; }
.profile-invitation p { max-width: 620px; }
.profile-invitation .text-link { margin-left: 24px; }
.contact-list .contact-detail { display: grid; gap: 0; min-width: 0; overflow-wrap: anywhere; }
.contact-list .contact-detail > span { display: block; }
.contact-list .contact-icon { display: grid; }
.footer-menu { display: flex; flex-wrap: wrap; gap: 16px; list-style: none; padding: 0; margin: 0; }
.timeline::before { left: 209px; }
h1, h2, h3, p, a { overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid var(--ed-blue); outline-offset: 4px; }
.menu-toggle .screen-reader-text { background: none; }
.menu-toggle .screen-reader-text::before, .menu-toggle .screen-reader-text::after { content: none; }
@media (max-width: 920px) {
  .profile-hero h1 { font-size: 88px; }
  .profile-note { position: static; margin-top: 36px; }
  .profile-hero { display: block; min-height: 460px; }
  .profile-hero--photo .profile-note { position: relative; }
  .timeline::before { left: 7px; }
}
@media (max-width: 640px) {
  .profile-hero { min-height: 420px; padding-top: 24px; padding-bottom: 40px; }
  .profile-hero h1 { font-size: 64px; }
  h2 { font-size: 36px; }
  h3 { font-size: 26px; }
  .lede { font-size: 18px; }
  .profile-hero--photo { margin-top: -42px; padding: 48px 20px; }
  .profile-hero--photo::after { background: rgba(255,255,255,.88); }
  .interest-grid { grid-template-columns: 1fr; }
  .site-footer__inner { padding-block: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
