/*
 * amandakillingsworth.com
 * Static recreation of the original WordPress site (Oblique theme by Themeisle,
 * with the site's own Customizer palette: pink #ffb2b2 accent, white slants).
 */

/* --------------------------------------------------------------
   Fonts
   -------------------------------------------------------------- */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: local('Open Sans');
}

:root {
  /* The original Customizer accent. At 1.71:1 on white it cannot carry text or
     icons, so it is kept for decorative fills only (button faces, rules). */
  --accent: #ffb2b2;
  /* Deeper tone of the same rose, 5.52:1 on white: every accent-coloured
     text and icon uses this so links and controls meet WCAG AA. */
  --accent-ink: #a84c4c;
  /* Dark rose that reads on an --accent fill (8.6:1). */
  --accent-on: #3d2020;
  --text: #50545c;
  --heading: #000;
  /* was #8b8b8b - 3.41:1, below the 4.5:1 floor for body text */
  --muted: #6f6f6f;
  --rule: #ebebeb;
  --slant: 7.93650794%;
}

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

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

body {
  margin: 0;
  background-color: #fff;
  color: var(--text);
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.8;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 15px;
  color: var(--heading);
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  line-height: 1.3;
}

p {
  margin: 0 0 1.5em;
}

a {
  color: var(--accent-ink);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--accent-ink);
  text-decoration: underline;
}

/* Links inside running prose are underlined always: colour alone cannot be
   the only distinguishing signal (WCAG 1.4.1). Navigation, footer and social
   links sit outside blocks of text, so they are exempt. */
.entry-content p a:not(.read-more),
.entry-content li a:not(.read-more),
.entry-content dd a:not(.read-more) {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Visible keyboard focus on everything interactive (WCAG 2.4.7). */
:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 2px;
  border-radius: 1px;
}

.site-header :focus-visible,
.top-bar :focus-visible {
  outline-color: #fff;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

hr {
  height: 1px;
  margin: 30px 0;
  border: 0;
  background-color: var(--rule);
}

.screen-reader-text {
  position: absolute !important;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px;
  height: 1px;
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  z-index: 200;
  top: -100px;
  left: 12px;
  padding: 10px 18px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
}

/* --------------------------------------------------------------
   SVG slants
   The original theme cuts each band with a right triangle so the
   section edge falls from left to right.
   -------------------------------------------------------------- */
.svg-container {
  position: absolute;
  z-index: 3; /* above .overlay, so the cut stays the true section colour */
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  padding-top: var(--slant);
  line-height: 0;
}

.svg-container svg {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: auto;
}

/* Matching cut along the top edge of the masthead. */
.svg-container.svg-top {
  top: 0;
  bottom: auto;
}

.svg-container.svg-top svg {
  top: -1px;
  bottom: auto;
}

.svg-block {
  fill: #fff;
  stroke: none;
}

/* --------------------------------------------------------------
   Top bar (social menu)
   -------------------------------------------------------------- */
.top-bar-wrap {
  position: relative;
  background-color: transparent;
}

.top-bar {
  padding: 10px 15px;
  text-align: right;
}

.social-navigation {
  display: inline-block;
  vertical-align: middle;
}

.social-navigation ul {
  margin: 0;
  padding: 0;
  text-align: right;
}

.social-navigation li {
  display: inline-block;
  position: relative;
  line-height: 1;
  list-style: none;
}

.social-navigation li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--accent-ink);
  transition: opacity 0.3s;
}

.social-navigation li a:hover {
  opacity: 0.65;
}

.social-navigation svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* --------------------------------------------------------------
   Masthead
   -------------------------------------------------------------- */
.site-header {
  position: relative;
  z-index: 10;
  margin-bottom: 45px;
  /* --hero-sm/md/lg are set per page by build.py so a phone never pulls the
     desktop-sized hero. */
  background-image: var(--hero-lg);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: scroll;
  text-align: center;
}

@media only screen and (max-width: 600px) {
  .site-header {
    background-image: var(--hero-sm);
  }
}

@media only screen and (min-width: 601px) and (max-width: 1200px) {
  .site-header {
    background-image: var(--hero-md);
  }
}

/*
 * The masthead text sits on an arbitrary photograph, so a flat 0.3 tint
 * cannot guarantee contrast. Deepen it and add a centre-weighted scrim so
 * the title clears 4.5:1 whatever the image behind it.
 */
.site-header .overlay {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.45;
  background-color: #000;
}

.site-header .overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.15) 60%,
    rgba(0, 0, 0, 0) 100%
  );
}

.site-header .container {
  position: relative;
  z-index: 2;
}

.site-branding {
  padding: 115px 0;
}

/* inline-block so the link's hit area matches the logo rather than
   collapsing to the inline text box. */
.site-branding > a {
  display: inline-block;
}

.site-logo {
  display: block;
  width: auto;
  max-width: 100px;
  margin-bottom: 20px;
}

.site-title {
  margin: 0 0 30px;
  font-size: 82px;
  font-weight: 300;
  line-height: 1.1;
}

.site-title a {
  color: #f9f9f9;
}

.site-title a:hover {
  color: #f9f9f9;
  text-decoration: none;
}

.site-description {
  margin: 0;
  color: #ddd;
  font-size: 18px;
  font-weight: 400;
}

/* --------------------------------------------------------------
   Sidebar toggle + slide-out widget area
   -------------------------------------------------------------- */
.sidebar-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  z-index: 101;
  top: max(12px, env(safe-area-inset-top));
  left: max(14px, env(safe-area-inset-left));
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  /* The original theme used a white glyph, which sat invisibly on the site's
     white top bar. Use the body colour so the menu can actually be found. */
  color: var(--text);
  cursor: pointer;
  transition: left 0.8s;
  -webkit-appearance: none;
  appearance: none;
}

.sidebar-toggle svg {
  display: block;
  width: 28px;
  height: 28px;
  fill: currentColor;
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.9));
}

.sidebar-toggle.sidebar-toggled {
  left: 380px;
}

.widget-area {
  overflow-y: auto;
  position: fixed;
  z-index: 99;
  top: 0;
  left: -360px;
  width: 360px;
  height: 100%;
  padding: 30px;
  background-color: #fff;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.12);
  transition: left 0.8s;
}

.widget-area.widget-area-visible {
  left: 0;
}

/* The original Customizer set a white sidebar but left the theme's white
   link colour in place, which made the menu unreadable. Use the body
   colour here so the navigation is actually visible. */
.widget-area,
.widget-area a {
  color: var(--text);
}

.widget-area a:hover {
  color: var(--accent-ink);
}

.widget {
  margin-bottom: 40px;
}

.widget-title {
  margin: 0 0 15px;
  color: var(--heading);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

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

.widget li {
  border-bottom: 1px solid var(--rule);
}

/* Full-row targets: the slide-out menu is the only navigation on small
   screens, so its rows carry a comfortable tap height rather than the
   theme's original 22px text-height links. */
.widget li a {
  display: block;
  padding: 11px 0;
}

.main-navigation li {
  font-size: 16px;
}

.main-navigation .current-menu-item > a {
  color: var(--accent-ink);
  font-weight: 600;
}

/* --------------------------------------------------------------
   Content
   -------------------------------------------------------------- */
.site-content {
  position: relative;
}

.content-wrapper {
  padding: 0;
}

.content-area {
  width: 100%;
}

.hentry {
  position: relative;
  margin: 0 0 45px;
  padding: 60px;
  background-color: #fff;
}

.hentry .svg-container {
  position: relative;
  z-index: 11;
}

.entry-header {
  margin-bottom: 30px;
  text-align: center;
}

.entry-title {
  margin: 0 0 15px;
  font-size: 26px;
}

.entry-title a {
  color: var(--heading);
}

.entry-title a:hover {
  color: var(--accent-ink);
  text-decoration: none;
}

.page-title {
  font-size: 26px;
}

.entry-meta {
  color: var(--muted);
  font-size: 13px;
}

.entry-meta a {
  display: inline-block;
  padding: 6px 2px;
  color: var(--muted);
}

.entry-meta a:hover {
  color: var(--accent-ink);
}

.entry-meta .sep {
  margin: 0 6px;
}

.entry-content {
  max-width: 760px;
  margin: 0 auto;
}

.entry-thumb {
  margin: 0 0 30px;
  text-align: center;
}

.entry-thumb img {
  width: 100%;
  height: auto;
}

.read-more {
  display: inline-block;
  margin-top: 10px;
  padding: 12px 22px;
  background-color: var(--accent);
  /* white on this pink is 1.71:1; the dark rose is 8.6:1 */
  color: var(--accent-on);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.read-more:hover {
  background-color: #ffa0a0;
  color: var(--accent-on);
  text-decoration: none;
}

blockquote {
  margin: 0 0 1.5em;
  padding: 0 0 0 24px;
  border-left: 3px solid var(--accent);
  color: var(--heading);
  font-size: 19px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.7;
}

blockquote cite {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
}

video {
  width: 100%;
  height: auto;
  margin-bottom: 20px;
  background: #000;
}

/* --------------------------------------------------------------
   Page-specific blocks
   -------------------------------------------------------------- */
.lead {
  text-align: center;
  font-size: 18px;
  font-weight: 300;
}

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 34px;
  margin: 40px 0;
  text-align: left;
}

.service h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
}

.service p {
  margin: 0;
  font-size: 14px;
}

.project {
  margin: 0 0 40px;
  padding: 0 0 30px;
  border-bottom: 1px solid var(--rule);
}

.project:last-child {
  border-bottom: 0;
}

.project h3 {
  margin: 0 0 4px;
  font-size: 20px;
}

.project .role {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
}

.project h4 {
  margin: 18px 0 4px;
  font-size: 16px;
  font-weight: 600;
}

.project .links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 4px;
}

.project .links a {
  padding: 8px 0;
}

.project .links a::after {
  content: ' |';
  color: var(--rule);
}

.project .links a:last-child::after {
  content: '';
}

.contact-details {
  margin: 30px 0 0;
  text-align: center;
}

.contact-details .label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.contact-details a {
  display: inline-block;
  padding: 10px 4px;
  font-size: 22px;
  font-weight: 300;
}

.resume-contact a {
  display: inline-block;
  padding: 8px 2px;
}

/* Resume */
.resume-name {
  margin: 0 0 6px;
  font-size: 30px;
  font-weight: 300;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.resume-role {
  margin: 0 0 4px;
  color: var(--heading);
  font-size: 16px;
  text-align: center;
}

.resume-contact {
  margin: 0 0 40px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.resume-section {
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.job {
  margin: 0 0 32px;
}

.job h4 {
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
}

.job .meta {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.job ul,
.edu ul {
  margin: 0;
  padding-left: 20px;
}

.job li {
  margin-bottom: 6px;
  font-size: 14px;
}

.edu {
  margin: 0 0 24px;
}

.edu h4 {
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 600;
}

.edu .meta {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.skills dt {
  margin-top: 12px;
  font-weight: 600;
}

.skills dd {
  margin: 0;
  font-size: 14px;
}

/* Post list (category/archive pages) */
.post-list .hentry {
  padding: 40px 60px;
  border-bottom: 1px solid var(--rule);
}

.post-list .hentry:last-child {
  border-bottom: 0;
}

/* --------------------------------------------------------------
   Footer
   -------------------------------------------------------------- */
.footer-wrap {
  position: relative;
  margin-top: 45px;
}

.site-footer {
  width: 100%;
  padding: 30px 0;
  background-color: #fff;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  text-align: center;
}

.site-footer,
.site-footer a {
  color: var(--muted);
}

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

.site-footer ul {
  margin: 0 0 10px;
  padding: 0;
  text-align: center;
}

.site-footer li {
  display: inline-block;
  list-style: none;
}

.site-footer li a {
  display: inline-block;
  padding: 12px 10px;
}

/* --------------------------------------------------------------
   Responsive
   -------------------------------------------------------------- */
@media only screen and (max-width: 1024px) {
  .site-branding {
    padding: 105px 0;
  }

  .site-title {
    font-size: 60px !important;
  }
}

@media only screen and (max-width: 767px) {
  /* 16px floor: 15px is a strain at arm's length and triggers iOS's
     auto-zoom heuristics. */
  body {
    font-size: 16px;
  }

  .site-title {
    font-size: 42px !important;
  }

  .site-description {
    font-size: 16px;
  }

  .site-branding {
    padding: 80px 0;
  }

  .hentry,
  .post-list .hentry {
    padding: 30px 15px;
  }

  .container {
    padding-left: max(15px, env(safe-area-inset-left));
    padding-right: max(15px, env(safe-area-inset-right));
  }

  .widget-area {
    left: -100%;
    width: 100%;
    padding: max(30px, env(safe-area-inset-top)) max(30px, env(safe-area-inset-right))
      max(30px, env(safe-area-inset-bottom)) max(30px, env(safe-area-inset-left));
  }

  /* The toggle sits over the panel once it is open, so move it to the
     opposite edge instead of pushing it off a 100%-wide drawer. */
  .sidebar-toggle.sidebar-toggled {
    left: auto;
    right: max(14px, env(safe-area-inset-right));
  }

  .top-bar {
    padding-left: 64px; /* clear the fixed toggle */
    text-align: center;
  }

  .social-navigation ul {
    text-align: center;
  }

  .services {
    gap: 26px;
  }

  .resume-name {
    font-size: 24px;
  }

  blockquote {
    font-size: 17px;
  }
}

/* Short viewports (phone landscape): the 80px branding padding pushes the
   title out of view, and the drawer needs to scroll rather than clip. */
@media only screen and (max-height: 480px) and (orientation: landscape) {
  .site-branding {
    padding: 44px 0;
  }

  .site-title {
    font-size: 36px !important;
    margin-bottom: 14px;
  }

  .site-logo {
    max-width: 56px;
    margin-bottom: 10px;
  }
}

/*
 * Reduced motion: the drawer still opens and closes and the toggle still
 * shifts - only the sliding travel is removed, so the state change stays
 * legible rather than being blanket-killed across every element.
 */
@media (prefers-reduced-motion: reduce) {
  .widget-area,
  .sidebar-toggle {
    transition: none;
  }

  a,
  .social-navigation li a,
  .read-more {
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}
